@Generated(value="software.amazon.awssdk:codegen") public final class CostCategory extends Object implements SdkPojo, Serializable, ToCopyableBuilder<CostCategory.Builder,CostCategory>
The structure of Cost Categories. This includes detailed metadata and the set of rules for the
CostCategory object.
| Modifier and Type | Class and Description |
|---|---|
static interface |
CostCategory.Builder |
| Modifier and Type | Method and Description |
|---|---|
static CostCategory.Builder |
builder() |
String |
costCategoryArn()
The unique identifier for your Cost Category.
|
String |
defaultValue()
Returns the value of the DefaultValue property for this object.
|
String |
effectiveEnd()
The effective end date of your Cost Category.
|
String |
effectiveStart()
The effective start date of your Cost Category.
|
boolean |
equals(Object obj) |
boolean |
equalsBySdkFields(Object obj) |
<T> Optional<T> |
getValueForField(String fieldName,
Class<T> clazz) |
int |
hashCode() |
boolean |
hasProcessingStatus()
For responses, this returns true if the service returned a value for the ProcessingStatus property.
|
boolean |
hasRules()
For responses, this returns true if the service returned a value for the Rules property.
|
boolean |
hasSplitChargeRules()
For responses, this returns true if the service returned a value for the SplitChargeRules property.
|
String |
name()
Returns the value of the Name property for this object.
|
List<CostCategoryProcessingStatus> |
processingStatus()
The list of processing statuses for Cost Management products for a specific cost category.
|
List<CostCategoryRule> |
rules()
The rules are processed in order.
|
CostCategoryRuleVersion |
ruleVersion()
Returns the value of the RuleVersion property for this object.
|
String |
ruleVersionAsString()
Returns the value of the RuleVersion property for this object.
|
List<SdkField<?>> |
sdkFields() |
static Class<? extends CostCategory.Builder> |
serializableBuilderClass() |
List<CostCategorySplitChargeRule> |
splitChargeRules()
The split charge rules that are used to allocate your charges between your Cost Category values.
|
CostCategory.Builder |
toBuilder() |
String |
toString()
Returns a string representation of this object.
|
clone, finalize, getClass, notify, notifyAll, wait, wait, waitcopypublic final String costCategoryArn()
The unique identifier for your Cost Category.
public final String effectiveStart()
The effective start date of your Cost Category.
public final String effectiveEnd()
The effective end date of your Cost Category.
public final String name()
public final CostCategoryRuleVersion ruleVersion()
If the service returns an enum value that is not available in the current SDK version, ruleVersion will
return CostCategoryRuleVersion.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available
from ruleVersionAsString().
CostCategoryRuleVersionpublic final String ruleVersionAsString()
If the service returns an enum value that is not available in the current SDK version, ruleVersion will
return CostCategoryRuleVersion.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available
from ruleVersionAsString().
CostCategoryRuleVersionpublic final boolean hasRules()
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<CostCategoryRule> rules()
The rules are processed in order. If there are multiple rules that match the line item, then the first rule to match is used to determine that Cost Category value.
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 hasRules() method.
public final boolean hasSplitChargeRules()
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<CostCategorySplitChargeRule> splitChargeRules()
The split charge rules that are used to allocate your charges between your Cost Category values.
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 hasSplitChargeRules() method.
public final boolean hasProcessingStatus()
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<CostCategoryProcessingStatus> processingStatus()
The list of processing statuses for Cost Management products for a specific cost category.
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 hasProcessingStatus() method.
public final String defaultValue()
public CostCategory.Builder toBuilder()
toBuilder in interface ToCopyableBuilder<CostCategory.Builder,CostCategory>public static CostCategory.Builder builder()
public static Class<? extends CostCategory.Builder> serializableBuilderClass()
public final boolean equalsBySdkFields(Object obj)
equalsBySdkFields in interface SdkPojopublic final String toString()
Copyright © 2023. All rights reserved.