Interface CreateAssetRequest.Builder
- All Superinterfaces:
AwsRequest.Builder,Buildable,CopyableBuilder<CreateAssetRequest.Builder,,CreateAssetRequest> DevOpsAgentRequest.Builder,SdkBuilder<CreateAssetRequest.Builder,,CreateAssetRequest> SdkPojo,SdkRequest.Builder
- Enclosing class:
CreateAssetRequest
@Mutable
@NotThreadSafe
public static interface CreateAssetRequest.Builder
extends DevOpsAgentRequest.Builder, SdkPojo, CopyableBuilder<CreateAssetRequest.Builder,CreateAssetRequest>
-
Method Summary
Modifier and TypeMethodDescriptionagentSpaceId(String agentSpaceId) The unique identifier for the agent space where the asset will be createdThe type of asset to createclientToken(String clientToken) A unique, case-sensitive identifier used for idempotent asset creationdefault CreateAssetRequest.Buildercontent(Consumer<AssetContent.Builder> content) The content for the asset.content(AssetContent content) The content for the asset.The metadata describing this assetoverrideConfiguration(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 where the asset will be created
- Parameters:
agentSpaceId- The unique identifier for the agent space where the asset will be created- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
assetType
The type of asset to create
- Parameters:
assetType- The type of asset to create- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
metadata
The metadata describing this asset
- Parameters:
metadata- The metadata describing this asset- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
content
The content for the asset. Provide a single file or a zip bundle.
- Parameters:
content- The content for the asset. Provide a single file or a zip bundle.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
content
The content for the asset. Provide a single file or a zip bundle.
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 creation
- Parameters:
clientToken- A unique, case-sensitive identifier used for idempotent asset creation- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
overrideConfiguration
CreateAssetRequest.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
CreateAssetRequest.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.
-