Class QuoteOption
- All Implemented Interfaces:
Serializable,SdkPojo,ToCopyableBuilder<QuoteOption.Builder,QuoteOption>
A configuration and pricing option for a quote. Each option includes the capacity breakdown, physical specifications for the racks or servers, and pricing details.
- See Also:
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionstatic QuoteOption.Builderbuilder()final List<QuoteCapacity>The capacities included in this quote option.final CapacitySummaryA summary of the existing, final, and changed capacity for this quote option.final booleanfinal booleanequalsBySdkFields(Object obj) final <T> Optional<T>getValueForField(String fieldName, Class<T> clazz) final booleanFor responses, this returns true if the service returned a value for the Capacities property.final inthashCode()final booleanFor responses, this returns true if the service returned a value for the PricingOptions property.final booleanFor responses, this returns true if the service returned a value for the Specifications property.final List<PricingOption>The pricing options for this quote option.final StringThe ID of the quote option.static Class<? extends QuoteOption.Builder>final List<QuoteSpecification>The physical specifications for the racks or servers in this quote option.final StringtoString()Returns a string representation of this object.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
-
quoteOptionIdentifier
The ID of the quote option.
- Returns:
- The ID of the quote option.
-
hasCapacities
public final boolean hasCapacities()For responses, this returns true if the service returned a value for the Capacities 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. -
capacities
The capacities included in this quote option.
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
hasCapacities()method.- Returns:
- The capacities included in this quote option.
-
capacitySummary
A summary of the existing, final, and changed capacity for this quote option.
- Returns:
- A summary of the existing, final, and changed capacity for this quote option.
-
hasSpecifications
public final boolean hasSpecifications()For responses, this returns true if the service returned a value for the Specifications 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. -
specifications
The physical specifications for the racks or servers in this quote option.
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
hasSpecifications()method.- Returns:
- The physical specifications for the racks or servers in this quote option.
-
hasPricingOptions
public final boolean hasPricingOptions()For responses, this returns true if the service returned a value for the PricingOptions 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. -
pricingOptions
The pricing options for this quote option.
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
hasPricingOptions()method.- Returns:
- The pricing options for this quote option.
-
toBuilder
- Specified by:
toBuilderin interfaceToCopyableBuilder<QuoteOption.Builder,QuoteOption>
-
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
-