Class Placement
- java.lang.Object
-
- software.amazon.awssdk.services.imagebuilder.model.Placement
-
- All Implemented Interfaces:
Serializable,SdkPojo,ToCopyableBuilder<Placement.Builder,Placement>
@Generated("software.amazon.awssdk:codegen") public final class Placement extends Object implements SdkPojo, Serializable, ToCopyableBuilder<Placement.Builder,Placement>
By default, EC2 instances run on shared tenancy hardware. This means that multiple Amazon Web Services accounts might share the same physical hardware. When you use dedicated hardware, the physical server that hosts your instances is dedicated to your Amazon Web Services account. Instance placement settings contain the details for the physical hardware where instances that Image Builder launches during image creation will run.
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfacePlacement.Builder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description StringavailabilityZone()The Availability Zone where your build and test instances will launch.static Placement.Builderbuilder()booleanequals(Object obj)booleanequalsBySdkFields(Object obj)<T> Optional<T>getValueForField(String fieldName, Class<T> clazz)inthashCode()StringhostId()The ID of the Dedicated Host on which build and test instances run.StringhostResourceGroupArn()The Amazon Resource Name (ARN) of the host resource group in which to launch build and test instances.Map<String,SdkField<?>>sdkFieldNameToField()List<SdkField<?>>sdkFields()static Class<? extends Placement.Builder>serializableBuilderClass()TenancyTypetenancy()The tenancy of the instance.StringtenancyAsString()The tenancy of the instance.Placement.BuildertoBuilder()StringtoString()Returns a string representation of this object.-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface software.amazon.awssdk.utils.builder.ToCopyableBuilder
copy
-
-
-
-
Method Detail
-
availabilityZone
public final String availabilityZone()
The Availability Zone where your build and test instances will launch.
- Returns:
- The Availability Zone where your build and test instances will launch.
-
tenancy
public final 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.If the service returns an enum value that is not available in the current SDK version,
tenancywill returnTenancyType.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromtenancyAsString().- Returns:
- 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. - See Also:
TenancyType
-
tenancyAsString
public final String tenancyAsString()
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.If the service returns an enum value that is not available in the current SDK version,
tenancywill returnTenancyType.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromtenancyAsString().- Returns:
- 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. - See Also:
TenancyType
-
hostId
public final 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.- Returns:
- 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.
-
hostResourceGroupArn
public final 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.- Returns:
- 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.
-
toBuilder
public Placement.Builder toBuilder()
- Specified by:
toBuilderin interfaceToCopyableBuilder<Placement.Builder,Placement>
-
builder
public static Placement.Builder builder()
-
serializableBuilderClass
public static Class<? extends Placement.Builder> serializableBuilderClass()
-
equalsBySdkFields
public final boolean equalsBySdkFields(Object obj)
- Specified by:
equalsBySdkFieldsin interfaceSdkPojo
-
toString
public final String toString()
Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be redacted from this string using a placeholder value.
-
sdkFieldNameToField
public final Map<String,SdkField<?>> sdkFieldNameToField()
- Specified by:
sdkFieldNameToFieldin interfaceSdkPojo
-
-