@Generated(value="com.amazonaws:aws-java-sdk-code-generator") 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 object for all fields except the handler context.
|
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, in UTC, for which the usage is being reported.
|
List<UsageAllocation> |
getUsageAllocations()
The set of UsageAllocations to submit.
|
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, in UTC, for which the usage is being reported.
|
void |
setUsageAllocations(Collection<UsageAllocation> usageAllocations)
The set of UsageAllocations to submit.
|
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.
|
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, in UTC, for which the usage is being reported.
|
MeterUsageRequest |
withUsageAllocations(Collection<UsageAllocation> usageAllocations)
The set of UsageAllocations to submit.
|
MeterUsageRequest |
withUsageAllocations(UsageAllocation... usageAllocations)
The set of UsageAllocations to submit.
|
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.
|
addHandlerContext, getCloneRoot, getCloneSource, getCustomQueryParameters, getCustomRequestHeaders, getGeneralProgressListener, getHandlerContext, getReadLimit, getRequestClientOptions, getRequestCredentials, getRequestCredentialsProvider, getRequestMetricCollector, getSdkClientExecutionTimeout, getSdkRequestTimeout, putCustomQueryParameter, putCustomRequestHeader, setGeneralProgressListener, setRequestCredentials, setRequestCredentialsProvider, setRequestMetricCollector, setSdkClientExecutionTimeout, setSdkRequestTimeout, withGeneralProgressListener, withRequestCredentialsProvider, 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, in UTC, for which the usage is being reported. Your application can meter usage for up to one hour in the past. Make sure the timestamp value is not before the start of the software usage.
timestamp
- Timestamp, in UTC, for which the usage is being reported. Your application can meter usage for up to one
hour in the past. Make sure the timestamp value is not before the start of the software usage.public Date getTimestamp()
Timestamp, in UTC, for which the usage is being reported. Your application can meter usage for up to one hour in the past. Make sure the timestamp value is not before the start of the software usage.
public MeterUsageRequest withTimestamp(Date timestamp)
Timestamp, in UTC, for which the usage is being reported. Your application can meter usage for up to one hour in the past. Make sure the timestamp value is not before the start of the software usage.
timestamp
- Timestamp, in UTC, for which the usage is being reported. Your application can meter usage for up to one
hour in the past. Make sure the timestamp value is not before the start of the software usage.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. Defaults to 0
if not specified.
usageQuantity
- Consumption value for the hour. Defaults to 0
if not specified.public Integer getUsageQuantity()
Consumption value for the hour. Defaults to 0
if not specified.
0
if not specified.public MeterUsageRequest withUsageQuantity(Integer usageQuantity)
Consumption value for the hour. Defaults to 0
if not specified.
usageQuantity
- Consumption value for the hour. Defaults to 0
if not specified.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. Defaults to
false
if not specified.
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.
Defaults to false
if not specified.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. Defaults to
false
if not specified.
false
if not specified.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. Defaults to
false
if not specified.
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.
Defaults to false
if not specified.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. Defaults to
false
if not specified.
false
if not specified.public List<UsageAllocation> getUsageAllocations()
The set of UsageAllocations to submit.
The sum of all UsageAllocation quantities must equal the UsageQuantity of the MeterUsage request, and each UsageAllocation must have a unique set of tags (include no tags).
The sum of all UsageAllocation quantities must equal the UsageQuantity of the MeterUsage request, and each UsageAllocation must have a unique set of tags (include no tags).
public void setUsageAllocations(Collection<UsageAllocation> usageAllocations)
The set of UsageAllocations to submit.
The sum of all UsageAllocation quantities must equal the UsageQuantity of the MeterUsage request, and each UsageAllocation must have a unique set of tags (include no tags).
usageAllocations
- The set of UsageAllocations to submit.
The sum of all UsageAllocation quantities must equal the UsageQuantity of the MeterUsage request, and each UsageAllocation must have a unique set of tags (include no tags).
public MeterUsageRequest withUsageAllocations(UsageAllocation... usageAllocations)
The set of UsageAllocations to submit.
The sum of all UsageAllocation quantities must equal the UsageQuantity of the MeterUsage request, and each UsageAllocation must have a unique set of tags (include no tags).
NOTE: This method appends the values to the existing list (if any). Use
setUsageAllocations(java.util.Collection)
or withUsageAllocations(java.util.Collection)
if you
want to override the existing values.
usageAllocations
- The set of UsageAllocations to submit.
The sum of all UsageAllocation quantities must equal the UsageQuantity of the MeterUsage request, and each UsageAllocation must have a unique set of tags (include no tags).
public MeterUsageRequest withUsageAllocations(Collection<UsageAllocation> usageAllocations)
The set of UsageAllocations to submit.
The sum of all UsageAllocation quantities must equal the UsageQuantity of the MeterUsage request, and each UsageAllocation must have a unique set of tags (include no tags).
usageAllocations
- The set of UsageAllocations to submit.
The sum of all UsageAllocation quantities must equal the UsageQuantity of the MeterUsage request, and each UsageAllocation must have a unique set of tags (include no tags).
public String toString()
toString
in class Object
Object.toString()
public MeterUsageRequest clone()
AmazonWebServiceRequest
clone
in class AmazonWebServiceRequest
Object.clone()