@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() |
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()
(Required) The latest 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)
(Required) The latest 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)
(Required) The latest 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, copyBaseTo, 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 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)
(Required) The latest version of the document that you want to update. The latest document version can be specified using the $LATEST variable or by the version number. Updating a previous version of a document is not supported.
documentVersion
- (Required) The latest version of the document that you want to update. The latest document version can be
specified using the $LATEST variable or by the version number. Updating a previous version of a document
is not supported.public String getDocumentVersion()
(Required) The latest version of the document that you want to update. The latest document version can be specified using the $LATEST variable or by the version number. Updating a previous version of a document is not supported.
public UpdateDocumentRequest withDocumentVersion(String documentVersion)
(Required) The latest version of the document that you want to update. The latest document version can be specified using the $LATEST variable or by the version number. Updating a previous version of a document is not supported.
documentVersion
- (Required) The latest version of the document that you want to update. The latest document version can be
specified using the $LATEST variable or by the version number. Updating a previous version of a document
is not supported.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.DocumentFormat
public String getDocumentFormat()
Specify the document format for the new document version. Systems Manager supports JSON and YAML documents. JSON is the default format.
DocumentFormat
public 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.DocumentFormat
public 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.DocumentFormat
public 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 Object
Object.toString()
public UpdateDocumentRequest clone()
clone
in class AmazonWebServiceRequest
Copyright © 2020. All rights reserved.