Interface Placement.Builder
-
- All Superinterfaces:
Buildable,CopyableBuilder<Placement.Builder,Placement>,SdkBuilder<Placement.Builder,Placement>,SdkPojo
- Enclosing class:
- Placement
public static interface Placement.Builder extends SdkPojo, CopyableBuilder<Placement.Builder,Placement>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Placement.BuilderavailabilityZone(String availabilityZone)The Availability Zone where your build and test instances will launch.Placement.BuilderhostId(String hostId)The ID of the Dedicated Host on which build and test instances run.Placement.BuilderhostResourceGroupArn(String hostResourceGroupArn)The Amazon Resource Name (ARN) of the host resource group in which to launch build and test instances.Placement.Buildertenancy(String tenancy)The tenancy of the instance.Placement.Buildertenancy(TenancyType tenancy)The tenancy of the instance.-
Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
-
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 Detail
-
availabilityZone
Placement.Builder availabilityZone(String availabilityZone)
The Availability Zone where your build and test instances will launch.
- Parameters:
availabilityZone- The Availability Zone where your build and test instances will launch.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
tenancy
Placement.Builder tenancy(String tenancy)
The tenancy of the instance. An instance with a tenancy of
dedicatedruns on single-tenant hardware. An instance with a tenancy ofhostruns on a Dedicated Host.If tenancy is set to
host, then you can optionally specify one target for placement – either host ID or host resource group ARN. If automatic placement is enabled for your host, and you don't specify any placement target, Amazon EC2 will try to find an available host for your build and test instances.- Parameters:
tenancy- The tenancy of the instance. An instance with a tenancy ofdedicatedruns on single-tenant hardware. An instance with a tenancy ofhostruns on a Dedicated Host.If tenancy is set to
host, then you can optionally specify one target for placement – either host ID or host resource group ARN. If automatic placement is enabled for your host, and you don't specify any placement target, Amazon EC2 will try to find an available host for your build and test instances.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
TenancyType,TenancyType
-
tenancy
Placement.Builder tenancy(TenancyType tenancy)
The tenancy of the instance. An instance with a tenancy of
dedicatedruns on single-tenant hardware. An instance with a tenancy ofhostruns on a Dedicated Host.If tenancy is set to
host, then you can optionally specify one target for placement – either host ID or host resource group ARN. If automatic placement is enabled for your host, and you don't specify any placement target, Amazon EC2 will try to find an available host for your build and test instances.- Parameters:
tenancy- The tenancy of the instance. An instance with a tenancy ofdedicatedruns on single-tenant hardware. An instance with a tenancy ofhostruns on a Dedicated Host.If tenancy is set to
host, then you can optionally specify one target for placement – either host ID or host resource group ARN. If automatic placement is enabled for your host, and you don't specify any placement target, Amazon EC2 will try to find an available host for your build and test instances.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
TenancyType,TenancyType
-
hostId
Placement.Builder hostId(String hostId)
The ID of the Dedicated Host on which build and test instances run. This only applies if
tenancyishost. If you specify the host ID, you must not specify the resource group ARN. If you specify both, Image Builder returns an error.- Parameters:
hostId- The ID of the Dedicated Host on which build and test instances run. This only applies iftenancyishost. If you specify the host ID, you must not specify the resource group ARN. If you specify both, Image Builder returns an error.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
hostResourceGroupArn
Placement.Builder hostResourceGroupArn(String hostResourceGroupArn)
The Amazon Resource Name (ARN) of the host resource group in which to launch build and test instances. This only applies if
tenancyishost. If you specify the resource group ARN, you must not specify the host ID. If you specify both, Image Builder returns an error.- Parameters:
hostResourceGroupArn- The Amazon Resource Name (ARN) of the host resource group in which to launch build and test instances. This only applies iftenancyishost. If you specify the resource group ARN, you must not specify the host ID. If you specify both, Image Builder returns an error.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
-