@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class UpdatePromptResult extends AmazonWebServiceResult<ResponseMetadata> implements Serializable, Cloneable
Constructor and Description |
---|
UpdatePromptResult() |
Modifier and Type | Method and Description |
---|---|
UpdatePromptResult |
clone() |
boolean |
equals(Object obj) |
String |
getArn()
The Amazon Resource Name (ARN) 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 prompt.
|
String |
getDefaultVariant()
The name of the default variant for the prompt.
|
String |
getDescription()
The description of the prompt.
|
String |
getId()
The unique identifier of the prompt.
|
String |
getName()
The name of the prompt.
|
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.
|
int |
hashCode() |
void |
setArn(String arn)
The Amazon Resource Name (ARN) 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 prompt.
|
void |
setDefaultVariant(String defaultVariant)
The name of the default variant for the prompt.
|
void |
setDescription(String description)
The description of the prompt.
|
void |
setId(String id)
The unique identifier of the prompt.
|
void |
setName(String name)
The name of the prompt.
|
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.
|
String |
toString()
Returns a string representation of this object.
|
UpdatePromptResult |
withArn(String arn)
The Amazon Resource Name (ARN) of the prompt.
|
UpdatePromptResult |
withCreatedAt(Date createdAt)
The time at which the prompt was created.
|
UpdatePromptResult |
withCustomerEncryptionKeyArn(String customerEncryptionKeyArn)
The Amazon Resource Name (ARN) of the KMS key to encrypt the prompt.
|
UpdatePromptResult |
withDefaultVariant(String defaultVariant)
The name of the default variant for the prompt.
|
UpdatePromptResult |
withDescription(String description)
The description of the prompt.
|
UpdatePromptResult |
withId(String id)
The unique identifier of the prompt.
|
UpdatePromptResult |
withName(String name)
The name of the prompt.
|
UpdatePromptResult |
withUpdatedAt(Date updatedAt)
The time at which the prompt was last updated.
|
UpdatePromptResult |
withVariants(Collection<PromptVariant> variants)
A list of objects, each containing details about a variant of the prompt.
|
UpdatePromptResult |
withVariants(PromptVariant... variants)
A list of objects, each containing details about a variant of the prompt.
|
UpdatePromptResult |
withVersion(String version)
The version of the prompt.
|
getSdkHttpMetadata, getSdkResponseMetadata, setSdkHttpMetadata, setSdkResponseMetadata
public void setArn(String arn)
The Amazon Resource Name (ARN) of the prompt.
arn
- The Amazon Resource Name (ARN) of the prompt.public String getArn()
The Amazon Resource Name (ARN) of the prompt.
public UpdatePromptResult withArn(String arn)
The Amazon Resource Name (ARN) of the prompt.
arn
- The Amazon Resource Name (ARN) 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 UpdatePromptResult 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 prompt.
customerEncryptionKeyArn
- The Amazon Resource Name (ARN) of the KMS key to encrypt the prompt.public String getCustomerEncryptionKeyArn()
The Amazon Resource Name (ARN) of the KMS key to encrypt the prompt.
public UpdatePromptResult withCustomerEncryptionKeyArn(String customerEncryptionKeyArn)
The Amazon Resource Name (ARN) of the KMS key to encrypt the prompt.
customerEncryptionKeyArn
- The Amazon Resource Name (ARN) of the KMS key to encrypt 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 UpdatePromptResult 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)
The description of the prompt.
description
- The description of the prompt.public String getDescription()
The description of the prompt.
public UpdatePromptResult withDescription(String description)
The description of the prompt.
description
- The description of the prompt.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 UpdatePromptResult 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.
name
- The name of the prompt.public String getName()
The name of the prompt.
public UpdatePromptResult withName(String name)
The name of the prompt.
name
- The name of the prompt.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 UpdatePromptResult 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 UpdatePromptResult 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 UpdatePromptResult 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. When you update a prompt, the version updated is the DRAFT
version.
version
- The version of the prompt. When you update a prompt, the version updated is the DRAFT
version.public String getVersion()
The version of the prompt. When you update a prompt, the version updated is the DRAFT
version.
DRAFT
version.public UpdatePromptResult withVersion(String version)
The version of the prompt. When you update a prompt, the version updated is the DRAFT
version.
version
- The version of the prompt. When you update a prompt, the version updated is the DRAFT
version.public String toString()
toString
in class Object
Object.toString()
public UpdatePromptResult clone()