AWS SDK for C++  1.8.100
AWS SDK for C++
Public Member Functions | List of all members
Aws::CostExplorer::Model::GetCostAndUsageWithResourcesRequest Class Reference

#include <GetCostAndUsageWithResourcesRequest.h>

+ Inheritance diagram for Aws::CostExplorer::Model::GetCostAndUsageWithResourcesRequest:

Public Member Functions

 GetCostAndUsageWithResourcesRequest ()
 
virtual const char * GetServiceRequestName () const override
 
Aws::String SerializePayload () const override
 
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders () const override
 
const DateIntervalGetTimePeriod () const
 
bool TimePeriodHasBeenSet () const
 
void SetTimePeriod (const DateInterval &value)
 
void SetTimePeriod (DateInterval &&value)
 
GetCostAndUsageWithResourcesRequestWithTimePeriod (const DateInterval &value)
 
GetCostAndUsageWithResourcesRequestWithTimePeriod (DateInterval &&value)
 
const GranularityGetGranularity () const
 
bool GranularityHasBeenSet () const
 
void SetGranularity (const Granularity &value)
 
void SetGranularity (Granularity &&value)
 
GetCostAndUsageWithResourcesRequestWithGranularity (const Granularity &value)
 
GetCostAndUsageWithResourcesRequestWithGranularity (Granularity &&value)
 
const ExpressionGetFilter () const
 
bool FilterHasBeenSet () const
 
void SetFilter (const Expression &value)
 
void SetFilter (Expression &&value)
 
GetCostAndUsageWithResourcesRequestWithFilter (const Expression &value)
 
GetCostAndUsageWithResourcesRequestWithFilter (Expression &&value)
 
const Aws::Vector< Aws::String > & GetMetrics () const
 
bool MetricsHasBeenSet () const
 
void SetMetrics (const Aws::Vector< Aws::String > &value)
 
void SetMetrics (Aws::Vector< Aws::String > &&value)
 
GetCostAndUsageWithResourcesRequestWithMetrics (const Aws::Vector< Aws::String > &value)
 
GetCostAndUsageWithResourcesRequestWithMetrics (Aws::Vector< Aws::String > &&value)
 
GetCostAndUsageWithResourcesRequestAddMetrics (const Aws::String &value)
 
GetCostAndUsageWithResourcesRequestAddMetrics (Aws::String &&value)
 
GetCostAndUsageWithResourcesRequestAddMetrics (const char *value)
 
const Aws::Vector< GroupDefinition > & GetGroupBy () const
 
bool GroupByHasBeenSet () const
 
void SetGroupBy (const Aws::Vector< GroupDefinition > &value)
 
void SetGroupBy (Aws::Vector< GroupDefinition > &&value)
 
GetCostAndUsageWithResourcesRequestWithGroupBy (const Aws::Vector< GroupDefinition > &value)
 
GetCostAndUsageWithResourcesRequestWithGroupBy (Aws::Vector< GroupDefinition > &&value)
 
GetCostAndUsageWithResourcesRequestAddGroupBy (const GroupDefinition &value)
 
GetCostAndUsageWithResourcesRequestAddGroupBy (GroupDefinition &&value)
 
const Aws::StringGetNextPageToken () const
 
bool NextPageTokenHasBeenSet () const
 
void SetNextPageToken (const Aws::String &value)
 
void SetNextPageToken (Aws::String &&value)
 
void SetNextPageToken (const char *value)
 
GetCostAndUsageWithResourcesRequestWithNextPageToken (const Aws::String &value)
 
GetCostAndUsageWithResourcesRequestWithNextPageToken (Aws::String &&value)
 
GetCostAndUsageWithResourcesRequestWithNextPageToken (const char *value)
 
- Public Member Functions inherited from Aws::CostExplorer::CostExplorerRequest
virtual ~CostExplorerRequest ()
 
void AddParametersToRequest (Aws::Http::HttpRequest &httpRequest) const
 
Aws::Http::HeaderValueCollection GetHeaders () const override
 
- Public Member Functions inherited from Aws::AmazonSerializableWebServiceRequest
 AmazonSerializableWebServiceRequest ()
 
virtual ~AmazonSerializableWebServiceRequest ()
 
std::shared_ptr< Aws::IOStreamGetBody () const override
 
