Interface CreateHomeRegionControlRequest.Builder
- All Superinterfaces:
AwsRequest.Builder
,Buildable
,CopyableBuilder<CreateHomeRegionControlRequest.Builder,
,CreateHomeRegionControlRequest> MigrationHubConfigRequest.Builder
,SdkBuilder<CreateHomeRegionControlRequest.Builder,
,CreateHomeRegionControlRequest> SdkPojo
,SdkRequest.Builder
- Enclosing class:
CreateHomeRegionControlRequest
@Mutable
@NotThreadSafe
public static interface CreateHomeRegionControlRequest.Builder
extends MigrationHubConfigRequest.Builder, SdkPojo, CopyableBuilder<CreateHomeRegionControlRequest.Builder,CreateHomeRegionControlRequest>
-
Method Summary
Modifier and TypeMethodDescriptionOptional Boolean flag to indicate whether any effect should take place.homeRegion
(String homeRegion) The name of the home region of the calling account.overrideConfiguration
(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer) Add an optional request override configuration.overrideConfiguration
(AwsRequestOverrideConfiguration overrideConfiguration) Add an optional request override configuration.target
(Consumer<Target.Builder> target) The account for which this command sets up a home region control.The account for which this command sets up a home region control.Methods inherited from interface software.amazon.awssdk.awscore.AwsRequest.Builder
overrideConfiguration
Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
Methods inherited from interface software.amazon.awssdk.services.migrationhubconfig.model.MigrationHubConfigRequest.Builder
build
Methods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, build
Methods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFieldNameToField, sdkFields
-
Method Details
-
homeRegion
The name of the home region of the calling account.
- Parameters:
homeRegion
- The name of the home region of the calling account.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
target
The account for which this command sets up a home region control. The
Target
is always of typeACCOUNT
.- Parameters:
target
- The account for which this command sets up a home region control. TheTarget
is always of typeACCOUNT
.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
target
The account for which this command sets up a home region control. The
This is a convenience method that creates an instance of theTarget
is always of typeACCOUNT
.Target.Builder
avoiding the need to create one manually viaTarget.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed totarget(Target)
.- Parameters:
target
- a consumer that will call methods onTarget.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
dryRun
Optional Boolean flag to indicate whether any effect should take place. It tests whether the caller has permission to make the call.
- Parameters:
dryRun
- Optional Boolean flag to indicate whether any effect should take place. It tests whether the caller has permission to make the call.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
overrideConfiguration
CreateHomeRegionControlRequest.Builder overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration) Description copied from interface:AwsRequest.Builder
Add an optional request override configuration.- Specified by:
overrideConfiguration
in interfaceAwsRequest.Builder
- Parameters:
overrideConfiguration
- The override configuration.- Returns:
- This object for method chaining.
-
overrideConfiguration
CreateHomeRegionControlRequest.Builder overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer) Description copied from interface:AwsRequest.Builder
Add an optional request override configuration.- Specified by:
overrideConfiguration
in interfaceAwsRequest.Builder
- Parameters:
builderConsumer
- AConsumer
to which an emptyAwsRequestOverrideConfiguration.Builder
will be given.- Returns:
- This object for method chaining.
-