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 MeterUsageRequest
clone()
Creates a shallow clone of this request.boolean
equals(Object obj)
Boolean
getDryRun()
Checks whether you have the permissions required for the action, but does not make the request.String
getProductCode()
Product code is used to uniquely identify a product in AWS Marketplace.Date
getTimestamp()
Timestamp of the hour, recorded in UTC.String
getUsageDimension()
It will be one of the 'fcp dimension name' provided during the publishing of the product.Integer
getUsageQuantity()
Consumption value for the hour.int
hashCode()
Boolean
isDryRun()
Checks whether you have the permissions required for the action, but does not make the request.void
setDryRun(Boolean dryRun)
Checks whether you have the permissions required for the action, but does not make the request.void
setProductCode(String productCode)
Product code is used to uniquely identify a product in AWS Marketplace.void
setTimestamp(Date timestamp)
Timestamp of the hour, recorded in UTC.void
setUsageDimension(String usageDimension)
It will be one of the 'fcp dimension name' provided during the publishing of the product.void
setUsageQuantity(Integer usageQuantity)
Consumption value for the hour.String
toString()
Returns a string representation of this object; useful for testing and debugging.MeterUsageRequest
withDryRun(Boolean dryRun)
Checks whether you have the permissions required for the action, but does not make the request.MeterUsageRequest
withProductCode(String productCode)
Product code is used to uniquely identify a product in AWS Marketplace.MeterUsageRequest
withTimestamp(Date timestamp)
Timestamp of the hour, recorded in UTC.MeterUsageRequest
withUsageDimension(String usageDimension)
It will be one of the 'fcp dimension name' provided during the publishing of the product.MeterUsageRequest
withUsageQuantity(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:
toString
in classObject
- Returns:
- A string representation of this object.
- See Also:
Object.toString()
-
clone
public MeterUsageRequest clone()
Description copied from class:AmazonWebServiceRequest
Creates a shallow clone of this request. Explicitly does not clone the deep structure of the request object.- Overrides:
clone
in classAmazonWebServiceRequest
- See Also:
Object.clone()
-
-