@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class CreatePromptVersionResult extends AmazonWebServiceResult<ResponseMetadata> implements Serializable, Cloneable
Constructor and Description |
---|
CreatePromptVersionResult() |
Modifier and Type | Method and Description |
---|---|
CreatePromptVersionResult |
clone() |
boolean |
equals(Object obj) |
String |
getArn()
The Amazon Resource Name (ARN) of the version of the prompt.
|
Date |
getCreatedAt()
The time at which the prompt was created.
|
String |
getCustomerEncryptionKeyArn()
The Amazon Resource Name (ARN) of the KMS key to encrypt the version of the prompt.
|
String |
getDefaultVariant()
The name of the default variant for the prompt.
|
String |
getDescription()
A description for the prompt version.
|
String |
getId()
The unique identifier of the prompt.
|
String |
getName()
The name of the prompt version.
|
Date |
getUpdatedAt()
The time at which the prompt was last updated.
|
List<PromptVariant> |
getVariants()
A list of objects, each containing details about a variant of the prompt.
|
String |
getVersion()
The version of the prompt that was created.
|
int |
hashCode() |
void |
setArn(String arn)
The Amazon Resource Name (ARN) of the version of the prompt.
|
void |
setCreatedAt(Date createdAt)
The time at which the prompt was created.
|
void |
setCustomerEncryptionKeyArn(String customerEncryptionKeyArn)
The Amazon Resource Name (ARN) of the KMS key to encrypt the version of the prompt.
|
void |
setDefaultVariant(String defaultVariant)
The name of the default variant for the prompt.
|
void |
setDescription(String description)
A description for the prompt version.
|
void |
setId(String id)
The unique identifier of the prompt.
|
void |
setName(String name)
The name of the prompt version.
|
void |
setUpdatedAt(Date updatedAt)
The time at which the prompt was last updated.
|
void |
setVariants(Collection<PromptVariant> variants)
A list of objects, each containing details about a variant of the prompt.
|
void |
setVersion(String version)
The version of the prompt that was created.
|
String |
toString()
Returns a string representation of this object.
|
CreatePromptVersionResult |
withArn(String arn)
The Amazon Resource Name (ARN) of the version of the prompt.
|
CreatePromptVersionResult |
withCreatedAt(Date createdAt)
The time at which the prompt was created.
|
CreatePromptVersionResult |
withCustomerEncryptionKeyArn(String customerEncryptionKeyArn)
The Amazon Resource Name (ARN) of the KMS key to encrypt the version of the prompt.
|
CreatePromptVersionResult |
withDefaultVariant(String defaultVariant)
The name of the default variant for the prompt.
|
CreatePromptVersionResult |
withDescription(String description)
A description for the prompt version.
|
CreatePromptVersionResult |
withId(String id)
The unique identifier of the prompt.
|
CreatePromptVersionResult |
withName(String name)
The name of the prompt version.
|
CreatePromptVersionResult |
withUpdatedAt(Date updatedAt)
The time at which the prompt was last updated.
|
CreatePromptVersionResult |
withVariants(Collection<PromptVariant> variants)
A list of objects, each containing details about a variant of the prompt.
|
CreatePromptVersionResult |
withVariants(PromptVariant... variants)
A list of objects, each containing details about a variant of the prompt.
|
CreatePromptVersionResult |
withVersion(String version)
The version of the prompt that was created.
|
getSdkHttpMetadata, getSdkResponseMetadata, setSdkHttpMetadata, setSdkResponseMetadata
public void setArn(String arn)
The Amazon Resource Name (ARN) of the version of the prompt.
arn
- The Amazon Resource Name (ARN) of the version of the prompt.public String getArn()
The Amazon Resource Name (ARN) of the version of the prompt.
public CreatePromptVersionResult withArn(String arn)
The Amazon Resource Name (ARN) of the version of the prompt.
arn
- The Amazon Resource Name (ARN) of the version of the prompt.public void setCreatedAt(Date createdAt)
The time at which the prompt was created.
createdAt
- The time at which the prompt was created.public Date getCreatedAt()
The time at which the prompt was created.
public CreatePromptVersionResult withCreatedAt(Date createdAt)
The time at which the prompt was created.
createdAt
- The time at which the prompt was created.public void setCustomerEncryptionKeyArn(String customerEncryptionKeyArn)
The Amazon Resource Name (ARN) of the KMS key to encrypt the version of the prompt.
customerEncryptionKeyArn
- The Amazon Resource Name (ARN) of the KMS key to encrypt the version of the prompt.public String getCustomerEncryptionKeyArn()
The Amazon Resource Name (ARN) of the KMS key to encrypt the version of the prompt.
public CreatePromptVersionResult withCustomerEncryptionKeyArn(String customerEncryptionKeyArn)
The Amazon Resource Name (ARN) of the KMS key to encrypt the version of the prompt.
customerEncryptionKeyArn
- The Amazon Resource Name (ARN) of the KMS key to encrypt the version of the prompt.public void setDefaultVariant(String defaultVariant)
The name of the default variant for the prompt. This value must match the name
field in the relevant
PromptVariant
object.
defaultVariant
- The name of the default variant for the prompt. This value must match the name
field in the
relevant
PromptVariant object.public String getDefaultVariant()
The name of the default variant for the prompt. This value must match the name
field in the relevant
PromptVariant
object.
name
field in the
relevant
PromptVariant object.public CreatePromptVersionResult withDefaultVariant(String defaultVariant)
The name of the default variant for the prompt. This value must match the name
field in the relevant
PromptVariant
object.
defaultVariant
- The name of the default variant for the prompt. This value must match the name
field in the
relevant
PromptVariant object.public void setDescription(String description)
A description for the prompt version.
description
- A description for the prompt version.public String getDescription()
A description for the prompt version.
public CreatePromptVersionResult withDescription(String description)
A description for the prompt version.
description
- A description for the prompt version.public void setId(String id)
The unique identifier of the prompt.
id
- The unique identifier of the prompt.public String getId()
The unique identifier of the prompt.
public CreatePromptVersionResult withId(String id)
The unique identifier of the prompt.
id
- The unique identifier of the prompt.public void setName(String name)
The name of the prompt version.
name
- The name of the prompt version.public String getName()
The name of the prompt version.
public CreatePromptVersionResult withName(String name)
The name of the prompt version.
name
- The name of the prompt version.public void setUpdatedAt(Date updatedAt)
The time at which the prompt was last updated.
updatedAt
- The time at which the prompt was last updated.public Date getUpdatedAt()
The time at which the prompt was last updated.
public CreatePromptVersionResult withUpdatedAt(Date updatedAt)
The time at which the prompt was last updated.
updatedAt
- The time at which the prompt was last updated.public List<PromptVariant> getVariants()
A list of objects, each containing details about a variant of the prompt.
public void setVariants(Collection<PromptVariant> variants)
A list of objects, each containing details about a variant of the prompt.
variants
- A list of objects, each containing details about a variant of the prompt.public CreatePromptVersionResult withVariants(PromptVariant... variants)
A list of objects, each containing details about a variant of the prompt.
NOTE: This method appends the values to the existing list (if any). Use
setVariants(java.util.Collection)
or withVariants(java.util.Collection)
if you want to override
the existing values.
variants
- A list of objects, each containing details about a variant of the prompt.public CreatePromptVersionResult withVariants(Collection<PromptVariant> variants)
A list of objects, each containing details about a variant of the prompt.
variants
- A list of objects, each containing details about a variant of the prompt.public void setVersion(String version)
The version of the prompt that was created. Versions are numbered incrementally, starting from 1.
version
- The version of the prompt that was created. Versions are numbered incrementally, starting from 1.public String getVersion()
The version of the prompt that was created. Versions are numbered incrementally, starting from 1.
public CreatePromptVersionResult withVersion(String version)
The version of the prompt that was created. Versions are numbered incrementally, starting from 1.
version
- The version of the prompt that was created. Versions are numbered incrementally, starting from 1.public String toString()
toString
in class Object
Object.toString()
public CreatePromptVersionResult clone()