- Public Member Functions inherited from Aws::AmazonWebServiceRequest
 AmazonWebServiceRequest ()
 
virtual ~AmazonWebServiceRequest ()=default
 
virtual void AddQueryStringParameters (Aws::Http::URI &uri) const
 
virtual void PutToPresignedUrl (Aws::Http::URI &uri) const
 
virtual bool IsStreaming () const
 
virtual bool IsEventStreamRequest () const
 
virtual bool SignBody () const
 
virtual bool IsChunked () const
 
virtual void SetRequestSignedHandler (const RequestSignedHandler &handler)
 
virtual const RequestSignedHandlerGetRequestSignedHandler () const
 
const Aws::IOStreamFactoryGetResponseStreamFactory () const
 
void SetResponseStreamFactory (const Aws::IOStreamFactory &factory)
 
virtual void SetDataReceivedEventHandler (const Aws::Http::DataReceivedEventHandler &dataReceivedEventHandler)
 
virtual void SetDataSentEventHandler (const Aws::Http::DataSentEventHandler &dataSentEventHandler)
 
virtual void SetContinueRequestHandler (const Aws::Http::ContinueRequestHandler &continueRequestHandler)
 
virtual void SetDataReceivedEventHandler (Aws::Http::DataReceivedEventHandler &&dataReceivedEventHandler)
 
virtual void SetDataSentEventHandler (Aws::Http::DataSentEventHandler &&dataSentEventHandler)
 
virtual void SetContinueRequestHandler (Aws::Http::ContinueRequestHandler &&continueRequestHandler)
 
virtual void SetRequestRetryHandler (const RequestRetryHandler &handler)
 
virtual void SetRequestRetryHandler (RequestRetryHandler &&handler)
 
virtual const Aws::Http::DataReceivedEventHandlerGetDataReceivedEventHandler () const
 
virtual const Aws::Http::DataSentEventHandlerGetDataSentEventHandler () const
 
virtual const Aws::Http::ContinueRequestHandlerGetContinueRequestHandler () const
 
virtual const RequestRetryHandlerGetRequestRetryHandler () const
 
virtual bool ShouldComputeContentMd5 () const
 

Additional Inherited Members

- Protected Member Functions inherited from Aws::AmazonWebServiceRequest
virtual void DumpBodyToUrl (Aws::Http::URI &uri) const
 

Detailed Description

Definition at line 26 of file GetCostAndUsageWithResourcesRequest.h.

Constructor & Destructor Documentation

◆ GetCostAndUsageWithResourcesRequest()

Aws::CostExplorer::Model::GetCostAndUsageWithResourcesRequest::GetCostAndUsageWithResourcesRequest ( )

Member Function Documentation

◆ AddGroupBy() [1/2]

GetCostAndUsageWithResourcesRequest& Aws::CostExplorer::Model::GetCostAndUsageWithResourcesRequest::AddGroupBy ( const GroupDefinition value)
inline

You can group Amazon Web Services costs using up to two different groups: DIMENSION, TAG, COST_CATEGORY.

Definition at line 470 of file GetCostAndUsageWithResourcesRequest.h.

◆ AddGroupBy() [2/2]

GetCostAndUsageWithResourcesRequest& Aws::CostExplorer::Model::GetCostAndUsageWithResourcesRequest::AddGroupBy ( GroupDefinition &&  value)
inline

You can group Amazon Web Services costs using up to two different groups: DIMENSION, TAG, COST_CATEGORY.

Definition at line 476 of file GetCostAndUsageWithResourcesRequest.h.

◆ AddMetrics() [1/3]

GetCostAndUsageWithResourcesRequest& Aws::CostExplorer::Model::GetCostAndUsageWithResourcesRequest::AddMetrics ( const Aws::String value)
inline

Which metrics are returned in the query. For more information about blended and unblended rates, see Why does the "blended" annotation appear on some line items in my bill?.

Valid values are AmortizedCost, BlendedCost, NetAmortizedCost, NetUnblendedCost, NormalizedUsageAmount, UnblendedCost, and UsageQuantity.

