@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class CreateContentRequest extends AmazonWebServiceRequest implements Serializable, Cloneable
NOOP
Constructor and Description |
---|
CreateContentRequest() |
Modifier and Type | Method and Description |
---|---|
CreateContentRequest |
addMetadataEntry(String key,
String value)
Add a single Metadata entry
|
CreateContentRequest |
addTagsEntry(String key,
String value)
Add a single Tags entry
|
CreateContentRequest |
clearMetadataEntries()
Removes all the entries added into Metadata.
|
CreateContentRequest |
clearTagsEntries()
Removes all the entries added into Tags.
|
CreateContentRequest |
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 that you provide to ensure the idempotency of the request.
|
String |
getKnowledgeBaseId()
The identifier of the knowledge base.
|
Map<String,String> |
getMetadata()
A key/value map to store attributes without affecting tagging or recommendations.
|
String |
getName()
The name of the content.
|
String |
getOverrideLinkOutUri()
The URI you want to use for the article.
|
Map<String,String> |
getTags()
The tags used to organize, track, or control access for this resource.
|
String |
getTitle()
The title of the content.
|
String |
getUploadId()
A pointer to the uploaded asset.
|
int |
hashCode() |
void |
setClientToken(String clientToken)
A unique, case-sensitive identifier that you provide to ensure the idempotency of the request.
|
void |
setKnowledgeBaseId(String knowledgeBaseId)
The identifier of the knowledge base.
|
void |
setMetadata(Map<String,String> metadata)
A key/value map to store attributes without affecting tagging or recommendations.
|
void |
setName(String name)
The name of the content.
|
void |
setOverrideLinkOutUri(String overrideLinkOutUri)
The URI you want to use for the article.
|
void |
setTags(Map<String,String> tags)
The tags used to organize, track, or control access for this resource.
|
void |
setTitle(String title)
The title of the content.
|
void |
setUploadId(String uploadId)
A pointer to the uploaded asset.
|
String |
toString()
Returns a string representation of this object.
|
CreateContentRequest |
withClientToken(String clientToken)
A unique, case-sensitive identifier that you provide to ensure the idempotency of the request.
|
CreateContentRequest |
withKnowledgeBaseId(String knowledgeBaseId)
The identifier of the knowledge base.
|
CreateContentRequest |
withMetadata(Map<String,String> metadata)
A key/value map to store attributes without affecting tagging or recommendations.
|
CreateContentRequest |
withName(String name)
The name of the content.
|
CreateContentRequest |
withOverrideLinkOutUri(String overrideLinkOutUri)
The URI you want to use for the article.
|
CreateContentRequest |
withTags(Map<String,String> tags)
The tags used to organize, track, or control access for this resource.
|
CreateContentRequest |
withTitle(String title)
The title of the content.
|
CreateContentRequest |
withUploadId(String uploadId)
A pointer to the uploaded asset.
|
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 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 CreateContentRequest 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 setKnowledgeBaseId(String knowledgeBaseId)
The identifier of the knowledge base. This should not be a QUICK_RESPONSES type knowledge base if you're storing Wisdom Content resource to it. Can be either the ID or the ARN. URLs cannot contain the ARN.
knowledgeBaseId
- The identifier of the knowledge base. This should not be a QUICK_RESPONSES type knowledge base if you're
storing Wisdom Content resource to it. Can be either the ID or the ARN. URLs cannot contain the ARN.public String getKnowledgeBaseId()
The identifier of the knowledge base. This should not be a QUICK_RESPONSES type knowledge base if you're storing Wisdom Content resource to it. Can be either the ID or the ARN. URLs cannot contain the ARN.
public CreateContentRequest withKnowledgeBaseId(String knowledgeBaseId)
The identifier of the knowledge base. This should not be a QUICK_RESPONSES type knowledge base if you're storing Wisdom Content resource to it. Can be either the ID or the ARN. URLs cannot contain the ARN.
knowledgeBaseId
- The identifier of the knowledge base. This should not be a QUICK_RESPONSES type knowledge base if you're
storing Wisdom Content resource to it. Can be either the ID or the ARN. URLs cannot contain the ARN.public Map<String,String> getMetadata()
A key/value map to store attributes without affecting tagging or recommendations. For example, when synchronizing data between an external system and Wisdom, you can store an external version identifier as metadata to utilize for determining drift.
public void setMetadata(Map<String,String> metadata)
A key/value map to store attributes without affecting tagging or recommendations. For example, when synchronizing data between an external system and Wisdom, you can store an external version identifier as metadata to utilize for determining drift.
metadata
- A key/value map to store attributes without affecting tagging or recommendations. For example, when
synchronizing data between an external system and Wisdom, you can store an external version identifier as
metadata to utilize for determining drift.public CreateContentRequest withMetadata(Map<String,String> metadata)
A key/value map to store attributes without affecting tagging or recommendations. For example, when synchronizing data between an external system and Wisdom, you can store an external version identifier as metadata to utilize for determining drift.
metadata
- A key/value map to store attributes without affecting tagging or recommendations. For example, when
synchronizing data between an external system and Wisdom, you can store an external version identifier as
metadata to utilize for determining drift.public CreateContentRequest addMetadataEntry(String key, String value)
public CreateContentRequest clearMetadataEntries()
public void setName(String name)
The name of the content. Each piece of content in a knowledge base must have a unique name. You can retrieve a piece of content using only its knowledge base and its name with the SearchContent API.
name
- The name of the content. Each piece of content in a knowledge base must have a unique name. You can
retrieve a piece of content using only its knowledge base and its name with the SearchContent
API.public String getName()
The name of the content. Each piece of content in a knowledge base must have a unique name. You can retrieve a piece of content using only its knowledge base and its name with the SearchContent API.
public CreateContentRequest withName(String name)
The name of the content. Each piece of content in a knowledge base must have a unique name. You can retrieve a piece of content using only its knowledge base and its name with the SearchContent API.
name
- The name of the content. Each piece of content in a knowledge base must have a unique name. You can
retrieve a piece of content using only its knowledge base and its name with the SearchContent
API.public void setOverrideLinkOutUri(String overrideLinkOutUri)
The URI you want to use for the article. If the knowledge base has a templateUri, setting this argument overrides it for this piece of content.
overrideLinkOutUri
- The URI you want to use for the article. If the knowledge base has a templateUri, setting this argument
overrides it for this piece of content.public String getOverrideLinkOutUri()
The URI you want to use for the article. If the knowledge base has a templateUri, setting this argument overrides it for this piece of content.
public CreateContentRequest withOverrideLinkOutUri(String overrideLinkOutUri)
The URI you want to use for the article. If the knowledge base has a templateUri, setting this argument overrides it for this piece of content.
overrideLinkOutUri
- The URI you want to use for the article. If the knowledge base has a templateUri, setting this argument
overrides it for this piece of content.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 CreateContentRequest 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 CreateContentRequest addTagsEntry(String key, String value)
public CreateContentRequest clearTagsEntries()
public void setTitle(String title)
The title of the content. If not set, the title is equal to the name.
title
- The title of the content. If not set, the title is equal to the name.public String getTitle()
The title of the content. If not set, the title is equal to the name.
public CreateContentRequest withTitle(String title)
The title of the content. If not set, the title is equal to the name.
title
- The title of the content. If not set, the title is equal to the name.public void setUploadId(String uploadId)
A pointer to the uploaded asset. This value is returned by StartContentUpload.
uploadId
- A pointer to the uploaded asset. This value is returned by StartContentUpload.public String getUploadId()
A pointer to the uploaded asset. This value is returned by StartContentUpload.
public CreateContentRequest withUploadId(String uploadId)
A pointer to the uploaded asset. This value is returned by StartContentUpload.
uploadId
- A pointer to the uploaded asset. This value is returned by StartContentUpload.public String toString()
toString
in class Object
Object.toString()
public CreateContentRequest clone()
AmazonWebServiceRequest
clone
in class AmazonWebServiceRequest
Object.clone()