public static interface UpdateDocumentRequest.Builder extends SsmRequest.Builder, SdkPojo, CopyableBuilder<UpdateDocumentRequest.Builder,UpdateDocumentRequest>
Modifier and Type | Method and Description |
---|---|
UpdateDocumentRequest.Builder |
attachments(AttachmentsSource... attachments)
A list of key and value pairs that describe attachments to a version of a document.
|
UpdateDocumentRequest.Builder |
attachments(Collection<AttachmentsSource> attachments)
A list of key and value pairs that describe attachments to a version of a document.
|
UpdateDocumentRequest.Builder |
attachments(Consumer<AttachmentsSource.Builder>... attachments)
A list of key and value pairs that describe attachments to a version of a document.
|
UpdateDocumentRequest.Builder |
content(String content)
A valid JSON or YAML string.
|
UpdateDocumentRequest.Builder |
documentFormat(DocumentFormat documentFormat)
Specify the document format for the new document version.
|
UpdateDocumentRequest.Builder |
documentFormat(String documentFormat)
Specify the document format for the new document version.
|
UpdateDocumentRequest.Builder |
documentVersion(String documentVersion)
The version of the document that you want to update.
|
UpdateDocumentRequest.Builder |
name(String name)
The name of the document that you want to update.
|
UpdateDocumentRequest.Builder |
overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration)
Add an optional request override configuration.
|
UpdateDocumentRequest.Builder |
overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer)
Add an optional request override configuration.
|
UpdateDocumentRequest.Builder |
targetType(String targetType)
Specify a new target type for the document.
|
UpdateDocumentRequest.Builder |
versionName(String versionName)
An optional field specifying the version of the artifact you are updating with the document.
|
build
overrideConfiguration
copy
applyMutation, build
UpdateDocumentRequest.Builder content(String content)
A valid JSON or YAML string.
content
- A valid JSON or YAML string.UpdateDocumentRequest.Builder attachments(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.UpdateDocumentRequest.Builder attachments(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.UpdateDocumentRequest.Builder attachments(Consumer<AttachmentsSource.Builder>... attachments)
A list of key and value pairs that describe attachments to a version of a document.
This is a convenience that creates an instance of theList.Builder
avoiding the
need to create one manually via List#builder()
.
When the Consumer
completes, List.Builder#build()
is called immediately
and its result is passed to #attachments(List)
.attachments
- a consumer that will call methods on List.Builder
#attachments(List)
UpdateDocumentRequest.Builder name(String name)
The name of the document that you want to update.
name
- The name of the document that you want to update.UpdateDocumentRequest.Builder versionName(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.UpdateDocumentRequest.Builder documentVersion(String documentVersion)
The version of the document that you want to update.
documentVersion
- The version of the document that you want to update.UpdateDocumentRequest.Builder documentFormat(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
,
DocumentFormat
UpdateDocumentRequest.Builder documentFormat(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
,
DocumentFormat
UpdateDocumentRequest.Builder targetType(String targetType)
Specify a new target type for the document.
targetType
- Specify a new target type for the document.UpdateDocumentRequest.Builder overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration)
AwsRequest.Builder
overrideConfiguration
in interface AwsRequest.Builder
overrideConfiguration
- The override configuration.UpdateDocumentRequest.Builder overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer)
AwsRequest.Builder
overrideConfiguration
in interface AwsRequest.Builder
builderConsumer
- A Consumer
to which an empty AwsRequestOverrideConfiguration.Builder
will be
given.Copyright © 2017 Amazon Web Services, Inc. All Rights Reserved.