If you return the UsageQuantity metric, the service aggregates all usage numbers without taking the units into account. For example, if you aggregate usageQuantity across all of Amazon EC2, the results aren't meaningful because Amazon EC2 compute hours and data transfer are measured in different units (for example, hours vs. GB). To get more meaningful UsageQuantity metrics, filter by UsageType or UsageTypeGroups.

Metrics is required for GetCostAndUsageWithResources requests.

Definition at line 387 of file GetCostAndUsageWithResourcesRequest.h.

◆ AddMetrics() [2/3]

GetCostAndUsageWithResourcesRequest& Aws::CostExplorer::Model::GetCostAndUsageWithResourcesRequest::AddMetrics ( Aws::String &&  value)
inline

Which metrics are returned in the query. For more information about blended and unblended rates, see Why does the "blended" annotation appear on some line items in my bill?.

Valid values are AmortizedCost, BlendedCost, NetAmortizedCost, NetUnblendedCost, NormalizedUsageAmount, UnblendedCost, and UsageQuantity.

If you return the UsageQuantity metric, the service aggregates all usage numbers without taking the units into account. For example, if you aggregate usageQuantity across all of Amazon EC2, the results aren't meaningful because Amazon EC2 compute hours and data transfer are measured in different units (for example, hours vs. GB). To get more meaningful UsageQuantity metrics, filter by UsageType or UsageTypeGroups.

Metrics is required for GetCostAndUsageWithResources requests.

Definition at line 407 of file GetCostAndUsageWithResourcesRequest.h.

◆ AddMetrics() [3/3]

GetCostAndUsageWithResourcesRequest& Aws::CostExplorer::Model::GetCostAndUsageWithResourcesRequest::AddMetrics ( const char *  value)
inline

Which metrics are returned in the query. For more information about blended and unblended rates, see Why does the "blended" annotation appear on some line items in my bill?.

Valid values are AmortizedCost, BlendedCost, NetAmortizedCost, NetUnblendedCost, NormalizedUsageAmount, UnblendedCost, and UsageQuantity.

If you return the UsageQuantity metric, the service aggregates all usage numbers without taking the units into account. For example, if you aggregate usageQuantity across all of Amazon EC2, the results aren't meaningful because Amazon EC2 compute hours and data transfer are measured in different units (for example, hours vs. GB). To get more meaningful UsageQuantity metrics, filter by UsageType or UsageTypeGroups.

Metrics is required for GetCostAndUsageWithResources requests.

Definition at line 427 of file GetCostAndUsageWithResourcesRequest.h.

◆ FilterHasBeenSet()

bool Aws::CostExplorer::Model::GetCostAndUsageWithResourcesRequest::FilterHasBeenSet ( ) const
inline

Filters Amazon Web Services costs by different dimensions. For example, you can specify SERVICE and LINKED_ACCOUNT and get the costs that are associated with that account's usage of that service. You can nest Expression objects to define any combination of dimension filters. For more information, see Expression.

The GetCostAndUsageWithResources operation requires that you either group by or filter by a ResourceId. It requires the Expression "SERVICE = Amazon Elastic Compute Cloud - Compute" in the filter.

Definition at line 186 of file GetCostAndUsageWithResourcesRequest.h.

◆ GetFilter()

const Expression& Aws::CostExplorer::Model::GetCostAndUsageWithResourcesRequest::GetFilter ( ) const
inline

Filters Amazon Web Services costs by different dimensions. For example, you can specify SERVICE and LINKED_ACCOUNT and get the costs that are associated with that account's usage of that service. You can nest Expression objects to define any combination of dimension filters. For more information, see Expression.

The GetCostAndUsageWithResources operation requires that you either group by or filter by a ResourceId. It requires the Expression "SERVICE = Amazon Elastic Compute Cloud - Compute" in the filter.

Definition at line 171 of file GetCostAndUsageWithResourcesRequest.h.

◆ GetGranularity()

const Granularity& Aws::CostExplorer::Model::GetCostAndUsageWithResourcesRequest::GetGranularity ( ) const
inline

Sets the AWS cost granularity to MONTHLY, DAILY, or HOURLY. If Granularity isn't set, the response object doesn't include the Granularity, MONTHLY, DAILY, or HOURLY.

Definition at line 115 of file GetCostAndUsageWithResourcesRequest.h.

◆ GetGroupBy()

