Class CreateWorkloadEstimateResponse
- java.lang.Object
-
- software.amazon.awssdk.core.SdkResponse
-
- software.amazon.awssdk.awscore.AwsResponse
-
- software.amazon.awssdk.services.bcmpricingcalculator.model.BcmPricingCalculatorResponse
-
- software.amazon.awssdk.services.bcmpricingcalculator.model.CreateWorkloadEstimateResponse
-
- All Implemented Interfaces:
SdkPojo,ToCopyableBuilder<CreateWorkloadEstimateResponse.Builder,CreateWorkloadEstimateResponse>
@Generated("software.amazon.awssdk:codegen") public final class CreateWorkloadEstimateResponse extends BcmPricingCalculatorResponse implements ToCopyableBuilder<CreateWorkloadEstimateResponse.Builder,CreateWorkloadEstimateResponse>
Mixin for common fields returned by CRUD APIs
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceCreateWorkloadEstimateResponse.Builder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static CreateWorkloadEstimateResponse.Builderbuilder()CurrencyCodecostCurrency()The currency of the estimated cost.StringcostCurrencyAsString()The currency of the estimated cost.InstantcreatedAt()The timestamp when the workload estimate was created.booleanequals(Object obj)booleanequalsBySdkFields(Object obj)InstantexpiresAt()The timestamp when the workload estimate will expire.StringfailureMessage()An error message if the workload estimate creation failed.<T> Optional<T>getValueForField(String fieldName, Class<T> clazz)inthashCode()Stringid()The unique identifier for the created workload estimate.Stringname()The name of the created workload estimate.InstantrateTimestamp()The timestamp of the pricing rates used for the estimate.WorkloadEstimateRateTyperateType()The type of pricing rates used for the estimate.StringrateTypeAsString()The type of pricing rates used for the estimate.Map<String,SdkField<?>>sdkFieldNameToField()List<SdkField<?>>sdkFields()static Class<? extends CreateWorkloadEstimateResponse.Builder>serializableBuilderClass()WorkloadEstimateStatusstatus()The current status of the workload estimate.StringstatusAsString()The current status of the workload estimate.CreateWorkloadEstimateResponse.BuildertoBuilder()StringtoString()Returns a string representation of this object.DoubletotalCost()The total estimated cost for the workload.-
Methods inherited from class software.amazon.awssdk.services.bcmpricingcalculator.model.BcmPricingCalculatorResponse
responseMetadata
-
Methods inherited from class software.amazon.awssdk.core.SdkResponse
sdkHttpResponse
-
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
-
id
public final String id()
The unique identifier for the created workload estimate.
- Returns:
- The unique identifier for the created workload estimate.
-
name
public final String name()
The name of the created workload estimate.
- Returns:
- The name of the created workload estimate.
-
createdAt
public final Instant createdAt()
The timestamp when the workload estimate was created.
- Returns:
- The timestamp when the workload estimate was created.
-
expiresAt
public final Instant expiresAt()
The timestamp when the workload estimate will expire.
- Returns:
- The timestamp when the workload estimate will expire.
-
rateType
public final WorkloadEstimateRateType rateType()
The type of pricing rates used for the estimate.
If the service returns an enum value that is not available in the current SDK version,
rateTypewill returnWorkloadEstimateRateType.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromrateTypeAsString().- Returns:
- The type of pricing rates used for the estimate.
- See Also:
WorkloadEstimateRateType
-
rateTypeAsString
public final String rateTypeAsString()
The type of pricing rates used for the estimate.
If the service returns an enum value that is not available in the current SDK version,
rateTypewill returnWorkloadEstimateRateType.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromrateTypeAsString().- Returns:
- The type of pricing rates used for the estimate.
- See Also:
WorkloadEstimateRateType
-
rateTimestamp
public final Instant rateTimestamp()
The timestamp of the pricing rates used for the estimate.
- Returns:
- The timestamp of the pricing rates used for the estimate.
-
status
public final WorkloadEstimateStatus status()
The current status of the workload estimate.
If the service returns an enum value that is not available in the current SDK version,
statuswill returnWorkloadEstimateStatus.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromstatusAsString().- Returns:
- The current status of the workload estimate.
- See Also:
WorkloadEstimateStatus
-
statusAsString
public final String statusAsString()
The current status of the workload estimate.
If the service returns an enum value that is not available in the current SDK version,
statuswill returnWorkloadEstimateStatus.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromstatusAsString().- Returns:
- The current status of the workload estimate.
- See Also:
WorkloadEstimateStatus
-
totalCost
public final Double totalCost()
The total estimated cost for the workload.
- Returns:
- The total estimated cost for the workload.
-
costCurrency
public final CurrencyCode costCurrency()
The currency of the estimated cost.
If the service returns an enum value that is not available in the current SDK version,
costCurrencywill returnCurrencyCode.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromcostCurrencyAsString().- Returns:
- The currency of the estimated cost.
- See Also:
CurrencyCode
-
costCurrencyAsString
public final String costCurrencyAsString()
The currency of the estimated cost.
If the service returns an enum value that is not available in the current SDK version,
costCurrencywill returnCurrencyCode.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromcostCurrencyAsString().- Returns:
- The currency of the estimated cost.
- See Also:
CurrencyCode
-
failureMessage
public final String failureMessage()
An error message if the workload estimate creation failed.
- Returns:
- An error message if the workload estimate creation failed.
-
toBuilder
public CreateWorkloadEstimateResponse.Builder toBuilder()
- Specified by:
toBuilderin interfaceToCopyableBuilder<CreateWorkloadEstimateResponse.Builder,CreateWorkloadEstimateResponse>- Specified by:
toBuilderin classAwsResponse
-
builder
public static CreateWorkloadEstimateResponse.Builder builder()
-
serializableBuilderClass
public static Class<? extends CreateWorkloadEstimateResponse.Builder> serializableBuilderClass()
-
hashCode
public final int hashCode()
- Overrides:
hashCodein classAwsResponse
-
equals
public final boolean equals(Object obj)
- Overrides:
equalsin classAwsResponse
-
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.
-
getValueForField
public final <T> Optional<T> getValueForField(String fieldName, Class<T> clazz)
- Overrides:
getValueForFieldin classSdkResponse
-
sdkFieldNameToField
public final Map<String,SdkField<?>> sdkFieldNameToField()
- Specified by:
sdkFieldNameToFieldin interfaceSdkPojo
-
-