Interface CreateAssetFileRequest.Builder
- All Superinterfaces:
AwsRequest.Builder,Buildable,CopyableBuilder<CreateAssetFileRequest.Builder,,CreateAssetFileRequest> DevOpsAgentRequest.Builder,SdkBuilder<CreateAssetFileRequest.Builder,,CreateAssetFileRequest> SdkPojo,SdkRequest.Builder
- Enclosing class:
CreateAssetFileRequest
@Mutable
@NotThreadSafe
public static interface CreateAssetFileRequest.Builder
extends DevOpsAgentRequest.Builder, SdkPojo, CopyableBuilder<CreateAssetFileRequest.Builder,CreateAssetFileRequest>
-
Method Summary
Modifier and TypeMethodDescriptionagentSpaceId(String agentSpaceId) The unique identifier for the agent space containing the assetThe unique identifier of the asset to create the file inclientToken(String clientToken) A unique, case-sensitive identifier used for idempotent asset file creationdefault CreateAssetFileRequest.Buildercontent(Consumer<AssetFileBody.Builder> content) The content of the file to createcontent(AssetFileBody content) The content of the file to createOptional metadata describing this fileoverrideConfiguration(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 assetMethods 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 create the file in
- Parameters:
assetId- The unique identifier of the asset to create the file in- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
path
The path of the file within the asset
- Parameters:
path- The path of the file within the asset- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
content
The content of the file to create
- Parameters:
content- The content of the file to create- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
content
The content of the file to create
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
Optional metadata describing this file
- Parameters:
metadata- Optional metadata describing this file- 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 creation
- Parameters:
clientToken- A unique, case-sensitive identifier used for idempotent asset file creation- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
overrideConfiguration
CreateAssetFileRequest.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
CreateAssetFileRequest.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.
-