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:
  • Constructor Details

    • MeterUsageRequest

      public MeterUsageRequest()
  • Method Details

    • 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 class Object
      Returns:
      A string representation of this object.
      See Also:
    • equals

      public boolean equals(Object obj)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • 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 class AmazonWebServiceRequest
      See Also: