Class CreateBillScenarioResponse
- 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.CreateBillScenarioResponse
-
- All Implemented Interfaces:
SdkPojo,ToCopyableBuilder<CreateBillScenarioResponse.Builder,CreateBillScenarioResponse>
@Generated("software.amazon.awssdk:codegen") public final class CreateBillScenarioResponse extends BcmPricingCalculatorResponse implements ToCopyableBuilder<CreateBillScenarioResponse.Builder,CreateBillScenarioResponse>
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceCreateBillScenarioResponse.Builder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description BillIntervalbillInterval()The time period covered by the bill scenario.static CreateBillScenarioResponse.Builderbuilder()InstantcreatedAt()The timestamp when the bill scenario was created.booleanequals(Object obj)booleanequalsBySdkFields(Object obj)InstantexpiresAt()The timestamp when the bill scenario will expire.StringfailureMessage()An error message if the bill scenario creation failed.<T> Optional<T>getValueForField(String fieldName, Class<T> clazz)inthashCode()Stringid()The unique identifier for the created bill scenario.Stringname()The name of the created bill scenario.Map<String,SdkField<?>>sdkFieldNameToField()List<SdkField<?>>sdkFields()static Class<? extends CreateBillScenarioResponse.Builder>serializableBuilderClass()BillScenarioStatusstatus()The current status of the bill scenario.StringstatusAsString()The current status of the bill scenario.CreateBillScenarioResponse.BuildertoBuilder()StringtoString()Returns a string representation of this object.-
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 bill scenario.
- Returns:
- The unique identifier for the created bill scenario.
-
name
public final String name()
The name of the created bill scenario.
- Returns:
- The name of the created bill scenario.
-
billInterval
public final BillInterval billInterval()
The time period covered by the bill scenario.
- Returns:
- The time period covered by the bill scenario.
-
status
public final BillScenarioStatus status()
The current status of the bill scenario.
If the service returns an enum value that is not available in the current SDK version,
statuswill returnBillScenarioStatus.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromstatusAsString().- Returns:
- The current status of the bill scenario.
- See Also:
BillScenarioStatus
-
statusAsString
public final String statusAsString()
The current status of the bill scenario.
If the service returns an enum value that is not available in the current SDK version,
statuswill returnBillScenarioStatus.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromstatusAsString().- Returns:
- The current status of the bill scenario.
- See Also:
BillScenarioStatus
-
createdAt
public final Instant createdAt()
The timestamp when the bill scenario was created.
- Returns:
- The timestamp when the bill scenario was created.
-
expiresAt
public final Instant expiresAt()
The timestamp when the bill scenario will expire.
- Returns:
- The timestamp when the bill scenario will expire.
-
failureMessage
public final String failureMessage()
An error message if the bill scenario creation failed.
- Returns:
- An error message if the bill scenario creation failed.
-
toBuilder
public CreateBillScenarioResponse.Builder toBuilder()
- Specified by:
toBuilderin interfaceToCopyableBuilder<CreateBillScenarioResponse.Builder,CreateBillScenarioResponse>- Specified by:
toBuilderin classAwsResponse
-
builder
public static CreateBillScenarioResponse.Builder builder()
-
serializableBuilderClass
public static Class<? extends CreateBillScenarioResponse.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
-
-