const Aws::Vector<GroupDefinition>& Aws::CostExplorer::Model::GetCostAndUsageWithResourcesRequest::GetGroupBy ( ) const
inline

You can group Amazon Web Services costs using up to two different groups: DIMENSION, TAG, COST_CATEGORY.

Definition at line 434 of file GetCostAndUsageWithResourcesRequest.h.

◆ GetMetrics()

const Aws::Vector<Aws::String>& Aws::CostExplorer::Model::GetCostAndUsageWithResourcesRequest::GetMetrics ( ) const
inline

Which metrics are returned in the query. For more information about blended and unblended rates, see Why does the "blended" annotation appear on some line items in my bill?.

Valid values are AmortizedCost, BlendedCost, NetAmortizedCost, NetUnblendedCost, NormalizedUsageAmount, UnblendedCost, and UsageQuantity.

If you return the UsageQuantity metric, the service aggregates all usage numbers without taking the units into account. For example, if you aggregate usageQuantity across all of Amazon EC2, the results aren't meaningful because Amazon EC2 compute hours and data transfer are measured in different units (for example, hours vs. GB). To get more meaningful UsageQuantity metrics, filter by UsageType or UsageTypeGroups.

Metrics is required for GetCostAndUsageWithResources requests.

Definition at line 267 of file GetCostAndUsageWithResourcesRequest.h.

◆ GetNextPageToken()

const Aws::String& Aws::CostExplorer::Model::GetCostAndUsageWithResourcesRequest::GetNextPageToken ( ) const
inline

The token to retrieve the next set of results. AWS provides the token when the response from a previous call has more results than the maximum page size.

Definition at line 484 of file GetCostAndUsageWithResourcesRequest.h.

◆ GetRequestSpecificHeaders()

Aws::Http::HeaderValueCollection Aws::CostExplorer::Model::GetCostAndUsageWithResourcesRequest::GetRequestSpecificHeaders ( ) const
overridevirtual

◆ GetServiceRequestName()

virtual const char* Aws::CostExplorer::Model::GetCostAndUsageWithResourcesRequest::GetServiceRequestName ( ) const
inlineoverridevirtual

◆ GetTimePeriod()

const DateInterval& Aws::CostExplorer::Model::GetCostAndUsageWithResourcesRequest::GetTimePeriod ( ) const
inline

Sets the start and end dates for retrieving Amazon Web Services costs. The range must be within the last 14 days (the start date cannot be earlier than 14 days ago). The start date is inclusive, but the end date is exclusive. For example, if start is 2017-01-01 and end is 2017-05-01, then the cost and usage data is retrieved from 2017-01-01 up to and including 2017-04-30 but not including 2017-05-01.

Definition at line 51 of file GetCostAndUsageWithResourcesRequest.h.

◆ GranularityHasBeenSet()

bool Aws::CostExplorer::Model::GetCostAndUsageWithResourcesRequest::GranularityHasBeenSet ( ) const
inline

Sets the AWS cost granularity to MONTHLY, DAILY, or HOURLY. If Granularity isn't set, the response object doesn't include the Granularity, MONTHLY, DAILY, or HOURLY.

Definition at line 123 of file GetCostAndUsageWithResourcesRequest.h.

◆ GroupByHasBeenSet()

bool Aws::CostExplorer::Model::GetCostAndUsageWithResourcesRequest::GroupByHasBeenSet ( ) const
inline

You can group Amazon Web Services costs using up to two different groups: DIMENSION, TAG, COST_CATEGORY.

Definition at line 440 of file GetCostAndUsageWithResourcesRequest.h.

◆ MetricsHasBeenSet()

bool Aws::CostExplorer::Model::GetCostAndUsageWithResourcesRequest::MetricsHasBeenSet ( ) const
inline

Which metrics are returned in the query. For more information about blended and unblended rates, see Why does the "blended" annotation appear on some line items in my bill?.

Valid values are AmortizedCost, BlendedCost, NetAmortizedCost, NetUnblendedCost, NormalizedUsageAmount, UnblendedCost, and UsageQuantity.

If you return the UsageQuantity metric, the service aggregates all usage numbers without taking the units into account. For example, if you aggregate usageQuantity across all of Amazon EC2, the results aren't meaningful because Amazon EC2 compute hours and data transfer are measured in different units (for example, hours vs. GB). To get more meaningful UsageQuantity metrics, filter by UsageType or UsageTypeGroups.

