Interface UpdateAssetRequest.Builder
- All Superinterfaces:
AwsRequest.Builder,Buildable,CopyableBuilder<UpdateAssetRequest.Builder,,UpdateAssetRequest> DevOpsAgentRequest.Builder,SdkBuilder<UpdateAssetRequest.Builder,,UpdateAssetRequest> SdkPojo,SdkRequest.Builder
- Enclosing class:
UpdateAssetRequest
@Mutable
@NotThreadSafe
public static interface UpdateAssetRequest.Builder
extends DevOpsAgentRequest.Builder, SdkPojo, CopyableBuilder<UpdateAssetRequest.Builder,UpdateAssetRequest>
-
Method Summary
Modifier and TypeMethodDescriptionagentSpaceId(String agentSpaceId) The unique identifier for the agent space containing the assetThe unique identifier of the asset to updateclientToken(String clientToken) A unique, case-sensitive identifier used for idempotent asset updatedefault UpdateAssetRequest.Buildercontent(Consumer<AssetContent.Builder> content) Optional content update.content(AssetContent content) Optional content update.Metadata fields to update.overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer) Add an optional request override configuration.overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration) Add an optional request override configuration.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.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 to update
- Parameters:
assetId- The unique identifier of the asset to update- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
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.
-
content
Optional content update. A single file adds or replaces one file; a zip replaces all files; a sourceUrl re-syncs from the original source.
- Parameters:
content- Optional content update. A single file adds or replaces one file; a zip replaces all files; a sourceUrl re-syncs from the original source.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
content
Optional content update. A single file adds or replaces one file; a zip replaces all files; a sourceUrl re-syncs from the original source.
This is a convenience method that creates an instance of theAssetContent.Builderavoiding the need to create one manually viaAssetContent.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed tocontent(AssetContent).- Parameters:
content- a consumer that will call methods onAssetContent.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
clientToken
A unique, case-sensitive identifier used for idempotent asset update
- Parameters:
clientToken- A unique, case-sensitive identifier used for idempotent asset update- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
overrideConfiguration
UpdateAssetRequest.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
UpdateAssetRequest.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.
-