@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class UpdateContentRequest extends AmazonWebServiceRequest implements Serializable, Cloneable
NOOP
Constructor and Description |
---|
UpdateContentRequest() |
Modifier and Type | Method and Description |
---|---|
UpdateContentRequest |
addMetadataEntry(String key,
String value)
Add a single Metadata entry
|
UpdateContentRequest |
clearMetadataEntries()
Removes all the entries added into Metadata.
|
UpdateContentRequest |
clone()
Creates a shallow clone of this object for all fields except the handler context.
|
boolean |
equals(Object obj) |
String |
getContentId()
The identifier of the content.
|
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 |
getOverrideLinkOutUri()
The URI for the article.
|
Boolean |
getRemoveOverrideLinkOutUri()
Unset the existing
overrideLinkOutUri if it exists. |
String |
getRevisionId()
The
revisionId of the content resource to update, taken from an earlier call to
GetContent , GetContentSummary , SearchContent , or ListContents
. |
String |
getTitle()
The title of the content.
|
String |
getUploadId()
A pointer to the uploaded asset.
|
int |
hashCode() |
Boolean |
isRemoveOverrideLinkOutUri()
Unset the existing
overrideLinkOutUri if it exists. |
void |
setContentId(String contentId)
The identifier of the content.
|
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 |
setOverrideLinkOutUri(String overrideLinkOutUri)
The URI for the article.
|
void |
setRemoveOverrideLinkOutUri(Boolean removeOverrideLinkOutUri)
Unset the existing
overrideLinkOutUri if it exists. |
void |
setRevisionId(String revisionId)
The
revisionId of the content resource to update, taken from an earlier call to
GetContent , GetContentSummary , SearchContent , or ListContents
. |
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.
|
UpdateContentRequest |
withContentId(String contentId)
The identifier of the content.
|
UpdateContentRequest |
withKnowledgeBaseId(String knowledgeBaseId)
The identifier of the knowledge base.
|
UpdateContentRequest |
withMetadata(Map<String,String> metadata)
A key/value map to store attributes without affecting tagging or recommendations.
|
UpdateContentRequest |
withOverrideLinkOutUri(String overrideLinkOutUri)
The URI for the article.
|
UpdateContentRequest |
withRemoveOverrideLinkOutUri(Boolean removeOverrideLinkOutUri)
Unset the existing
overrideLinkOutUri if it exists. |
UpdateContentRequest |
withRevisionId(String revisionId)
The
revisionId of the content resource to update, taken from an earlier call to
GetContent , GetContentSummary , SearchContent , or ListContents
. |
UpdateContentRequest |
withTitle(String title)
The title of the content.
|
UpdateContentRequest |
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 setContentId(String contentId)
The identifier of the content. Can be either the ID or the ARN. URLs cannot contain the ARN.
contentId
- The identifier of the content. Can be either the ID or the ARN. URLs cannot contain the ARN.public String getContentId()
The identifier of the content. Can be either the ID or the ARN. URLs cannot contain the ARN.
public UpdateContentRequest withContentId(String contentId)
The identifier of the content. Can be either the ID or the ARN. URLs cannot contain the ARN.
contentId
- The identifier of the content. Can be either the ID or the ARN. URLs cannot contain the ARN.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
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 ARNpublic 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
public UpdateContentRequest 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
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 ARNpublic 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 UpdateContentRequest 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 UpdateContentRequest addMetadataEntry(String key, String value)
public UpdateContentRequest clearMetadataEntries()
public void setOverrideLinkOutUri(String overrideLinkOutUri)
The URI for the article. If the knowledge base has a templateUri, setting this argument overrides it for this
piece of content. To remove an existing overrideLinkOurUri
, exclude this argument and set
removeOverrideLinkOutUri
to true.
overrideLinkOutUri
- The URI for the article. If the knowledge base has a templateUri, setting this argument overrides it for
this piece of content. To remove an existing overrideLinkOurUri
, exclude this argument and
set removeOverrideLinkOutUri
to true.public String getOverrideLinkOutUri()
The URI for the article. If the knowledge base has a templateUri, setting this argument overrides it for this
piece of content. To remove an existing overrideLinkOurUri
, exclude this argument and set
removeOverrideLinkOutUri
to true.
overrideLinkOurUri
, exclude this argument and
set removeOverrideLinkOutUri
to true.public UpdateContentRequest withOverrideLinkOutUri(String overrideLinkOutUri)
The URI for the article. If the knowledge base has a templateUri, setting this argument overrides it for this
piece of content. To remove an existing overrideLinkOurUri
, exclude this argument and set
removeOverrideLinkOutUri
to true.
overrideLinkOutUri
- The URI for the article. If the knowledge base has a templateUri, setting this argument overrides it for
this piece of content. To remove an existing overrideLinkOurUri
, exclude this argument and
set removeOverrideLinkOutUri
to true.public void setRemoveOverrideLinkOutUri(Boolean removeOverrideLinkOutUri)
Unset the existing overrideLinkOutUri
if it exists.
removeOverrideLinkOutUri
- Unset the existing overrideLinkOutUri
if it exists.public Boolean getRemoveOverrideLinkOutUri()
Unset the existing overrideLinkOutUri
if it exists.
overrideLinkOutUri
if it exists.public UpdateContentRequest withRemoveOverrideLinkOutUri(Boolean removeOverrideLinkOutUri)
Unset the existing overrideLinkOutUri
if it exists.
removeOverrideLinkOutUri
- Unset the existing overrideLinkOutUri
if it exists.public Boolean isRemoveOverrideLinkOutUri()
Unset the existing overrideLinkOutUri
if it exists.
overrideLinkOutUri
if it exists.public void setRevisionId(String revisionId)
The revisionId
of the content resource to update, taken from an earlier call to
GetContent
, GetContentSummary
, SearchContent
, or ListContents
. If included, this argument acts as an optimistic lock to ensure content was not modified since it was last
read. If it has been modified, this API throws a PreconditionFailedException
.
revisionId
- The revisionId
of the content resource to update, taken from an earlier call to
GetContent
, GetContentSummary
, SearchContent
, or
ListContents
. If included, this argument acts as an optimistic lock to ensure content was not
modified since it was last read. If it has been modified, this API throws a
PreconditionFailedException
.public String getRevisionId()
The revisionId
of the content resource to update, taken from an earlier call to
GetContent
, GetContentSummary
, SearchContent
, or ListContents
. If included, this argument acts as an optimistic lock to ensure content was not modified since it was last
read. If it has been modified, this API throws a PreconditionFailedException
.
revisionId
of the content resource to update, taken from an earlier call to
GetContent
, GetContentSummary
, SearchContent
, or
ListContents
. If included, this argument acts as an optimistic lock to ensure content was
not modified since it was last read. If it has been modified, this API throws a
PreconditionFailedException
.public UpdateContentRequest withRevisionId(String revisionId)
The revisionId
of the content resource to update, taken from an earlier call to
GetContent
, GetContentSummary
, SearchContent
, or ListContents
. If included, this argument acts as an optimistic lock to ensure content was not modified since it was last
read. If it has been modified, this API throws a PreconditionFailedException
.
revisionId
- The revisionId
of the content resource to update, taken from an earlier call to
GetContent
, GetContentSummary
, SearchContent
, or
ListContents
. If included, this argument acts as an optimistic lock to ensure content was not
modified since it was last read. If it has been modified, this API throws a
PreconditionFailedException
.public void setTitle(String title)
The title of the content.
title
- The title of the content.public String getTitle()
The title of the content.
public UpdateContentRequest withTitle(String title)
The title of the content.
title
- The title of the content.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 UpdateContentRequest 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 UpdateContentRequest clone()
AmazonWebServiceRequest
clone
in class AmazonWebServiceRequest
Object.clone()