Class CapacityReservationTopology
- java.lang.Object
-
- software.amazon.awssdk.services.ec2.model.CapacityReservationTopology
-
- All Implemented Interfaces:
Serializable,SdkPojo,ToCopyableBuilder<CapacityReservationTopology.Builder,CapacityReservationTopology>
@Generated("software.amazon.awssdk:codegen") public final class CapacityReservationTopology extends Object implements SdkPojo, Serializable, ToCopyableBuilder<CapacityReservationTopology.Builder,CapacityReservationTopology>
Information about the Capacity Reservation topology.
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceCapacityReservationTopology.Builder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description StringavailabilityZone()The name of the Availability Zone or Local Zone that the Capacity Reservation is in.StringavailabilityZoneId()The ID of the Availability Zone or Local Zone that the Capacity Reservation is in.static CapacityReservationTopology.Builderbuilder()StringcapacityBlockId()The ID of the Capacity Block.StringcapacityReservationId()The ID of the Capacity Reservation.booleanequals(Object obj)booleanequalsBySdkFields(Object obj)<T> Optional<T>getValueForField(String fieldName, Class<T> clazz)StringgroupName()The name of the placement group that the Capacity Reservation is in.inthashCode()booleanhasNetworkNodes()For responses, this returns true if the service returned a value for the NetworkNodes property.StringinstanceType()The instance type.List<String>networkNodes()The network nodes.Map<String,SdkField<?>>sdkFieldNameToField()List<SdkField<?>>sdkFields()static Class<? extends CapacityReservationTopology.Builder>serializableBuilderClass()Stringstate()The current state of the Capacity Reservation.CapacityReservationTopology.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
-
capacityReservationId
public final String capacityReservationId()
The ID of the Capacity Reservation.
- Returns:
- The ID of the Capacity Reservation.
-
capacityBlockId
public final String capacityBlockId()
The ID of the Capacity Block. This parameter is only supported for UltraServer instances and identifies instances within the UltraServer domain.
- Returns:
- The ID of the Capacity Block. This parameter is only supported for UltraServer instances and identifies instances within the UltraServer domain.
-
state
public final String state()
The current state of the Capacity Reservation. For the list of possible states, see DescribeCapacityReservations.
- Returns:
- The current state of the Capacity Reservation. For the list of possible states, see DescribeCapacityReservations.
-
instanceType
public final String instanceType()
The instance type.
- Returns:
- The instance type.
-
groupName
public final String groupName()
The name of the placement group that the Capacity Reservation is in.
- Returns:
- The name of the placement group that the Capacity Reservation is in.
-
hasNetworkNodes
public final boolean hasNetworkNodes()
For responses, this returns true if the service returned a value for the NetworkNodes property. This DOES NOT check that the value is non-empty (for which, you should check theisEmpty()method on the property). This is useful because the SDK will never return a null collection or map, but you may need to differentiate between the service returning nothing (or null) and the service returning an empty collection or map. For requests, this returns true if a value for the property was specified in the request builder, and false if a value was not specified.
-
networkNodes
public final List<String> networkNodes()
The network nodes. The nodes are hashed based on your account. Capacity Reservations from different accounts running under the same server will return a different hashed list of strings.
The value is
nullor empty if:-
The instance type is not supported.
-
The Capacity Reservation is in a state other than
activeorpending.
Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
This method will never return null. If you would like to know whether the service returned this field (so that you can differentiate between null and empty), you can use the
hasNetworkNodes()method.- Returns:
- The network nodes. The nodes are hashed based on your account. Capacity Reservations from different
accounts running under the same server will return a different hashed list of strings.
The value is
nullor empty if:-
The instance type is not supported.
-
The Capacity Reservation is in a state other than
activeorpending.
-
-
-
availabilityZoneId
public final String availabilityZoneId()
The ID of the Availability Zone or Local Zone that the Capacity Reservation is in.
- Returns:
- The ID of the Availability Zone or Local Zone that the Capacity Reservation is in.
-
availabilityZone
public final String availabilityZone()
The name of the Availability Zone or Local Zone that the Capacity Reservation is in.
- Returns:
- The name of the Availability Zone or Local Zone that the Capacity Reservation is in.
-
toBuilder
public CapacityReservationTopology.Builder toBuilder()
- Specified by:
toBuilderin interfaceToCopyableBuilder<CapacityReservationTopology.Builder,CapacityReservationTopology>
-
builder
public static CapacityReservationTopology.Builder builder()
-
serializableBuilderClass
public static Class<? extends CapacityReservationTopology.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
-
-