Interface UpdateDocumentRequest.Builder
- All Superinterfaces:
AwsRequest.Builder,Buildable,CopyableBuilder<UpdateDocumentRequest.Builder,,UpdateDocumentRequest> SdkBuilder<UpdateDocumentRequest.Builder,,UpdateDocumentRequest> SdkPojo,SdkRequest.Builder,SsmRequest.Builder
- Enclosing class:
UpdateDocumentRequest
-
Method Summary
Modifier and TypeMethodDescriptionattachments(Collection<AttachmentsSource> attachments) A list of key-value pairs that describe attachments to a version of a document.attachments(Consumer<AttachmentsSource.Builder>... attachments) A list of key-value pairs that describe attachments to a version of a document.attachments(AttachmentsSource... attachments) A list of key-value pairs that describe attachments to a version of a document.A valid JSON or YAML string.displayName(String displayName) The friendly name of the SSM document that you want to update.documentFormat(String documentFormat) Specify the document format for the new document version.documentFormat(DocumentFormat documentFormat) Specify the document format for the new document version.documentVersion(String documentVersion) The version of the document that you want to update.The name of the SSM document that you want to update.overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer) Add an optional request override configuration.overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration) Add an optional request override configuration.targetType(String targetType) Specify a new target type for the document.versionName(String versionName) An optional field specifying the version of the artifact you are updating with the document.Methods inherited from interface software.amazon.awssdk.awscore.AwsRequest.Builder
overrideConfigurationMethods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copyMethods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, buildMethods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFieldsMethods inherited from interface software.amazon.awssdk.services.ssm.model.SsmRequest.Builder
build
-
Method Details
-
content
A valid JSON or YAML string.
- Parameters:
content- A valid JSON or YAML string.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
attachments
A list of key-value pairs that describe attachments to a version of a document.
- Parameters:
attachments- A list of key-value pairs that describe attachments to a version of a document.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
attachments
A list of key-value pairs that describe attachments to a version of a document.
- Parameters:
attachments- A list of key-value pairs that describe attachments to a version of a document.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
attachments
A list of key-value pairs that describe attachments to a version of a document.
This is a convenience method that creates an instance of theAttachmentsSource.Builderavoiding the need to create one manually viaAttachmentsSource.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed toattachments(List<AttachmentsSource>).- Parameters:
attachments- a consumer that will call methods onAttachmentsSource.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
name
The name of the SSM document that you want to update.
- Parameters:
name- The name of the SSM document that you want to update.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
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.
- Parameters:
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.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
versionName
An optional field specifying the version of the artifact you are updating with the document. For example, 12.6. This value is unique across all versions of a document, and can't be changed.
- Parameters:
versionName- An optional field specifying the version of the artifact you are updating with the document. For example, 12.6. This value is unique across all versions of a document, and can't be changed.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
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
$LATESTvariable.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-intervalparameter.- Parameters:
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$LATESTvariable.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-intervalparameter.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
documentFormat
Specify the document format for the new document version. Systems Manager supports JSON and YAML documents. JSON is the default format.
- Parameters:
documentFormat- Specify the document format for the new document version. Systems Manager supports JSON and YAML documents. JSON is the default format.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
documentFormat
Specify the document format for the new document version. Systems Manager supports JSON and YAML documents. JSON is the default format.
- Parameters:
documentFormat- Specify the document format for the new document version. Systems Manager supports JSON and YAML documents. JSON is the default format.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
targetType
Specify a new target type for the document.
- Parameters:
targetType- Specify a new target type for the document.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
overrideConfiguration
UpdateDocumentRequest.Builder overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration) Description copied from interface:AwsRequest.BuilderAdd an optional request override configuration.- Specified by:
overrideConfigurationin interfaceAwsRequest.Builder- Parameters:
overrideConfiguration- The override configuration.- Returns:
- This object for method chaining.
-
overrideConfiguration
UpdateDocumentRequest.Builder overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer) Description copied from interface:AwsRequest.BuilderAdd an optional request override configuration.- Specified by:
overrideConfigurationin interfaceAwsRequest.Builder- Parameters:
builderConsumer- AConsumerto which an emptyAwsRequestOverrideConfiguration.Builderwill be given.- Returns:
- This object for method chaining.
-