public class CreatePromptRequest
extends com.amazonaws.AmazonWebServiceRequest
implements java.io.Serializable
Creates a prompt. For more information about prompts, such as supported file types and maximum length, see Create prompts in the Amazon Connect Administrator's Guide.
| Constructor and Description |
|---|
CreatePromptRequest() |
| Modifier and Type | Method and Description |
|---|---|
CreatePromptRequest |
addTagsEntry(java.lang.String key,
java.lang.String value)
The tags used to organize, track, or control access for this resource.
|
CreatePromptRequest |
clearTagsEntries()
Removes all the entries added into Tags.
|
boolean |
equals(java.lang.Object obj) |
java.lang.String |
getDescription()
The description of the prompt.
|
java.lang.String |
getInstanceId()
The identifier of the Amazon Connect instance.
|
java.lang.String |
getName()
The name of the prompt.
|
java.lang.String |
getS3Uri()
The URI for the S3 bucket where the prompt is stored.
|
java.util.Map<java.lang.String,java.lang.String> |
getTags()
The tags used to organize, track, or control access for this resource.
|
int |
hashCode() |
void |
setDescription(java.lang.String description)
The description of the prompt.
|
void |
setInstanceId(java.lang.String instanceId)
The identifier of the Amazon Connect instance.
|
void |
setName(java.lang.String name)
The name of the prompt.
|
void |
setS3Uri(java.lang.String s3Uri)
The URI for the S3 bucket where the prompt is stored.
|
void |
setTags(java.util.Map<java.lang.String,java.lang.String> tags)
The tags used to organize, track, or control access for this resource.
|
java.lang.String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
CreatePromptRequest |
withDescription(java.lang.String description)
The description of the prompt.
|
CreatePromptRequest |
withInstanceId(java.lang.String instanceId)
The identifier of the Amazon Connect instance.
|
CreatePromptRequest |
withName(java.lang.String name)
The name of the prompt.
|
CreatePromptRequest |
withS3Uri(java.lang.String s3Uri)
The URI for the S3 bucket where the prompt is stored.
|
CreatePromptRequest |
withTags(java.util.Map<java.lang.String,java.lang.String> tags)
The tags used to organize, track, or control access for this resource.
|
clone, copyBaseTo, getCloneRoot, getCloneSource, getGeneralProgressListener, getRequestClientOptions, getRequestCredentials, getRequestMetricCollector, setGeneralProgressListener, setRequestCredentials, setRequestMetricCollector, withGeneralProgressListener, withRequestMetricCollectorpublic java.lang.String getInstanceId()
The identifier of the Amazon Connect instance. You can find the instance ID in the Amazon Resource Name (ARN) of the instance.
Constraints:
Length: 1 - 100
The identifier of the Amazon Connect instance. You can find the instance ID in the Amazon Resource Name (ARN) of the instance.
public void setInstanceId(java.lang.String instanceId)
The identifier of the Amazon Connect instance. You can find the instance ID in the Amazon Resource Name (ARN) of the instance.
Constraints:
Length: 1 - 100
instanceId - The identifier of the Amazon Connect instance. You can find the instance ID in the Amazon Resource Name (ARN) of the instance.
public CreatePromptRequest withInstanceId(java.lang.String instanceId)
The identifier of the Amazon Connect instance. You can find the instance ID in the Amazon Resource Name (ARN) of the instance.
Returns a reference to this object so that method calls can be chained together.
Constraints:
Length: 1 - 100
instanceId - The identifier of the Amazon Connect instance. You can find the instance ID in the Amazon Resource Name (ARN) of the instance.
public java.lang.String getName()
The name of the prompt.
Constraints:
Length: 1 - 127
The name of the prompt.
public void setName(java.lang.String name)
The name of the prompt.
Constraints:
Length: 1 - 127
name - The name of the prompt.
public CreatePromptRequest withName(java.lang.String name)
The name of the prompt.
Returns a reference to this object so that method calls can be chained together.
Constraints:
Length: 1 - 127
name - The name of the prompt.
public java.lang.String getDescription()
The description of the prompt.
Constraints:
Length: 1 - 250
The description of the prompt.
public void setDescription(java.lang.String description)
The description of the prompt.
Constraints:
Length: 1 - 250
description - The description of the prompt.
public CreatePromptRequest withDescription(java.lang.String description)
The description of the prompt.
Returns a reference to this object so that method calls can be chained together.
Constraints:
Length: 1 - 250
description - The description of the prompt.
public java.lang.String getS3Uri()
The URI for the S3 bucket where the prompt is stored.
Constraints:
Length: 1 - 512
Pattern: s3://\S+/.+
The URI for the S3 bucket where the prompt is stored.
public void setS3Uri(java.lang.String s3Uri)
The URI for the S3 bucket where the prompt is stored.
Constraints:
Length: 1 - 512
Pattern: s3://\S+/.+
s3Uri - The URI for the S3 bucket where the prompt is stored.
public CreatePromptRequest withS3Uri(java.lang.String s3Uri)
The URI for the S3 bucket where the prompt is stored.
Returns a reference to this object so that method calls can be chained together.
Constraints:
Length: 1 - 512
Pattern: s3://\S+/.+
s3Uri - The URI for the S3 bucket where the prompt is stored.
public java.util.Map<java.lang.String,java.lang.String> getTags()
The tags used to organize, track, or control access for this resource. For example, { "tags": {"key1":"value1", "key2":"value2"} }.
The tags used to organize, track, or control access for this resource. For example, { "tags": {"key1":"value1", "key2":"value2"} }.
public void setTags(java.util.Map<java.lang.String,java.lang.String> tags)
The tags used to organize, track, or control access for this resource. For example, { "tags": {"key1":"value1", "key2":"value2"} }.
tags - The tags used to organize, track, or control access for this resource. For example, { "tags": {"key1":"value1", "key2":"value2"} }.
public CreatePromptRequest withTags(java.util.Map<java.lang.String,java.lang.String> tags)
The tags used to organize, track, or control access for this resource. For example, { "tags": {"key1":"value1", "key2":"value2"} }.
Returns a reference to this object so that method calls can be chained together.
tags - The tags used to organize, track, or control access for this resource. For example, { "tags": {"key1":"value1", "key2":"value2"} }.
public CreatePromptRequest addTagsEntry(java.lang.String key, java.lang.String value)
The tags used to organize, track, or control access for this resource. For example, { "tags": {"key1":"value1", "key2":"value2"} }.
The method adds a new key-value pair into Tags parameter, and returns a reference to this object so that method calls can be chained together.
key - The key of the entry to be added into Tags.value - The corresponding value of the entry to be added into Tags.public CreatePromptRequest clearTagsEntries()
Returns a reference to this object so that method calls can be chained together.
public java.lang.String toString()
toString in class java.lang.ObjectObject.toString()public int hashCode()
hashCode in class java.lang.Objectpublic boolean equals(java.lang.Object obj)
equals in class java.lang.Object