@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class UpdateDocumentRequest extends AmazonWebServiceRequest implements Serializable, Cloneable
NOOP| Constructor and Description |
|---|
UpdateDocumentRequest() |
| Modifier and Type | Method and Description |
|---|---|
UpdateDocumentRequest |
clone()
Creates a shallow clone of this object for all fields except the handler context.
|
boolean |
equals(Object obj) |
List<AttachmentsSource> |
getAttachments()
A list of key and value pairs that describe attachments to a version of a document.
|
String |
getContent()
A valid JSON or YAML string.
|
String |
getDocumentFormat()
Specify the document format for the new document version.
|
String |
getDocumentVersion()
The version of the document that you want to update.
|
String |
getName()
The name of the document that you want to update.
|
String |
getTargetType()
Specify a new target type for the document.
|
String |
getVersionName()
An optional field specifying the version of the artifact you are updating with the document.
|
int |
hashCode() |
void |
setAttachments(Collection<AttachmentsSource> attachments)
A list of key and value pairs that describe attachments to a version of a document.
|
void |
setContent(String content)
A valid JSON or YAML string.
|
void |
setDocumentFormat(String documentFormat)
Specify the document format for the new document version.
|
void |
setDocumentVersion(String documentVersion)
The version of the document that you want to update.
|
void |
setName(String name)
The name of the document that you want to update.
|
void |
setTargetType(String targetType)
Specify a new target type for the document.
|
void |
setVersionName(String versionName)
An optional field specifying the version of the artifact you are updating with the document.
|
String |
toString()
Returns a string representation of this object.
|
UpdateDocumentRequest |
withAttachments(AttachmentsSource... attachments)
A list of key and value pairs that describe attachments to a version of a document.
|
UpdateDocumentRequest |
withAttachments(Collection<AttachmentsSource> attachments)
A list of key and value pairs that describe attachments to a version of a document.
|
UpdateDocumentRequest |
withContent(String content)
A valid JSON or YAML string.
|
UpdateDocumentRequest |
withDocumentFormat(DocumentFormat documentFormat)
Specify the document format for the new document version.
|
UpdateDocumentRequest |
withDocumentFormat(String documentFormat)
Specify the document format for the new document version.
|
UpdateDocumentRequest |
withDocumentVersion(String documentVersion)
The version of the document that you want to update.
|
UpdateDocumentRequest |
withName(String name)
The name of the document that you want to update.
|
UpdateDocumentRequest |
withTargetType(String targetType)
Specify a new target type for the document.
|
UpdateDocumentRequest |
withVersionName(String versionName)
An optional field specifying the version of the artifact you are updating with the document.
|
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, withSdkRequestTimeoutpublic void setContent(String content)
A valid JSON or YAML string.
content - A valid JSON or YAML string.public String getContent()
A valid JSON or YAML string.
public UpdateDocumentRequest withContent(String content)
A valid JSON or YAML string.
content - A valid JSON or YAML string.public List<AttachmentsSource> getAttachments()
A list of key and value pairs that describe attachments to a version of a document.
public void setAttachments(Collection<AttachmentsSource> attachments)
A list of key and value pairs that describe attachments to a version of a document.
attachments - A list of key and value pairs that describe attachments to a version of a document.public UpdateDocumentRequest withAttachments(AttachmentsSource... attachments)
A list of key and value pairs that describe attachments to a version of a document.
NOTE: This method appends the values to the existing list (if any). Use
setAttachments(java.util.Collection) or withAttachments(java.util.Collection) if you want to
override the existing values.
attachments - A list of key and value pairs that describe attachments to a version of a document.public UpdateDocumentRequest withAttachments(Collection<AttachmentsSource> attachments)
A list of key and value pairs that describe attachments to a version of a document.
attachments - A list of key and value pairs that describe attachments to a version of a document.public void setName(String name)
The name of the document that you want to update.
name - The name of the document that you want to update.public String getName()
The name of the document that you want to update.
public UpdateDocumentRequest withName(String name)
The name of the document that you want to update.
name - The name of the document that you want to update.public void setVersionName(String versionName)
An optional field specifying the version of the artifact you are updating with the document. For example, "Release 12, Update 6". This value is unique across all versions of a document, and cannot be changed.
versionName - An optional field specifying the version of the artifact you are updating with the document. For example,
"Release 12, Update 6". This value is unique across all versions of a document, and cannot be changed.public String getVersionName()
An optional field specifying the version of the artifact you are updating with the document. For example, "Release 12, Update 6". This value is unique across all versions of a document, and cannot be changed.
public UpdateDocumentRequest withVersionName(String versionName)
An optional field specifying the version of the artifact you are updating with the document. For example, "Release 12, Update 6". This value is unique across all versions of a document, and cannot be changed.
versionName - An optional field specifying the version of the artifact you are updating with the document. For example,
"Release 12, Update 6". This value is unique across all versions of a document, and cannot be changed.public void setDocumentVersion(String documentVersion)
The version of the document that you want to update.
documentVersion - The version of the document that you want to update.public String getDocumentVersion()
The version of the document that you want to update.
public UpdateDocumentRequest withDocumentVersion(String documentVersion)
The version of the document that you want to update.
documentVersion - The version of the document that you want to update.public void setDocumentFormat(String documentFormat)
Specify the document format for the new document version. Systems Manager supports JSON and YAML documents. JSON is the default format.
documentFormat - Specify the document format for the new document version. Systems Manager supports JSON and YAML
documents. JSON is the default format.DocumentFormatpublic String getDocumentFormat()
Specify the document format for the new document version. Systems Manager supports JSON and YAML documents. JSON is the default format.
DocumentFormatpublic UpdateDocumentRequest withDocumentFormat(String documentFormat)
Specify the document format for the new document version. Systems Manager supports JSON and YAML documents. JSON is the default format.
documentFormat - Specify the document format for the new document version. Systems Manager supports JSON and YAML
documents. JSON is the default format.DocumentFormatpublic UpdateDocumentRequest withDocumentFormat(DocumentFormat documentFormat)
Specify the document format for the new document version. Systems Manager supports JSON and YAML documents. JSON is the default format.
documentFormat - Specify the document format for the new document version. Systems Manager supports JSON and YAML
documents. JSON is the default format.DocumentFormatpublic void setTargetType(String targetType)
Specify a new target type for the document.
targetType - Specify a new target type for the document.public String getTargetType()
Specify a new target type for the document.
public UpdateDocumentRequest withTargetType(String targetType)
Specify a new target type for the document.
targetType - Specify a new target type for the document.public String toString()
toString in class ObjectObject.toString()public UpdateDocumentRequest clone()
AmazonWebServiceRequestclone in class AmazonWebServiceRequestObject.clone()Copyright © 2013 Amazon Web Services, Inc. All Rights Reserved.