Class MeterUsageRequest
- All Implemented Interfaces:
ReadLimitInfo, Serializable, Cloneable
- See Also:
-
Field Summary
Fields inherited from class AmazonWebServiceRequest
NOOP -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionclone()Creates a shallow clone of this request.booleanChecks whether you have the permissions required for the action, but does not make the request.Product code is used to uniquely identify a product in AWS Marketplace.Timestamp of the hour, recorded in UTC.It will be one of the 'fcp dimension name' provided during the publishing of the product.Consumption value for the hour.inthashCode()isDryRun()Checks whether you have the permissions required for the action, but does not make the request.voidChecks whether you have the permissions required for the action, but does not make the request.voidsetProductCode(String productCode) Product code is used to uniquely identify a product in AWS Marketplace.voidsetTimestamp(Date timestamp) Timestamp of the hour, recorded in UTC.voidsetUsageDimension(String usageDimension) It will be one of the 'fcp dimension name' provided during the publishing of the product.voidsetUsageQuantity(Integer usageQuantity) Consumption value for the hour.toString()Returns a string representation of this object; useful for testing and debugging.withDryRun(Boolean dryRun) Checks whether you have the permissions required for the action, but does not make the request.withProductCode(String productCode) Product code is used to uniquely identify a product in AWS Marketplace.withTimestamp(Date timestamp) Timestamp of the hour, recorded in UTC.withUsageDimension(String usageDimension) It will be one of the 'fcp dimension name' provided during the publishing of the product.withUsageQuantity(Integer usageQuantity) Consumption value for the hour.Methods inherited from class AmazonWebServiceRequest
copyBaseTo, getCloneRoot, getCloneSource, getCustomQueryParameters, getCustomRequestHeaders, getGeneralProgressListener, getReadLimit, getRequestClientOptions, getRequestCredentials, getRequestCredentialsProvider, getRequestMetricCollector, getSdkClientExecutionTimeout, getSdkRequestTimeout, putCustomQueryParameter, putCustomRequestHeader, setGeneralProgressListener, setRequestCredentials, setRequestCredentialsProvider, setRequestMetricCollector, setSdkClientExecutionTimeout, setSdkRequestTimeout, withGeneralProgressListener, withRequestMetricCollector, withSdkClientExecutionTimeout, withSdkRequestTimeout
-
Constructor Details
-
MeterUsageRequest
public MeterUsageRequest()
-
-
Method Details
-
setProductCode
Product code is used to uniquely identify a product in AWS Marketplace. The product code should be the same as the one used during the publishing of a new product.
- Parameters:
productCode- Product code is used to uniquely identify a product in AWS Marketplace. The product code should be the same as the one used during the publishing of a new product.
-
getProductCode
Product code is used to uniquely identify a product in AWS Marketplace. The product code should be the same as the one used during the publishing of a new product.
- Returns:
- Product code is used to uniquely identify a product in AWS Marketplace. The product code should be the same as the one used during the publishing of a new product.
-
withProductCode
Product code is used to uniquely identify a product in AWS Marketplace. The product code should be the same as the one used during the publishing of a new product.
- Parameters:
productCode- Product code is used to uniquely identify a product in AWS Marketplace. The product code should be the same as the one used during the publishing of a new product.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setTimestamp
Timestamp of the hour, recorded in UTC. The seconds and milliseconds portions of the timestamp will be ignored.
- Parameters:
timestamp- Timestamp of the hour, recorded in UTC. The seconds and milliseconds portions of the timestamp will be ignored.
-
getTimestamp
Timestamp of the hour, recorded in UTC. The seconds and milliseconds portions of the timestamp will be ignored.
- Returns:
- Timestamp of the hour, recorded in UTC. The seconds and milliseconds portions of the timestamp will be ignored.
-
withTimestamp
Timestamp of the hour, recorded in UTC. The seconds and milliseconds portions of the timestamp will be ignored.
- Parameters:
timestamp- Timestamp of the hour, recorded in UTC. The seconds and milliseconds portions of the timestamp will be ignored.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setUsageDimension
It will be one of the 'fcp dimension name' provided during the publishing of the product.
- Parameters:
usageDimension- It will be one of the 'fcp dimension name' provided during the publishing of the product.
-
getUsageDimension
It will be one of the 'fcp dimension name' provided during the publishing of the product.
- Returns:
- It will be one of the 'fcp dimension name' provided during the publishing of the product.
-
withUsageDimension
It will be one of the 'fcp dimension name' provided during the publishing of the product.
- Parameters:
usageDimension- It will be one of the 'fcp dimension name' provided during the publishing of the product.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setUsageQuantity
Consumption value for the hour.
- Parameters:
usageQuantity- Consumption value for the hour.
-
getUsageQuantity
Consumption value for the hour.
- Returns:
- Consumption value for the hour.
-
withUsageQuantity
Consumption value for the hour.
- Parameters:
usageQuantity- Consumption value for the hour.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setDryRun
Checks whether you have the permissions required for the action, but does not make the request. If you have the permissions, the request returns DryRunOperation; otherwise, it returns UnauthorizedException.
- Parameters:
dryRun- Checks whether you have the permissions required for the action, but does not make the request. If you have the permissions, the request returns DryRunOperation; otherwise, it returns UnauthorizedException.
-
getDryRun
Checks whether you have the permissions required for the action, but does not make the request. If you have the permissions, the request returns DryRunOperation; otherwise, it returns UnauthorizedException.
- Returns:
- Checks whether you have the permissions required for the action, but does not make the request. If you have the permissions, the request returns DryRunOperation; otherwise, it returns UnauthorizedException.
-
withDryRun
Checks whether you have the permissions required for the action, but does not make the request. If you have the permissions, the request returns DryRunOperation; otherwise, it returns UnauthorizedException.
- Parameters:
dryRun- Checks whether you have the permissions required for the action, but does not make the request. If you have the permissions, the request returns DryRunOperation; otherwise, it returns UnauthorizedException.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
isDryRun
Checks whether you have the permissions required for the action, but does not make the request. If you have the permissions, the request returns DryRunOperation; otherwise, it returns UnauthorizedException.
- Returns:
- Checks whether you have the permissions required for the action, but does not make the request. If you have the permissions, the request returns DryRunOperation; otherwise, it returns UnauthorizedException.
-
toString
-
equals
-
hashCode
-
clone
Description copied from class:AmazonWebServiceRequestCreates a shallow clone of this request. Explicitly does not clone the deep structure of the request object.- Overrides:
clonein classAmazonWebServiceRequest- See Also:
-