@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class CreatePromptVersionRequest extends AmazonWebServiceRequest implements Serializable, Cloneable
NOOP
Constructor and Description |
---|
CreatePromptVersionRequest() |
Modifier and Type | Method and Description |
---|---|
CreatePromptVersionRequest |
addTagsEntry(String key,
String value)
Add a single Tags entry
|
CreatePromptVersionRequest |
clearTagsEntries()
Removes all the entries added into Tags.
|
CreatePromptVersionRequest |
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 |
getDescription()
A description for the version of the prompt.
|
String |
getPromptIdentifier()
The unique identifier of the prompt that you want to create a version of.
|
Map<String,String> |
getTags()
Any tags that you want to attach to the version 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 |
setDescription(String description)
A description for the version of the prompt.
|
void |
setPromptIdentifier(String promptIdentifier)
The unique identifier of the prompt that you want to create a version of.
|
void |
setTags(Map<String,String> tags)
Any tags that you want to attach to the version of the prompt.
|
String |
toString()
Returns a string representation of this object.
|
CreatePromptVersionRequest |
withClientToken(String clientToken)
A unique, case-sensitive identifier to ensure that the API request completes no more than one time.
|
CreatePromptVersionRequest |
withDescription(String description)
A description for the version of the prompt.
|
CreatePromptVersionRequest |
withPromptIdentifier(String promptIdentifier)
The unique identifier of the prompt that you want to create a version of.
|
CreatePromptVersionRequest |
withTags(Map<String,String> tags)
Any tags that you want to attach to the version 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 CreatePromptVersionRequest 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 setDescription(String description)
A description for the version of the prompt.
description
- A description for the version of the prompt.public String getDescription()
A description for the version of the prompt.
public CreatePromptVersionRequest withDescription(String description)
A description for the version of the prompt.
description
- A description for the version of the prompt.public void setPromptIdentifier(String promptIdentifier)
The unique identifier of the prompt that you want to create a version of.
promptIdentifier
- The unique identifier of the prompt that you want to create a version of.public String getPromptIdentifier()
The unique identifier of the prompt that you want to create a version of.
public CreatePromptVersionRequest withPromptIdentifier(String promptIdentifier)
The unique identifier of the prompt that you want to create a version of.
promptIdentifier
- The unique identifier of the prompt that you want to create a version of.public Map<String,String> getTags()
Any tags that you want to attach to the version of 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 version of the prompt. For more information, see Tagging resources in Amazon Bedrock.
tags
- Any tags that you want to attach to the version of the prompt. For more information, see Tagging resources in Amazon
Bedrock.public CreatePromptVersionRequest withTags(Map<String,String> tags)
Any tags that you want to attach to the version of the prompt. For more information, see Tagging resources in Amazon Bedrock.
tags
- Any tags that you want to attach to the version of the prompt. For more information, see Tagging resources in Amazon
Bedrock.public CreatePromptVersionRequest addTagsEntry(String key, String value)
public CreatePromptVersionRequest clearTagsEntries()
public String toString()
toString
in class Object
Object.toString()
public CreatePromptVersionRequest clone()
AmazonWebServiceRequest
clone
in class AmazonWebServiceRequest
Object.clone()