@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class BatchMeterUsageRequest extends AmazonWebServiceRequest implements Serializable, Cloneable
A BatchMeterUsageRequest contains UsageRecords, which indicate quantities of usage within your application.
NOOP
Constructor and Description |
---|
BatchMeterUsageRequest() |
Modifier and Type | Method and Description |
---|---|
BatchMeterUsageRequest |
clone()
Creates a shallow clone of this object for all fields except the handler context.
|
boolean |
equals(Object obj) |
String |
getProductCode()
Product code is used to uniquely identify a product in AWS Marketplace.
|
List<UsageRecord> |
getUsageRecords()
The set of UsageRecords to submit.
|
int |
hashCode() |
void |
setProductCode(String productCode)
Product code is used to uniquely identify a product in AWS Marketplace.
|
void |
setUsageRecords(Collection<UsageRecord> usageRecords)
The set of UsageRecords to submit.
|
String |
toString()
Returns a string representation of this object; useful for testing and debugging.
|
BatchMeterUsageRequest |
withProductCode(String productCode)
Product code is used to uniquely identify a product in AWS Marketplace.
|
BatchMeterUsageRequest |
withUsageRecords(Collection<UsageRecord> usageRecords)
The set of UsageRecords to submit.
|
BatchMeterUsageRequest |
withUsageRecords(UsageRecord... usageRecords)
The set of UsageRecords to submit.
|
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 List<UsageRecord> getUsageRecords()
The set of UsageRecords to submit. BatchMeterUsage accepts up to 25 UsageRecords at a time.
public void setUsageRecords(Collection<UsageRecord> usageRecords)
The set of UsageRecords to submit. BatchMeterUsage accepts up to 25 UsageRecords at a time.
usageRecords
- The set of UsageRecords to submit. BatchMeterUsage accepts up to 25 UsageRecords at a time.public BatchMeterUsageRequest withUsageRecords(UsageRecord... usageRecords)
The set of UsageRecords to submit. BatchMeterUsage accepts up to 25 UsageRecords at a time.
NOTE: This method appends the values to the existing list (if any). Use
setUsageRecords(java.util.Collection)
or withUsageRecords(java.util.Collection)
if you want to
override the existing values.
usageRecords
- The set of UsageRecords to submit. BatchMeterUsage accepts up to 25 UsageRecords at a time.public BatchMeterUsageRequest withUsageRecords(Collection<UsageRecord> usageRecords)
The set of UsageRecords to submit. BatchMeterUsage accepts up to 25 UsageRecords at a time.
usageRecords
- The set of UsageRecords to submit. BatchMeterUsage accepts up to 25 UsageRecords at a time.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 BatchMeterUsageRequest 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 String toString()
toString
in class Object
Object.toString()
public BatchMeterUsageRequest clone()
AmazonWebServiceRequest
clone
in class AmazonWebServiceRequest
Object.clone()
Copyright © 2013 Amazon Web Services, Inc. All Rights Reserved.