Class MeterUsageRequest
- java.lang.Object
-
- com.amazonaws.AmazonWebServiceRequest
-
- com.amazonaws.services.marketplacemetering.model.MeterUsageRequest
-
- All Implemented Interfaces:
ReadLimitInfo,Serializable,Cloneable
public class MeterUsageRequest extends AmazonWebServiceRequest implements Serializable, Cloneable
- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from class com.amazonaws.AmazonWebServiceRequest
NOOP
-
-
Constructor Summary
Constructors Constructor Description MeterUsageRequest()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description MeterUsageRequestclone()Creates a shallow clone of this request.booleanequals(Object obj)BooleangetDryRun()Checks whether you have the permissions required for the action, but does not make the request.StringgetProductCode()Product code is used to uniquely identify a product in AWS Marketplace.DategetTimestamp()Timestamp of the hour, recorded in UTC.StringgetUsageDimension()It will be one of the 'fcp dimension name' provided during the publishing of the product.IntegergetUsageQuantity()Consumption value for the hour.inthashCode()BooleanisDryRun()Checks whether you have the permissions required for the action, but does not make the request.voidsetDryRun(Boolean dryRun)Checks 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.StringtoString()Returns a string representation of this object; useful for testing and debugging.MeterUsageRequestwithDryRun(Boolean dryRun)Checks whether you have the permissions required for the action, but does not make the request.MeterUsageRequestwithProductCode(String productCode)Product code is used to uniquely identify a product in AWS Marketplace.MeterUsageRequestwithTimestamp(Date timestamp)Timestamp of the hour, recorded in UTC.MeterUsageRequestwithUsageDimension(String usageDimension)It will be one of the 'fcp dimension name' provided during the publishing of the product.MeterUsageRequestwithUsageQuantity(Integer usageQuantity)Consumption value for the hour.-
Methods inherited from class com.amazonaws.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
-
-
-
-
Method Detail
-
setProductCode
public void setProductCode(String 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.
- 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
public String 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
public MeterUsageRequest withProductCode(String 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.
- 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
public void setTimestamp(Date timestamp)
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
public Date 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
public MeterUsageRequest withTimestamp(Date timestamp)
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
public void setUsageDimension(String usageDimension)
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
public String 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
public MeterUsageRequest withUsageDimension(String usageDimension)
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
public void setUsageQuantity(Integer usageQuantity)
Consumption value for the hour.
- Parameters:
usageQuantity- Consumption value for the hour.
-
getUsageQuantity
public Integer getUsageQuantity()
Consumption value for the hour.
- Returns:
- Consumption value for the hour.
-
withUsageQuantity
public MeterUsageRequest withUsageQuantity(Integer usageQuantity)
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
public void setDryRun(Boolean 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.
- 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
public Boolean 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
public MeterUsageRequest withDryRun(Boolean 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.
- 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
public Boolean 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
public String toString()
Returns a string representation of this object; useful for testing and debugging.- Overrides:
toStringin classObject- Returns:
- A string representation of this object.
- See Also:
Object.toString()
-
clone
public MeterUsageRequest 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:
Object.clone()
-
-