@Generated(value="software.amazon.awssdk:codegen") public final class CreateCapacityReservationFleetResponse extends Ec2Response implements ToCopyableBuilder<CreateCapacityReservationFleetResponse.Builder,CreateCapacityReservationFleetResponse>
Modifier and Type | Class and Description |
---|---|
static interface |
CreateCapacityReservationFleetResponse.Builder |
Modifier and Type | Method and Description |
---|---|
String |
allocationStrategy()
The allocation strategy used by the Capacity Reservation Fleet.
|
static CreateCapacityReservationFleetResponse.Builder |
builder() |
String |
capacityReservationFleetId()
The ID of the Capacity Reservation Fleet.
|
Instant |
createTime()
The date and time at which the Capacity Reservation Fleet was created.
|
Instant |
endDate()
The date and time at which the Capacity Reservation Fleet expires.
|
boolean |
equals(Object obj) |
boolean |
equalsBySdkFields(Object obj) |
List<FleetCapacityReservation> |
fleetCapacityReservations()
Information about the individual Capacity Reservations in the Capacity Reservation Fleet.
|
<T> Optional<T> |
getValueForField(String fieldName,
Class<T> clazz) |
boolean |
hasFleetCapacityReservations()
For responses, this returns true if the service returned a value for the FleetCapacityReservations property.
|
int |
hashCode() |
boolean |
hasTags()
For responses, this returns true if the service returned a value for the Tags property.
|
FleetInstanceMatchCriteria |
instanceMatchCriteria()
The instance matching criteria for the Capacity Reservation Fleet.
|
String |
instanceMatchCriteriaAsString()
The instance matching criteria for the Capacity Reservation Fleet.
|
List<SdkField<?>> |
sdkFields() |
static Class<? extends CreateCapacityReservationFleetResponse.Builder> |
serializableBuilderClass() |
CapacityReservationFleetState |
state()
The status of the Capacity Reservation Fleet.
|
String |
stateAsString()
The status of the Capacity Reservation Fleet.
|
List<Tag> |
tags()
The tags assigned to the Capacity Reservation Fleet.
|
FleetCapacityReservationTenancy |
tenancy()
Indicates the tenancy of Capacity Reservation Fleet.
|
String |
tenancyAsString()
Indicates the tenancy of Capacity Reservation Fleet.
|
CreateCapacityReservationFleetResponse.Builder |
toBuilder() |
String |
toString()
Returns a string representation of this object.
|
Double |
totalFulfilledCapacity()
The requested capacity units that have been successfully reserved.
|
Integer |
totalTargetCapacity()
The total number of capacity units for which the Capacity Reservation Fleet reserves capacity.
|
responseMetadata
sdkHttpResponse
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
copy
public final String capacityReservationFleetId()
The ID of the Capacity Reservation Fleet.
public final CapacityReservationFleetState state()
The status of the Capacity Reservation Fleet.
If the service returns an enum value that is not available in the current SDK version, state
will return
CapacityReservationFleetState.UNKNOWN_TO_SDK_VERSION
. The raw value returned by the service is available
from stateAsString()
.
CapacityReservationFleetState
public final String stateAsString()
The status of the Capacity Reservation Fleet.
If the service returns an enum value that is not available in the current SDK version, state
will return
CapacityReservationFleetState.UNKNOWN_TO_SDK_VERSION
. The raw value returned by the service is available
from stateAsString()
.
CapacityReservationFleetState
public final Integer totalTargetCapacity()
The total number of capacity units for which the Capacity Reservation Fleet reserves capacity.
public final Double totalFulfilledCapacity()
The requested capacity units that have been successfully reserved.
public final FleetInstanceMatchCriteria instanceMatchCriteria()
The instance matching criteria for the Capacity Reservation Fleet.
If the service returns an enum value that is not available in the current SDK version,
instanceMatchCriteria
will return FleetInstanceMatchCriteria.UNKNOWN_TO_SDK_VERSION
. The raw
value returned by the service is available from instanceMatchCriteriaAsString()
.
FleetInstanceMatchCriteria
public final String instanceMatchCriteriaAsString()
The instance matching criteria for the Capacity Reservation Fleet.
If the service returns an enum value that is not available in the current SDK version,
instanceMatchCriteria
will return FleetInstanceMatchCriteria.UNKNOWN_TO_SDK_VERSION
. The raw
value returned by the service is available from instanceMatchCriteriaAsString()
.
FleetInstanceMatchCriteria
public final String allocationStrategy()
The allocation strategy used by the Capacity Reservation Fleet.
public final Instant createTime()
The date and time at which the Capacity Reservation Fleet was created.
public final Instant endDate()
The date and time at which the Capacity Reservation Fleet expires.
public final FleetCapacityReservationTenancy tenancy()
Indicates the tenancy of Capacity Reservation Fleet.
If the service returns an enum value that is not available in the current SDK version, tenancy
will
return FleetCapacityReservationTenancy.UNKNOWN_TO_SDK_VERSION
. The raw value returned by the service is
available from tenancyAsString()
.
FleetCapacityReservationTenancy
public final String tenancyAsString()
Indicates the tenancy of Capacity Reservation Fleet.
If the service returns an enum value that is not available in the current SDK version, tenancy
will
return FleetCapacityReservationTenancy.UNKNOWN_TO_SDK_VERSION
. The raw value returned by the service is
available from tenancyAsString()
.
FleetCapacityReservationTenancy
public final boolean hasFleetCapacityReservations()
isEmpty()
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.public final List<FleetCapacityReservation> fleetCapacityReservations()
Information about the individual Capacity Reservations in the Capacity Reservation Fleet.
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 hasFleetCapacityReservations()
method.
public final boolean hasTags()
isEmpty()
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.public final List<Tag> tags()
The tags assigned to the Capacity Reservation Fleet.
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 hasTags()
method.
public CreateCapacityReservationFleetResponse.Builder toBuilder()
toBuilder
in interface ToCopyableBuilder<CreateCapacityReservationFleetResponse.Builder,CreateCapacityReservationFleetResponse>
toBuilder
in class AwsResponse
public static CreateCapacityReservationFleetResponse.Builder builder()
public static Class<? extends CreateCapacityReservationFleetResponse.Builder> serializableBuilderClass()
public final int hashCode()
hashCode
in class AwsResponse
public final boolean equals(Object obj)
equals
in class AwsResponse
public final boolean equalsBySdkFields(Object obj)
equalsBySdkFields
in interface SdkPojo
public final String toString()
public final <T> Optional<T> getValueForField(String fieldName, Class<T> clazz)
getValueForField
in class SdkResponse
Copyright © 2022. All rights reserved.