public class MeterUsageRequest extends AmazonWebServiceRequest implements Serializable, Cloneable
NOOP
Constructor and Description |
---|
MeterUsageRequest() |
Modifier and Type | Method and 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.
|
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
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.
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 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(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(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 Date getTimestamp()
Timestamp of the hour, recorded in UTC. The seconds and milliseconds portions of the timestamp will be ignored.
public MeterUsageRequest withTimestamp(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(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 String getUsageDimension()
It will be one of the 'fcp dimension name' provided during the publishing of the product.
public MeterUsageRequest withUsageDimension(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(Integer usageQuantity)
Consumption value for the hour.
usageQuantity
- Consumption value for the hour.public Integer getUsageQuantity()
Consumption value for the hour.
public MeterUsageRequest withUsageQuantity(Integer usageQuantity)
Consumption value for the hour.
usageQuantity
- Consumption value for the hour.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.
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 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(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 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 String toString()
toString
in class Object
Object.toString()
public MeterUsageRequest clone()
AmazonWebServiceRequest
clone
in class AmazonWebServiceRequest
Object.clone()
Copyright © 2018. All rights reserved.