@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class CreatePromptRequest extends AmazonWebServiceRequest implements Serializable, Cloneable
NOOP
Constructor and Description |
---|
CreatePromptRequest() |
Modifier and Type | Method and Description |
---|---|
CreatePromptRequest |
addTagsEntry(String key,
String value)
Add a single Tags entry
|
CreatePromptRequest |
clearTagsEntries()
Removes all the entries added into Tags.
|
CreatePromptRequest |
clone()
Creates a shallow clone of this object for all fields except the handler context.
|
boolean |
equals(Object obj) |
String |
getClientToken()
A unique, case-sensitive identifier to ensure that the API request completes no more than one time.
|
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()
A description for the prompt.
|
String |
getName()
A name for the prompt.
|
Map<String,String> |
getTags()
Any tags that you want to attach to the prompt.
|
List<PromptVariant> |
getVariants()
A list of objects, each containing details about a variant of the prompt.
|
int |
hashCode() |
void |
setClientToken(String clientToken)
A unique, case-sensitive identifier to ensure that the API request completes no more than one time.
|
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)
A description for the prompt.
|
void |
setName(String name)
A name for the prompt.
|
void |
setTags(Map<String,String> tags)
Any tags that you want to attach to the prompt.
|
void |
setVariants(Collection<PromptVariant> variants)
A list of objects, each containing details about a variant of the prompt.
|
String |
toString()
Returns a string representation of this object.
|
CreatePromptRequest |
withClientToken(String clientToken)
A unique, case-sensitive identifier to ensure that the API request completes no more than one time.
|
CreatePromptRequest |
withCustomerEncryptionKeyArn(String customerEncryptionKeyArn)
The Amazon Resource Name (ARN) of the KMS key to encrypt the prompt.
|
CreatePromptRequest |
withDefaultVariant(String defaultVariant)
The name of the default variant for the prompt.
|
CreatePromptRequest |
withDescription(String description)
A description for the prompt.
|
CreatePromptRequest |
withName(String name)
A name for the prompt.
|
CreatePromptRequest |
withTags(Map<String,String> tags)
Any tags that you want to attach to the prompt.
|
CreatePromptRequest |
withVariants(Collection<PromptVariant> variants)
A list of objects, each containing details about a variant of the prompt.
|
CreatePromptRequest |
withVariants(PromptVariant... variants)
A list of objects, each containing details about a variant of the prompt.
|
addHandlerContext, getCloneRoot, getCloneSource, getCustomQueryParameters, getCustomRequestHeaders, getGeneralProgressListener, getHandlerContext, getReadLimit, getRequestClientOptions, getRequestCredentials, getRequestCredentialsProvider, getRequestMetricCollector, getSdkClientExecutionTimeout, getSdkRequestTimeout, putCustomQueryParameter, putCustomRequestHeader, setGeneralProgressListener, setRequestCredentials, setRequestCredentialsProvider, setRequestMetricCollector, setSdkClientExecutionTimeout, setSdkRequestTimeout, withGeneralProgressListener, withRequestCredentialsProvider, withRequestMetricCollector, withSdkClientExecutionTimeout, withSdkRequestTimeout
public void setClientToken(String clientToken)
A unique, case-sensitive identifier to ensure that the API request completes no more than one time. If this token matches a previous request, Amazon Bedrock ignores the request, but does not return an error. For more information, see Ensuring idempotency.
clientToken
- A unique, case-sensitive identifier to ensure that the API request completes no more than one time. If
this token matches a previous request, Amazon Bedrock ignores the request, but does not return an error.
For more information, see Ensuring
idempotency.public String getClientToken()
A unique, case-sensitive identifier to ensure that the API request completes no more than one time. If this token matches a previous request, Amazon Bedrock ignores the request, but does not return an error. For more information, see Ensuring idempotency.
public CreatePromptRequest withClientToken(String clientToken)
A unique, case-sensitive identifier to ensure that the API request completes no more than one time. If this token matches a previous request, Amazon Bedrock ignores the request, but does not return an error. For more information, see Ensuring idempotency.
clientToken
- A unique, case-sensitive identifier to ensure that the API request completes no more than one time. If
this token matches a previous request, Amazon Bedrock ignores the request, but does not return an error.
For more information, see Ensuring
idempotency.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 CreatePromptRequest 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 CreatePromptRequest 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.
description
- A description for the prompt.public String getDescription()
A description for the prompt.
public CreatePromptRequest withDescription(String description)
A description for the prompt.
description
- A description for the prompt.public void setName(String name)
A name for the prompt.
name
- A name for the prompt.public String getName()
A name for the prompt.
public CreatePromptRequest withName(String name)
A name for the prompt.
name
- A name for the prompt.public Map<String,String> getTags()
Any tags that you want to attach to the prompt. For more information, see Tagging resources in Amazon Bedrock.
public void setTags(Map<String,String> tags)
Any tags that you want to attach to the prompt. For more information, see Tagging resources in Amazon Bedrock.
tags
- Any tags that you want to attach to the prompt. For more information, see Tagging resources in Amazon
Bedrock.public CreatePromptRequest withTags(Map<String,String> tags)
Any tags that you want to attach to the prompt. For more information, see Tagging resources in Amazon Bedrock.
tags
- Any tags that you want to attach to the prompt. For more information, see Tagging resources in Amazon
Bedrock.public CreatePromptRequest addTagsEntry(String key, String value)
public CreatePromptRequest clearTagsEntries()
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 CreatePromptRequest 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 CreatePromptRequest 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 String toString()
toString
in class Object
Object.toString()
public CreatePromptRequest clone()
AmazonWebServiceRequest
clone
in class AmazonWebServiceRequest
Object.clone()