@Generated(value="software.amazon.awssdk:codegen") public class GetDimensionValuesResponse extends CostExplorerResponse implements ToCopyableBuilder<GetDimensionValuesResponse.Builder,GetDimensionValuesResponse>
Modifier and Type | Class and Description |
---|---|
static interface |
GetDimensionValuesResponse.Builder |
Modifier and Type | Method and Description |
---|---|
static GetDimensionValuesResponse.Builder |
builder() |
List<DimensionValuesWithAttributes> |
dimensionValues()
The filters that you used to filter your request.
|
boolean |
equals(Object obj) |
<T> Optional<T> |
getValueForField(String fieldName,
Class<T> clazz)
Used to retrieve the value of a field from any class that extends
SdkResponse . |
int |
hashCode() |
String |
nextPageToken()
The token for the next set of retrievable results.
|
Integer |
returnSize()
The number of results that AWS returned at one time.
|
static Class<? extends GetDimensionValuesResponse.Builder> |
serializableBuilderClass() |
GetDimensionValuesResponse.Builder |
toBuilder()
Take this object and create a builder that contains all of the current property values of this object.
|
String |
toString() |
Integer |
totalSize()
The total number of search results.
|
copy
public List<DimensionValuesWithAttributes> dimensionValues()
The filters that you used to filter your request. Some dimensions are available only for a specific context:
If you set the context to CostAndUsage
, you can use the following dimensions for searching:
AZ - The Availability Zone. An example is us-east-1a.
InstanceType - The type of EC2 instance. An example is m4.xlarge.
LinkedAccount - The description in the attribute map that includes the full name of the member account. The value field contains the AWS ID of the member account
Operation - The action performed. Examples include RunInstance and CreateBucket.
PurchaseType - The reservation type of the purchase to which this usage is related. Examples include: On Demand Instances and Standard Reserved Instances
Service - The AWS service such as DynamoDB.
UsageType -The type of usage. An example is DataTransfer-In-Bytes. The response for the GetDimensionValues action includes a unit attribute, examples of which include GB and Hrs.
UsageTypeGroup - The grouping of common usage types. An example is EC2: CloudWatch – Alarms. The response for this action includes a unit attribute.
RecordType - The different types of charges such as RI fees, usage costs, tax refunds, and credits
If you set the context to ReservedInstance
, you can use the following dimensions for searching:
AZ - The Availability Zone. An example is us-east-1a.
InstanceType - The type of EC2 instance. An example is m4.xlarge.
LinkedAccount - The description in the attribute map that includes the full name of the member account. The value field contains the AWS ID of the member account
Platform - The operating system. Examples are Windows or Linux.
Region - The AWS region.
Scope - The scope of a reserved instance (RI). Values are regional or a single availability zone.
Tenancy - The tenancy of a resource. Examples are shared or dedicated.
Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
If you set the context to CostAndUsage
, you can use the following dimensions for searching:
AZ - The Availability Zone. An example is us-east-1a.
InstanceType - The type of EC2 instance. An example is m4.xlarge.
LinkedAccount - The description in the attribute map that includes the full name of the member account. The value field contains the AWS ID of the member account
Operation - The action performed. Examples include RunInstance and CreateBucket.
PurchaseType - The reservation type of the purchase to which this usage is related. Examples include: On Demand Instances and Standard Reserved Instances
Service - The AWS service such as DynamoDB.
UsageType -The type of usage. An example is DataTransfer-In-Bytes. The response for the GetDimensionValues action includes a unit attribute, examples of which include GB and Hrs.
UsageTypeGroup - The grouping of common usage types. An example is EC2: CloudWatch – Alarms. The response for this action includes a unit attribute.
RecordType - The different types of charges such as RI fees, usage costs, tax refunds, and credits
If you set the context to ReservedInstance
, you can use the following dimensions for
searching:
AZ - The Availability Zone. An example is us-east-1a.
InstanceType - The type of EC2 instance. An example is m4.xlarge.
LinkedAccount - The description in the attribute map that includes the full name of the member account. The value field contains the AWS ID of the member account
Platform - The operating system. Examples are Windows or Linux.
Region - The AWS region.
Scope - The scope of a reserved instance (RI). Values are regional or a single availability zone.
Tenancy - The tenancy of a resource. Examples are shared or dedicated.
public Integer returnSize()
The number of results that AWS returned at one time.
public Integer totalSize()
The total number of search results.
public String nextPageToken()
The token for the next set of retrievable results. AWS provides the token when the response from a previous call has more results than the maximum page size.
public GetDimensionValuesResponse.Builder toBuilder()
ToCopyableBuilder
toBuilder
in interface ToCopyableBuilder<GetDimensionValuesResponse.Builder,GetDimensionValuesResponse>
toBuilder
in class AwsResponse
public static GetDimensionValuesResponse.Builder builder()
public static Class<? extends GetDimensionValuesResponse.Builder> serializableBuilderClass()
public <T> Optional<T> getValueForField(String fieldName, Class<T> clazz)
SdkResponse
SdkResponse
. The field name
specified should match the member name from the corresponding service-2.json model specified in the
codegen-resources folder for a given service. The class specifies what class to cast the returned value to.
If the returned value is also a modeled class, the SdkResponse.getValueForField(String, Class)
method will
again be available.getValueForField
in class SdkResponse
fieldName
- The name of the member to be retrieved.clazz
- The class to cast the returned object to.Copyright © 2017 Amazon Web Services, Inc. All Rights Reserved.