Class Placement
- All Implemented Interfaces:
Serializable,SdkPojo,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:
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionfinal StringThe Availability Zone where your build and test instances will launch.static Placement.Builderbuilder()final booleanfinal booleanequalsBySdkFields(Object obj) Indicates whether some other object is "equal to" this one by SDK fields.final <T> Optional<T> getValueForField(String fieldName, Class<T> clazz) final inthashCode()final StringhostId()The ID of the Dedicated Host on which build and test instances run.final StringThe Amazon Resource Name (ARN) of the host resource group in which to launch build and test instances.static Class<? extends Placement.Builder> final TenancyTypetenancy()The tenancy of the instance.final StringThe tenancy of the instance.Take this object and create a builder that contains all of the current property values of this object.final StringtoString()Returns a string representation of this object.Methods inherited from interface software.amazon.awssdk.utils.builder.ToCopyableBuilder
copy
-
Method Details
-
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
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:
-
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:
-
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
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
Description copied from interface:ToCopyableBuilderTake this object and create a builder that contains all of the current property values of this object.- Specified by:
toBuilderin interfaceToCopyableBuilder<Placement.Builder,Placement> - Returns:
- a builder for type T
-
builder
-
serializableBuilderClass
-
hashCode
-
equals
-
equalsBySdkFields
Description copied from interface:SdkPojoIndicates whether some other object is "equal to" this one by SDK fields. An SDK field is a modeled, non-inherited field in anSdkPojoclass, and is generated based on a service model.If an
SdkPojoclass does not have any inherited fields,equalsBySdkFieldsandequalsare essentially the same.- Specified by:
equalsBySdkFieldsin interfaceSdkPojo- Parameters:
obj- the object to be compared with- Returns:
- true if the other object equals to this object by sdk fields, false otherwise.
-
toString
-
getValueForField
-
sdkFields
-
sdkFieldNameToField
- Specified by:
sdkFieldNameToFieldin interfaceSdkPojo- Returns:
- The mapping between the field name and its corresponding field.
-