Metrics is required for GetCostAndUsageWithResources requests.

Definition at line 287 of file GetCostAndUsageWithResourcesRequest.h.

◆ NextPageTokenHasBeenSet()

bool Aws::CostExplorer::Model::GetCostAndUsageWithResourcesRequest::NextPageTokenHasBeenSet ( ) const
inline

The token to retrieve the next set of results. AWS provides the token when the response from a previous call has more results than the maximum page size.

Definition at line 491 of file GetCostAndUsageWithResourcesRequest.h.

◆ SerializePayload()

Aws::String Aws::CostExplorer::Model::GetCostAndUsageWithResourcesRequest::SerializePayload ( ) const
overridevirtual

Convert payload into String.

Implements Aws::AmazonSerializableWebServiceRequest.

◆ SetFilter() [1/2]

void Aws::CostExplorer::Model::GetCostAndUsageWithResourcesRequest::SetFilter ( const Expression value)
inline

Filters Amazon Web Services costs by different dimensions. For example, you can specify SERVICE and LINKED_ACCOUNT and get the costs that are associated with that account's usage of that service. You can nest Expression objects to define any combination of dimension filters. For more information, see Expression.

The GetCostAndUsageWithResources operation requires that you either group by or filter by a ResourceId. It requires the Expression "SERVICE = Amazon Elastic Compute Cloud - Compute" in the filter.

Definition at line 201 of file GetCostAndUsageWithResourcesRequest.h.

◆ SetFilter() [2/2]

void Aws::CostExplorer::Model::GetCostAndUsageWithResourcesRequest::SetFilter ( Expression &&  value)
inline

Filters Amazon Web Services costs by different dimensions. For example, you can specify SERVICE and LINKED_ACCOUNT and get the costs that are associated with that account's usage of that service. You can nest Expression objects to define any combination of dimension filters. For more information, see Expression.

The GetCostAndUsageWithResources operation requires that you either group by or filter by a ResourceId. It requires the Expression "SERVICE = Amazon Elastic Compute Cloud - Compute" in the filter.

Definition at line 216 of file GetCostAndUsageWithResourcesRequest.h.

◆ SetGranularity() [1/2]

void Aws::CostExplorer::Model::GetCostAndUsageWithResourcesRequest::SetGranularity ( const Granularity value)
inline

Sets the AWS cost granularity to MONTHLY, DAILY, or HOURLY. If Granularity isn't set, the response object doesn't include the Granularity, MONTHLY, DAILY, or HOURLY.

Definition at line 131 of file GetCostAndUsageWithResourcesRequest.h.

◆ SetGranularity() [2/2]

void Aws::CostExplorer::Model::GetCostAndUsageWithResourcesRequest::SetGranularity ( Granularity &&  value)
inline

Sets the AWS cost granularity to MONTHLY, DAILY, or HOURLY. If Granularity isn't set, the response object doesn't include the Granularity, MONTHLY, DAILY, or HOURLY.

Definition at line 139 of file GetCostAndUsageWithResourcesRequest.h.

◆ SetGroupBy() [1/2]

void Aws::CostExplorer::Model::GetCostAndUsageWithResourcesRequest::SetGroupBy ( const Aws::Vector< GroupDefinition > &  value)
inline

You can group Amazon Web Services costs using up to two different groups: DIMENSION, TAG, COST_CATEGORY.

Definition at line 446 of file GetCostAndUsageWithResourcesRequest.h.

◆ SetGroupBy() [2/2]

void Aws::CostExplorer::Model::GetCostAndUsageWithResourcesRequest::SetGroupBy ( Aws::Vector< GroupDefinition > &&  value)
inline

You can group Amazon Web Services costs using up to two different groups: DIMENSION, TAG, COST_CATEGORY.

Definition at line 452 of file GetCostAndUsageWithResourcesRequest.h.

◆ SetMetrics() [1/2]

void Aws::CostExplorer::Model::GetCostAndUsageWithResourcesRequest::SetMetrics ( const Aws::Vector< Aws::String > &  value)
inline

Which metrics are returned in the query. For more information about blended and unblended rates, see Why does the "blended" annotation appear on some line items in my bill?.

