Class QuoteCapacity
- All Implemented Interfaces:
Serializable,SdkPojo,ToCopyableBuilder<QuoteCapacity.Builder,QuoteCapacity>
A capacity requirement for a quote. Specifies the type of capacity, the unit, and the quantity.
- See Also:
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionstatic QuoteCapacity.Builderbuilder()final booleanfinal booleanequalsBySdkFields(Object obj) final <T> Optional<T>getValueForField(String fieldName, Class<T> clazz) final inthashCode()final Floatquantity()The quantity of the specified capacity unit.final QuoteCapacityTypeThe type of capacity.final StringThe type of capacity.static Class<? extends QuoteCapacity.Builder>final StringtoString()Returns a string representation of this object.final Stringunit()The unit of measurement for the capacity.Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface software.amazon.awssdk.utils.builder.ToCopyableBuilder
copy
-
Method Details
-
quoteCapacityType
The type of capacity. Valid values are
EC2,EBS, andS3.If the service returns an enum value that is not available in the current SDK version,
quoteCapacityTypewill returnQuoteCapacityType.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromquoteCapacityTypeAsString().- Returns:
- The type of capacity. Valid values are
EC2,EBS, andS3. - See Also:
-
quoteCapacityTypeAsString
The type of capacity. Valid values are
EC2,EBS, andS3.If the service returns an enum value that is not available in the current SDK version,
quoteCapacityTypewill returnQuoteCapacityType.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromquoteCapacityTypeAsString().- Returns:
- The type of capacity. Valid values are
EC2,EBS, andS3. - See Also:
-
unit
The unit of measurement for the capacity. For Amazon EC2, this is the instance type (for example,
c5.24xlarge). For Amazon EBS and Amazon S3, this is the storage unit (for example,TiBfor tebibytes).- Returns:
- The unit of measurement for the capacity. For Amazon EC2, this is the instance type (for example,
c5.24xlarge). For Amazon EBS and Amazon S3, this is the storage unit (for example,TiBfor tebibytes).
-
quantity
The quantity of the specified capacity unit. For Amazon EC2, this is the number of additional instances to add to the Outpost. For Amazon EBS and Amazon S3, this is the total desired end-state capacity of the Outpost.
- Returns:
- The quantity of the specified capacity unit. For Amazon EC2, this is the number of additional instances to add to the Outpost. For Amazon EBS and Amazon S3, this is the total desired end-state capacity of the Outpost.
-
toBuilder
- Specified by:
toBuilderin interfaceToCopyableBuilder<QuoteCapacity.Builder,QuoteCapacity>
-
builder
-
serializableBuilderClass
-
hashCode
public final int hashCode() -
equals
-
equalsBySdkFields
- Specified by:
equalsBySdkFieldsin interfaceSdkPojo
-
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. -
getValueForField
-
sdkFields
-
sdkFieldNameToField
- Specified by:
sdkFieldNameToFieldin interfaceSdkPojo
-