Interface CreateAppRequest.Builder
- All Superinterfaces:
AwsRequest.Builder,Buildable,CopyableBuilder<CreateAppRequest.Builder,,CreateAppRequest> SdkBuilder<CreateAppRequest.Builder,,CreateAppRequest> SdkPojo,SdkRequest.Builder,SmsRequest.Builder
- Enclosing class:
CreateAppRequest
-
Method Summary
Modifier and TypeMethodDescriptionclientToken(String clientToken) A unique, case-sensitive identifier that you provide to ensure the idempotency of application creation.description(String description) The description of the new applicationThe name of the new application.overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer) Add an optional request override configuration.overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration) Add an optional request override configuration.The name of the service role in the customer's account to be used by Server Migration Service.serverGroups(Collection<ServerGroup> serverGroups) The server groups to include in the application.serverGroups(Consumer<ServerGroup.Builder>... serverGroups) The server groups to include in the application.serverGroups(ServerGroup... serverGroups) The server groups to include in the application.tags(Collection<Tag> tags) The tags to be associated with the application.tags(Consumer<Tag.Builder>... tags) The tags to be associated with the application.The tags to be associated with the application.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.sms.model.SmsRequest.Builder
build
-
Method Details
-
name
The name of the new application.
- Parameters:
name- The name of the new application.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
description
The description of the new application
- Parameters:
description- The description of the new application- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
roleName
The name of the service role in the customer's account to be used by Server Migration Service.
- Parameters:
roleName- The name of the service role in the customer's account to be used by Server Migration Service.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
clientToken
A unique, case-sensitive identifier that you provide to ensure the idempotency of application creation.
- Parameters:
clientToken- A unique, case-sensitive identifier that you provide to ensure the idempotency of application creation.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
serverGroups
The server groups to include in the application.
- Parameters:
serverGroups- The server groups to include in the application.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
serverGroups
The server groups to include in the application.
- Parameters:
serverGroups- The server groups to include in the application.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
serverGroups
The server groups to include in the application.
This is a convenience method that creates an instance of theServerGroup.Builderavoiding the need to create one manually viaServerGroup.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed toserverGroups(List<ServerGroup>).- Parameters:
serverGroups- a consumer that will call methods onServerGroup.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
tags
The tags to be associated with the application.
- Parameters:
tags- The tags to be associated with the application.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
tags
The tags to be associated with the application.
- Parameters:
tags- The tags to be associated with the application.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
tags
The tags to be associated with the application.
This is a convenience method that creates an instance of theTag.Builderavoiding the need to create one manually viaTag.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed totags(List<Tag>).- Parameters:
tags- a consumer that will call methods onTag.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
overrideConfiguration
CreateAppRequest.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
CreateAppRequest.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.
-