Interface UpdateAssetFileRequest.Builder
- All Superinterfaces:
AwsRequest.Builder,Buildable,CopyableBuilder<UpdateAssetFileRequest.Builder,,UpdateAssetFileRequest> DevOpsAgentRequest.Builder,SdkBuilder<UpdateAssetFileRequest.Builder,,UpdateAssetFileRequest> SdkPojo,SdkRequest.Builder
- Enclosing class:
UpdateAssetFileRequest
@Mutable
@NotThreadSafe
public static interface UpdateAssetFileRequest.Builder
extends DevOpsAgentRequest.Builder, SdkPojo, CopyableBuilder<UpdateAssetFileRequest.Builder,UpdateAssetFileRequest>
-
Method Summary
Modifier and TypeMethodDescriptionagentSpaceId(String agentSpaceId) The unique identifier for the agent space containing the assetThe unique identifier of the asset containing the fileclientToken(String clientToken) A unique, case-sensitive identifier used for idempotent asset file updatedefault UpdateAssetFileRequest.Buildercontent(Consumer<AssetFileBody.Builder> content) Updated file content.content(AssetFileBody content) Updated file content.Metadata fields to update.overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer) Add an optional request override configuration.overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration) Add an optional request override configuration.The path of the file within the asset to updateMethods 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.services.devopsagent.model.DevOpsAgentRequest.Builder
buildMethods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, buildMethods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFieldNameToField, sdkFields
-
Method Details
-
agentSpaceId
The unique identifier for the agent space containing the asset
- Parameters:
agentSpaceId- The unique identifier for the agent space containing the asset- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
assetId
The unique identifier of the asset containing the file
- Parameters:
assetId- The unique identifier of the asset containing the file- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
path
The path of the file within the asset to update
- Parameters:
path- The path of the file within the asset to update- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
content
Updated file content. If omitted, the existing content is unchanged.
- Parameters:
content- Updated file content. If omitted, the existing content is unchanged.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
content
Updated file content. If omitted, the existing content is unchanged.
This is a convenience method that creates an instance of theAssetFileBody.Builderavoiding the need to create one manually viaAssetFileBody.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed tocontent(AssetFileBody).- Parameters:
content- a consumer that will call methods onAssetFileBody.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
metadata
Metadata fields to update. Only the fields present in this document are updated. Omitted fields retain their current values.
- Parameters:
metadata- Metadata fields to update. Only the fields present in this document are updated. Omitted fields retain their current values.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
clientToken
A unique, case-sensitive identifier used for idempotent asset file update
- Parameters:
clientToken- A unique, case-sensitive identifier used for idempotent asset file update- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
overrideConfiguration
UpdateAssetFileRequest.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
UpdateAssetFileRequest.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.
-