@Generated(value="software.amazon.awssdk:codegen") public final class MeterUsageRequest extends MarketplaceMeteringRequest implements ToCopyableBuilder<MeterUsageRequest.Builder,MeterUsageRequest>
Modifier and Type | Class and Description |
---|---|
static interface |
MeterUsageRequest.Builder |
Modifier and Type | Method and Description |
---|---|
static MeterUsageRequest.Builder |
builder() |
Boolean |
dryRun()
Checks whether you have the permissions required for the action, but does not make the request.
|
boolean |
equals(Object obj) |
<T> Optional<T> |
getValueForField(String fieldName,
Class<T> clazz)
Used to retrieve the value of a field from any class that extends
SdkRequest . |
int |
hashCode() |
String |
productCode()
Product code is used to uniquely identify a product in AWS Marketplace.
|
List<SdkField<?>> |
sdkFields() |
static Class<? extends MeterUsageRequest.Builder> |
serializableBuilderClass() |
Instant |
timestamp()
Timestamp of the hour, recorded in UTC.
|
MeterUsageRequest.Builder |
toBuilder()
Take this object and create a builder that contains all of the current property values of this object.
|
String |
toString() |
String |
usageDimension()
It will be one of the fcp dimension name provided during the publishing of the product.
|
Integer |
usageQuantity()
Consumption value for the hour.
|
overrideConfiguration
copy
public 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.
public Instant timestamp()
Timestamp of the hour, recorded in UTC. The seconds and milliseconds portions of the timestamp will be ignored.
public String usageDimension()
It will be one of the fcp dimension name provided during the publishing of the product.
public Integer usageQuantity()
Consumption value for the hour.
public 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 MeterUsageRequest.Builder toBuilder()
ToCopyableBuilder
toBuilder
in interface ToCopyableBuilder<MeterUsageRequest.Builder,MeterUsageRequest>
toBuilder
in class MarketplaceMeteringRequest
public static MeterUsageRequest.Builder builder()
public static Class<? extends MeterUsageRequest.Builder> serializableBuilderClass()
public <T> Optional<T> getValueForField(String fieldName, Class<T> clazz)
SdkRequest
SdkRequest
. The field name
specified should match the member name from the corresponding service-2.json model specified in the
codegen-resources folder for a given service. The class specifies what class to cast the returned value to.
If the returned value is also a modeled class, the SdkRequest.getValueForField(String, Class)
method will
again be available.getValueForField
in class SdkRequest
fieldName
- The name of the member to be retrieved.clazz
- The class to cast the returned object to.Copyright © 2017 Amazon Web Services, Inc. All Rights Reserved.