Valid values are AmortizedCost, BlendedCost, NetAmortizedCost, NetUnblendedCost, NormalizedUsageAmount, UnblendedCost, and UsageQuantity.

If you return the UsageQuantity metric, the service aggregates all usage numbers without taking the units into account. For example, if you aggregate usageQuantity across all of Amazon EC2, the results aren't meaningful because Amazon EC2 compute hours and data transfer are measured in different units (for example, hours vs. GB). To get more meaningful UsageQuantity metrics, filter by UsageType or UsageTypeGroups.

Metrics is required for GetCostAndUsageWithResources requests.

Definition at line 307 of file GetCostAndUsageWithResourcesRequest.h.

◆ SetMetrics() [2/2]

void Aws::CostExplorer::Model::GetCostAndUsageWithResourcesRequest::SetMetrics ( Aws::Vector< Aws::String > &&  value)
inline

Which metrics are returned in the query. For more information about blended and unblended rates, see Why does the "blended" annotation appear on some line items in my bill?.

Valid values are AmortizedCost, BlendedCost, NetAmortizedCost, NetUnblendedCost, NormalizedUsageAmount, UnblendedCost, and UsageQuantity.

If you return the UsageQuantity metric, the service aggregates all usage numbers without taking the units into account. For example, if you aggregate usageQuantity across all of Amazon EC2, the results aren't meaningful because Amazon EC2 compute hours and data transfer are measured in different units (for example, hours vs. GB). To get more meaningful UsageQuantity metrics, filter by UsageType or UsageTypeGroups.

Metrics is required for GetCostAndUsageWithResources requests.

Definition at line 327 of file GetCostAndUsageWithResourcesRequest.h.

◆ SetNextPageToken() [1/3]

void Aws::CostExplorer::Model::GetCostAndUsageWithResourcesRequest::SetNextPageToken ( const Aws::String value)
inline

The token to retrieve the next set of results. AWS provides the token when the response from a previous call has more results than the maximum page size.

Definition at line 498 of file GetCostAndUsageWithResourcesRequest.h.

◆ SetNextPageToken() [2/3]

void Aws::CostExplorer::Model::GetCostAndUsageWithResourcesRequest::SetNextPageToken ( Aws::String &&  value)
inline

The token to retrieve the next set of results. AWS provides the token when the response from a previous call has more results than the maximum page size.

Definition at line 505 of file GetCostAndUsageWithResourcesRequest.h.

◆ SetNextPageToken() [3/3]

void Aws::CostExplorer::Model::GetCostAndUsageWithResourcesRequest::SetNextPageToken ( const char *  value)
inline

The token to retrieve the next set of results. AWS provides the token when the response from a previous call has more results than the maximum page size.

Definition at line 512 of file GetCostAndUsageWithResourcesRequest.h.

◆ SetTimePeriod() [1/2]

void Aws::CostExplorer::Model::GetCostAndUsageWithResourcesRequest::SetTimePeriod ( const DateInterval value)
inline

Sets the start and end dates for retrieving Amazon Web Services costs. The range must be within the last 14 days (the start date cannot be earlier than 14 days ago). The start date is inclusive, but the end date is exclusive. For example, if start is 2017-01-01 and end is 2017-05-01, then the cost and usage data is retrieved from 2017-01-01 up to and including 2017-04-30 but not including 2017-05-01.

Definition at line 73 of file GetCostAndUsageWithResourcesRequest.h.

◆ SetTimePeriod() [2/2]

void Aws::CostExplorer::Model::GetCostAndUsageWithResourcesRequest::SetTimePeriod ( DateInterval &&  value)
inline

Sets the start and end dates for retrieving Amazon Web Services costs. The range must be within the last 14 days (the start date cannot be earlier than 14 days ago). The start date is inclusive, but the end date is exclusive. For example, if start is 2017-01-01 and end is 2017-05-01, then the cost and usage data is retrieved from 2017-01-01 up to and including 2017-04-30 but not including 2017-05-01.

Definition at line 84 of file GetCostAndUsageWithResourcesRequest.h.

◆ TimePeriodHasBeenSet()

bool Aws::CostExplorer::Model::GetCostAndUsageWithResourcesRequest::TimePeriodHasBeenSet ( ) const
inline

