Package io.voucherify.client.model
Class ManagementProjectsTemplatesCampaignsCopyCreateRequestBody
java.lang.Object
io.voucherify.client.model.ManagementProjectsTemplatesCampaignsCopyCreateRequestBody
@Generated("org.openapitools.codegen.languages.JavaClientCodegen")
public class ManagementProjectsTemplatesCampaignsCopyCreateRequestBody
extends Object
Response body schema for **POST** `/management/v1/projects/{projectId}/templates/campaigns/{campaignTemplateId}/copy`.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic class -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiondescription(String description) destinationProjectId(String destinationProjectId) booleanCreate an instance of ManagementProjectsTemplatesCampaignsCopyCreateRequestBody given an JSON stringUser-defined description of the campaign template.Unique identifier of the project to which the campaign template will be copied.getName()User-defined name of the campaign template.inthashCode()voidsetDescription(String description) voidsetDestinationProjectId(String destinationProjectId) voidtoJson()Convert an instance of ManagementProjectsTemplatesCampaignsCopyCreateRequestBody to an JSON stringtoString()
-
Field Details
-
SERIALIZED_NAME_NAME
- See Also:
-
SERIALIZED_NAME_DESCRIPTION
- See Also:
-
SERIALIZED_NAME_DESTINATION_PROJECT_ID
- See Also:
-
openapiFields
-
openapiRequiredFields
-
-
Constructor Details
-
ManagementProjectsTemplatesCampaignsCopyCreateRequestBody
public ManagementProjectsTemplatesCampaignsCopyCreateRequestBody()
-
-
Method Details
-
name
-
getName
User-defined name of the campaign template. It must be unique.- Returns:
- name
-
setName
-
description
-
getDescription
User-defined description of the campaign template.- Returns:
- description
-
setDescription
-
destinationProjectId
public ManagementProjectsTemplatesCampaignsCopyCreateRequestBody destinationProjectId(String destinationProjectId) -
getDestinationProjectId
Unique identifier of the project to which the campaign template will be copied.- Returns:
- destinationProjectId
-
setDestinationProjectId
-
equals
-
hashCode
public int hashCode() -
toString
-
fromJson
public static ManagementProjectsTemplatesCampaignsCopyCreateRequestBody fromJson(String jsonString) throws IOException Create an instance of ManagementProjectsTemplatesCampaignsCopyCreateRequestBody given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of ManagementProjectsTemplatesCampaignsCopyCreateRequestBody
- Throws:
IOException- if the JSON string is invalid with respect to ManagementProjectsTemplatesCampaignsCopyCreateRequestBody
-
toJson
Convert an instance of ManagementProjectsTemplatesCampaignsCopyCreateRequestBody to an JSON string- Returns:
- JSON string
-