public class MeterUsageRequest extends AmazonWebServiceRequest implements java.io.Serializable, java.lang.Cloneable
Modifier and Type | Field and Description |
---|---|
private java.lang.Boolean |
dryRun
Checks whether you have the permissions required for the action, but does
not make the request.
|
private java.lang.String |
productCode
Product code is used to uniquely identify a product in AWS Marketplace.
|
private java.util.Date |
timestamp
Timestamp of the hour, recorded in UTC.
|
private java.lang.String |
usageDimension
It will be one of the 'fcp dimension name' provided during the publishing
of the product.
|
private java.lang.Integer |
usageQuantity
Consumption value for the hour.
|
NOOP
Constructor and Description |
---|
MeterUsageRequest() |
Modifier and Type | Method and Description |
---|---|
MeterUsageRequest |
clone()
Creates a shallow clone of this request.
|
boolean |
equals(java.lang.Object obj) |
java.lang.Boolean |
getDryRun()
Checks whether you have the permissions required for the action, but does
not make the request.
|
java.lang.String |
getProductCode()
Product code is used to uniquely identify a product in AWS Marketplace.
|
java.util.Date |
getTimestamp()
Timestamp of the hour, recorded in UTC.
|
java.lang.String |
getUsageDimension()
It will be one of the 'fcp dimension name' provided during the publishing
of the product.
|
java.lang.Integer |
getUsageQuantity()
Consumption value for the hour.
|
int |
hashCode() |
java.lang.Boolean |
isDryRun()
Checks whether you have the permissions required for the action, but does
not make the request.
|
void |
setDryRun(java.lang.Boolean dryRun)
Checks whether you have the permissions required for the action, but does
not make the request.
|
void |
setProductCode(java.lang.String productCode)
Product code is used to uniquely identify a product in AWS Marketplace.
|
void |
setTimestamp(java.util.Date timestamp)
Timestamp of the hour, recorded in UTC.
|
void |
setUsageDimension(java.lang.String usageDimension)
It will be one of the 'fcp dimension name' provided during the publishing
of the product.
|
void |
setUsageQuantity(java.lang.Integer usageQuantity)
Consumption value for the hour.
|
java.lang.String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
MeterUsageRequest |
withDryRun(java.lang.Boolean dryRun)
Checks whether you have the permissions required for the action, but does
not make the request.
|
MeterUsageRequest |
withProductCode(java.lang.String productCode)
Product code is used to uniquely identify a product in AWS Marketplace.
|
MeterUsageRequest |
withTimestamp(java.util.Date timestamp)
Timestamp of the hour, recorded in UTC.
|
MeterUsageRequest |
withUsageDimension(java.lang.String usageDimension)
It will be one of the 'fcp dimension name' provided during the publishing
of the product.
|
MeterUsageRequest |
withUsageQuantity(java.lang.Integer usageQuantity)
Consumption value for the hour.
|
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
private java.lang.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.
private java.util.Date timestamp
Timestamp of the hour, recorded in UTC. The seconds and milliseconds portions of the timestamp will be ignored.
private java.lang.String usageDimension
It will be one of the 'fcp dimension name' provided during the publishing of the product.
private java.lang.Integer usageQuantity
Consumption value for the hour.
private java.lang.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.
public void setProductCode(java.lang.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.
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.public java.lang.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.
public MeterUsageRequest withProductCode(java.lang.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.
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.public void setTimestamp(java.util.Date timestamp)
Timestamp of the hour, recorded in UTC. The seconds and milliseconds portions of the timestamp will be ignored.
timestamp
- Timestamp of the hour, recorded in UTC. The seconds and
milliseconds portions of the timestamp will be ignored.public java.util.Date getTimestamp()
Timestamp of the hour, recorded in UTC. The seconds and milliseconds portions of the timestamp will be ignored.
public MeterUsageRequest withTimestamp(java.util.Date timestamp)
Timestamp of the hour, recorded in UTC. The seconds and milliseconds portions of the timestamp will be ignored.
timestamp
- Timestamp of the hour, recorded in UTC. The seconds and
milliseconds portions of the timestamp will be ignored.public void setUsageDimension(java.lang.String usageDimension)
It will be one of the 'fcp dimension name' provided during the publishing of the product.
usageDimension
- It will be one of the 'fcp dimension name' provided during the
publishing of the product.public java.lang.String getUsageDimension()
It will be one of the 'fcp dimension name' provided during the publishing of the product.
public MeterUsageRequest withUsageDimension(java.lang.String usageDimension)
It will be one of the 'fcp dimension name' provided during the publishing of the product.
usageDimension
- It will be one of the 'fcp dimension name' provided during the
publishing of the product.public void setUsageQuantity(java.lang.Integer usageQuantity)
Consumption value for the hour.
usageQuantity
- Consumption value for the hour.public java.lang.Integer getUsageQuantity()
Consumption value for the hour.
public MeterUsageRequest withUsageQuantity(java.lang.Integer usageQuantity)
Consumption value for the hour.
usageQuantity
- Consumption value for the hour.public void setDryRun(java.lang.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.
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.public java.lang.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.
public MeterUsageRequest withDryRun(java.lang.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.
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.public java.lang.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.
public java.lang.String toString()
toString
in class java.lang.Object
Object.toString()
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public MeterUsageRequest clone()
AmazonWebServiceRequest
clone
in class AmazonWebServiceRequest
Object.clone()