@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class CreateContentAssociationRequest extends AmazonWebServiceRequest implements Serializable, Cloneable
NOOP
Constructor and Description |
---|
CreateContentAssociationRequest() |
Modifier and Type | Method and Description |
---|---|
CreateContentAssociationRequest |
addTagsEntry(String key,
String value)
Add a single Tags entry
|
CreateContentAssociationRequest |
clearTagsEntries()
Removes all the entries added into Tags.
|
CreateContentAssociationRequest |
clone()
Creates a shallow clone of this object for all fields except the handler context.
|
boolean |
equals(Object obj) |
ContentAssociationContents |
getAssociation()
The identifier of the associated resource.
|
String |
getAssociationType()
The type of association.
|
String |
getClientToken()
A unique, case-sensitive identifier that you provide to ensure the idempotency of the request.
|
String |
getContentId()
The identifier of the content.
|
String |
getKnowledgeBaseId()
The identifier of the knowledge base.
|
Map<String,String> |
getTags()
The tags used to organize, track, or control access for this resource.
|
int |
hashCode() |
void |
setAssociation(ContentAssociationContents association)
The identifier of the associated resource.
|
void |
setAssociationType(String associationType)
The type of association.
|
void |
setClientToken(String clientToken)
A unique, case-sensitive identifier that you provide to ensure the idempotency of the request.
|
void |
setContentId(String contentId)
The identifier of the content.
|
void |
setKnowledgeBaseId(String knowledgeBaseId)
The identifier of the knowledge base.
|
void |
setTags(Map<String,String> tags)
The tags used to organize, track, or control access for this resource.
|
String |
toString()
Returns a string representation of this object.
|
CreateContentAssociationRequest |
withAssociation(ContentAssociationContents association)
The identifier of the associated resource.
|
CreateContentAssociationRequest |
withAssociationType(ContentAssociationType associationType)
The type of association.
|
CreateContentAssociationRequest |
withAssociationType(String associationType)
The type of association.
|
CreateContentAssociationRequest |
withClientToken(String clientToken)
A unique, case-sensitive identifier that you provide to ensure the idempotency of the request.
|
CreateContentAssociationRequest |
withContentId(String contentId)
The identifier of the content.
|
CreateContentAssociationRequest |
withKnowledgeBaseId(String knowledgeBaseId)
The identifier of the knowledge base.
|
CreateContentAssociationRequest |
withTags(Map<String,String> tags)
The tags used to organize, track, or control access for this resource.
|
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 setAssociation(ContentAssociationContents association)
The identifier of the associated resource.
association
- The identifier of the associated resource.public ContentAssociationContents getAssociation()
The identifier of the associated resource.
public CreateContentAssociationRequest withAssociation(ContentAssociationContents association)
The identifier of the associated resource.
association
- The identifier of the associated resource.public void setAssociationType(String associationType)
The type of association.
associationType
- The type of association.ContentAssociationType
public String getAssociationType()
The type of association.
ContentAssociationType
public CreateContentAssociationRequest withAssociationType(String associationType)
The type of association.
associationType
- The type of association.ContentAssociationType
public CreateContentAssociationRequest withAssociationType(ContentAssociationType associationType)
The type of association.
associationType
- The type of association.ContentAssociationType
public void setClientToken(String clientToken)
A unique, case-sensitive identifier that you provide to ensure the idempotency of the request. If not provided, the Amazon Web Services SDK populates this field. For more information about idempotency, see Making retries safe with idempotent APIs.
clientToken
- A unique, case-sensitive identifier that you provide to ensure the idempotency of the request. If not
provided, the Amazon Web Services SDK populates this field. For more information about idempotency, see Making retries
safe with idempotent APIs.public String getClientToken()
A unique, case-sensitive identifier that you provide to ensure the idempotency of the request. If not provided, the Amazon Web Services SDK populates this field. For more information about idempotency, see Making retries safe with idempotent APIs.
public CreateContentAssociationRequest withClientToken(String clientToken)
A unique, case-sensitive identifier that you provide to ensure the idempotency of the request. If not provided, the Amazon Web Services SDK populates this field. For more information about idempotency, see Making retries safe with idempotent APIs.
clientToken
- A unique, case-sensitive identifier that you provide to ensure the idempotency of the request. If not
provided, the Amazon Web Services SDK populates this field. For more information about idempotency, see Making retries
safe with idempotent APIs.public void setContentId(String contentId)
The identifier of the content.
contentId
- The identifier of the content.public String getContentId()
The identifier of the content.
public CreateContentAssociationRequest withContentId(String contentId)
The identifier of the content.
contentId
- The identifier of the content.public void setKnowledgeBaseId(String knowledgeBaseId)
The identifier of the knowledge base.
knowledgeBaseId
- The identifier of the knowledge base.public String getKnowledgeBaseId()
The identifier of the knowledge base.
public CreateContentAssociationRequest withKnowledgeBaseId(String knowledgeBaseId)
The identifier of the knowledge base.
knowledgeBaseId
- The identifier of the knowledge base.public Map<String,String> getTags()
The tags used to organize, track, or control access for this resource.
public void setTags(Map<String,String> tags)
The tags used to organize, track, or control access for this resource.
tags
- The tags used to organize, track, or control access for this resource.public CreateContentAssociationRequest withTags(Map<String,String> tags)
The tags used to organize, track, or control access for this resource.
tags
- The tags used to organize, track, or control access for this resource.public CreateContentAssociationRequest addTagsEntry(String key, String value)
public CreateContentAssociationRequest clearTagsEntries()
public String toString()
toString
in class Object
Object.toString()
public CreateContentAssociationRequest clone()
AmazonWebServiceRequest
clone
in class AmazonWebServiceRequest
Object.clone()