@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-value pairs that describe attachments to a version of a document.
|
String |
getContent()
A valid JSON or YAML string.
|
String |
getDisplayName()
The friendly name of the SSM document that you want to update.
|
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 SSM 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-value pairs that describe attachments to a version of a document.
|
void |
setContent(String content)
A valid JSON or YAML string.
|
void |
setDisplayName(String displayName)
The friendly name of the SSM document that you want to update.
|
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 SSM 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-value pairs that describe attachments to a version of a document.
|
UpdateDocumentRequest |
withAttachments(Collection<AttachmentsSource> attachments)
A list of key-value pairs that describe attachments to a version of a document.
|
UpdateDocumentRequest |
withContent(String content)
A valid JSON or YAML string.
|
UpdateDocumentRequest |
withDisplayName(String displayName)
The friendly name of the SSM document that you want to update.
|
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 SSM 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-value pairs that describe attachments to a version of a document.
public void setAttachments(Collection<AttachmentsSource> attachments)
A list of key-value pairs that describe attachments to a version of a document.
attachments
- A list of key-value pairs that describe attachments to a version of a document.public UpdateDocumentRequest withAttachments(AttachmentsSource... attachments)
A list of key-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-value pairs that describe attachments to a version of a document.public UpdateDocumentRequest withAttachments(Collection<AttachmentsSource> attachments)
A list of key-value pairs that describe attachments to a version of a document.
attachments
- A list of key-value pairs that describe attachments to a version of a document.public void setName(String name)
The name of the SSM document that you want to update.
name
- The name of the SSM document that you want to update.public String getName()
The name of the SSM document that you want to update.
public UpdateDocumentRequest withName(String name)
The name of the SSM document that you want to update.
name
- The name of the SSM document that you want to update.public void setDisplayName(String displayName)
The friendly name of the SSM document that you want to update. This value can differ for each version of the document. If you don't specify a value for this parameter in your request, the existing value is applied to the new document version.
displayName
- The friendly name of the SSM document that you want to update. This value can differ for each version of
the document. If you don't specify a value for this parameter in your request, the existing value is
applied to the new document version.public String getDisplayName()
The friendly name of the SSM document that you want to update. This value can differ for each version of the document. If you don't specify a value for this parameter in your request, the existing value is applied to the new document version.
public UpdateDocumentRequest withDisplayName(String displayName)
The friendly name of the SSM document that you want to update. This value can differ for each version of the document. If you don't specify a value for this parameter in your request, the existing value is applied to the new document version.
displayName
- The friendly name of the SSM document that you want to update. This value can differ for each version of
the document. If you don't specify a value for this parameter in your request, the existing value is
applied to the new document version.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 can't 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 can't 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 can't 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 can't 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 can't be changed.public void setDocumentVersion(String documentVersion)
The version of the document that you want to update. Currently, Systems Manager supports updating only the latest
version of the document. You can specify the version number of the latest version or use the $LATEST
variable.
If you change a document version for a State Manager association, Systems Manager immediately runs the
association unless you previously specifed the apply-only-at-cron-interval
parameter.
documentVersion
- The version of the document that you want to update. Currently, Systems Manager supports updating only the
latest version of the document. You can specify the version number of the latest version or use the
$LATEST
variable.
If you change a document version for a State Manager association, Systems Manager immediately runs the
association unless you previously specifed the apply-only-at-cron-interval
parameter.
public String getDocumentVersion()
The version of the document that you want to update. Currently, Systems Manager supports updating only the latest
version of the document. You can specify the version number of the latest version or use the $LATEST
variable.
If you change a document version for a State Manager association, Systems Manager immediately runs the
association unless you previously specifed the apply-only-at-cron-interval
parameter.
$LATEST
variable.
If you change a document version for a State Manager association, Systems Manager immediately runs the
association unless you previously specifed the apply-only-at-cron-interval
parameter.
public UpdateDocumentRequest withDocumentVersion(String documentVersion)
The version of the document that you want to update. Currently, Systems Manager supports updating only the latest
version of the document. You can specify the version number of the latest version or use the $LATEST
variable.
If you change a document version for a State Manager association, Systems Manager immediately runs the
association unless you previously specifed the apply-only-at-cron-interval
parameter.
documentVersion
- The version of the document that you want to update. Currently, Systems Manager supports updating only the
latest version of the document. You can specify the version number of the latest version or use the
$LATEST
variable.
If you change a document version for a State Manager association, Systems Manager immediately runs the
association unless you previously specifed the apply-only-at-cron-interval
parameter.
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 © 2023. All rights reserved.