Sets the start and end dates for retrieving Amazon Web Services costs. The range must be within the last 14 days (the start date cannot be earlier than 14 days ago). The start date is inclusive, but the end date is exclusive. For example, if start is 2017-01-01 and end is 2017-05-01, then the cost and usage data is retrieved from 2017-01-01 up to and including 2017-04-30 but not including 2017-05-01.

Definition at line 62 of file GetCostAndUsageWithResourcesRequest.h.

◆ WithFilter() [1/2]

GetCostAndUsageWithResourcesRequest& Aws::CostExplorer::Model::GetCostAndUsageWithResourcesRequest::WithFilter ( const Expression value)
inline

Filters Amazon Web Services costs by different dimensions. For example, you can specify SERVICE and LINKED_ACCOUNT and get the costs that are associated with that account's usage of that service. You can nest Expression objects to define any combination of dimension filters. For more information, see Expression.

The GetCostAndUsageWithResources operation requires that you either group by or filter by a ResourceId. It requires the Expression "SERVICE = Amazon Elastic Compute Cloud - Compute" in the filter.

Definition at line 231 of file GetCostAndUsageWithResourcesRequest.h.

◆ WithFilter() [2/2]

GetCostAndUsageWithResourcesRequest& Aws::CostExplorer::Model::GetCostAndUsageWithResourcesRequest::WithFilter ( Expression &&  value)
inline

Filters Amazon Web Services costs by different dimensions. For example, you can specify SERVICE and LINKED_ACCOUNT and get the costs that are associated with that account's usage of that service. You can nest Expression objects to define any combination of dimension filters. For more information, see Expression.

The GetCostAndUsageWithResources operation requires that you either group by or filter by a ResourceId. It requires the Expression "SERVICE = Amazon Elastic Compute Cloud - Compute" in the filter.

Definition at line 246 of file GetCostAndUsageWithResourcesRequest.h.

◆ WithGranularity() [1/2]

GetCostAndUsageWithResourcesRequest& Aws::CostExplorer::Model::GetCostAndUsageWithResourcesRequest::WithGranularity ( const Granularity value)
inline

Sets the AWS cost granularity to MONTHLY, DAILY, or HOURLY. If Granularity isn't set, the response object doesn't include the Granularity, MONTHLY, DAILY, or HOURLY.

Definition at line 147 of file GetCostAndUsageWithResourcesRequest.h.

◆ WithGranularity() [2/2]

GetCostAndUsageWithResourcesRequest& Aws::CostExplorer::Model::GetCostAndUsageWithResourcesRequest::WithGranularity ( Granularity &&  value)
inline

Sets the AWS cost granularity to MONTHLY, DAILY, or HOURLY. If Granularity isn't set, the response object doesn't include the Granularity, MONTHLY, DAILY, or HOURLY.

Definition at line 155 of file GetCostAndUsageWithResourcesRequest.h.

◆ WithGroupBy() [1/2]

GetCostAndUsageWithResourcesRequest& Aws::CostExplorer::Model::GetCostAndUsageWithResourcesRequest::WithGroupBy ( const Aws::Vector< GroupDefinition > &  value)
inline

You can group Amazon Web Services costs using up to two different groups: DIMENSION, TAG, COST_CATEGORY.

Definition at line 458 of file GetCostAndUsageWithResourcesRequest.h.

◆ WithGroupBy() [2/2]

GetCostAndUsageWithResourcesRequest& Aws::CostExplorer::Model::GetCostAndUsageWithResourcesRequest::WithGroupBy ( Aws::Vector< GroupDefinition > &&  value)
inline

You can group Amazon Web Services costs using up to two different groups: DIMENSION, TAG, COST_CATEGORY.

Definition at line 464 of file GetCostAndUsageWithResourcesRequest.h.

◆ WithMetrics() [1/2]

GetCostAndUsageWithResourcesRequest& Aws::CostExplorer::Model::GetCostAndUsageWithResourcesRequest::WithMetrics ( const Aws::Vector< Aws::String > &  value)
inline

Which metrics are returned in the query. For more information about blended and unblended rates, see Why does the "blended" annotation appear on some line items in my bill?.

Valid values are AmortizedCost, BlendedCost, NetAmortizedCost, NetUnblendedCost, NormalizedUsageAmount, UnblendedCost, and UsageQuantity.

If you return the UsageQuantity metric, the service aggregates all usage numbers without taking the units into account. For example, if you aggregate usageQuantity across all of Amazon EC2, the results aren't meaningful because Amazon EC2 compute hours and data transfer are measured in different units (for example, hours vs. GB). To get more meaningful UsageQuantity metrics, filter by UsageType or UsageTypeGroups.

Metrics is required for GetCostAndUsageWithResources requests.

Definition at line 347 of file GetCostAndUsageWithResourcesRequest.h.

◆ WithMetrics() [2/2]

GetCostAndUsageWithResourcesRequest& Aws::CostExplorer::Model::GetCostAndUsageWithResourcesRequest::WithMetrics ( Aws::Vector< Aws::String > &&  value)
inline

Which metrics are returned in the query. For more information about blended and unblended rates, see Why does the "blended" annotation appear on some line items in my bill?.

Valid values are AmortizedCost, BlendedCost, NetAmortizedCost, NetUnblendedCost, NormalizedUsageAmount, UnblendedCost, and UsageQuantity.

If you return the UsageQuantity metric, the service aggregates all usage numbers without taking the units into account. For example, if you aggregate usageQuantity across all of Amazon EC2, the results aren't meaningful because Amazon EC2 compute hours and data transfer are measured in different units (for example, hours vs. GB). To get more meaningful UsageQuantity metrics, filter by UsageType or UsageTypeGroups.

Metrics is required for GetCostAndUsageWithResources requests.

Definition at line 367 of file GetCostAndUsageWithResourcesRequest.h.

◆ WithNextPageToken() [1/3]

GetCostAndUsageWithResourcesRequest& Aws::CostExplorer::Model::GetCostAndUsageWithResourcesRequest::WithNextPageToken ( const Aws::String value)
inline

The token to retrieve the next set of results. AWS provides the token when the response from a previous call has more results than the maximum page size.

Definition at line 519 of file GetCostAndUsageWithResourcesRequest.h.

◆ WithNextPageToken() [2/3]

GetCostAndUsageWithResourcesRequest& Aws::CostExplorer::Model::GetCostAndUsageWithResourcesRequest::WithNextPageToken ( Aws::String &&  value)
inline

The token to retrieve the next set of results. AWS provides the token when the response from a previous call has more results than the maximum page size.

Definition at line 526 of file GetCostAndUsageWithResourcesRequest.h.

◆ WithNextPageToken() [3/3]

GetCostAndUsageWithResourcesRequest& Aws::CostExplorer::Model::GetCostAndUsageWithResourcesRequest::WithNextPageToken ( const char *  value)
inline

The token to retrieve the next set of results. AWS provides the token when the response from a previous call has more results than the maximum page size.

Definition at line 533 of file GetCostAndUsageWithResourcesRequest.h.

◆ WithTimePeriod() [1/2]

GetCostAndUsageWithResourcesRequest& Aws::CostExplorer::Model::GetCostAndUsageWithResourcesRequest::WithTimePeriod ( const DateInterval value)
inline

Sets the start and end dates for retrieving Amazon Web Services costs. The range must be within the last 14 days (the start date cannot be earlier than 14 days ago). The start date is inclusive, but the end date is exclusive. For example, if start is 2017-01-01 and end is 2017-05-01, then the cost and usage data is retrieved from 2017-01-01 up to and including 2017-04-30 but not including 2017-05-01.

Definition at line 95 of file GetCostAndUsageWithResourcesRequest.h.

◆ WithTimePeriod() [2/2]

GetCostAndUsageWithResourcesRequest& Aws::CostExplorer::Model::GetCostAndUsageWithResourcesRequest::WithTimePeriod ( DateInterval &&  value)
inline

Sets the start and end dates for retrieving Amazon Web Services costs. The range must be within the last 14 days (the start date cannot be earlier than 14 days ago). The start date is inclusive, but the end date is exclusive. For example, if start is 2017-01-01 and end is 2017-05-01, then the cost and usage data is retrieved from 2017-01-01 up to and including 2017-04-30 but not including 2017-05-01.

Definition at line 106 of file GetCostAndUsageWithResourcesRequest.h.


The documentation for this class was generated from the following file: