@Generated(value="software.amazon.awssdk:codegen") public final class CreatePricingRuleRequest extends BillingconductorRequest implements ToCopyableBuilder<CreatePricingRuleRequest.Builder,CreatePricingRuleRequest>
| Modifier and Type | Class and Description |
|---|---|
static interface |
CreatePricingRuleRequest.Builder |
| Modifier and Type | Method and Description |
|---|---|
String |
billingEntity()
The seller of services provided by Amazon Web Services, their affiliates, or third-party providers selling
services via Amazon Web Services Marketplace.
|
static CreatePricingRuleRequest.Builder |
builder() |
String |
clientToken()
The token that's needed to support idempotency.
|
String |
description()
The pricing rule description.
|
boolean |
equals(Object obj) |
boolean |
equalsBySdkFields(Object obj) |
<T> Optional<T> |
getValueForField(String fieldName,
Class<T> clazz) |
int |
hashCode() |
boolean |
hasTags()
For responses, this returns true if the service returned a value for the Tags property.
|
Double |
modifierPercentage()
A percentage modifier that's applied on the public pricing rates.
|
String |
name()
The pricing rule name.
|
String |
operation()
Operation is the specific Amazon Web Services action covered by this line item.
|
PricingRuleScope |
scope()
The scope of pricing rule that indicates if it's globally applicable, or it's service-specific.
|
String |
scopeAsString()
The scope of pricing rule that indicates if it's globally applicable, or it's service-specific.
|
List<SdkField<?>> |
sdkFields() |
static Class<? extends CreatePricingRuleRequest.Builder> |
serializableBuilderClass() |
String |
service()
If the
Scope attribute is set to SERVICE or SKU, the attribute indicates
which service the PricingRule is applicable for. |
Map<String,String> |
tags()
A map that contains tag keys and tag values that are attached to a pricing rule.
|
CreateTieringInput |
tiering()
The set of tiering configurations for the pricing rule.
|
CreatePricingRuleRequest.Builder |
toBuilder() |
String |
toString()
Returns a string representation of this object.
|
PricingRuleType |
type()
The type of pricing rule.
|
String |
typeAsString()
The type of pricing rule.
|
String |
usageType()
Usage type is the unit that each service uses to measure the usage of a specific type of resource.
|
overrideConfigurationclone, finalize, getClass, notify, notifyAll, wait, wait, waitcopypublic final String clientToken()
The token that's needed to support idempotency. Idempotency isn't currently supported, but will be implemented in a future update.
public final String name()
The pricing rule name. The names must be unique to each pricing rule.
public final String description()
The pricing rule description.
public final PricingRuleScope scope()
The scope of pricing rule that indicates if it's globally applicable, or it's service-specific.
If the service returns an enum value that is not available in the current SDK version, scope will return
PricingRuleScope.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available from
scopeAsString().
PricingRuleScopepublic final String scopeAsString()
The scope of pricing rule that indicates if it's globally applicable, or it's service-specific.
If the service returns an enum value that is not available in the current SDK version, scope will return
PricingRuleScope.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available from
scopeAsString().
PricingRuleScopepublic final PricingRuleType type()
The type of pricing rule.
If the service returns an enum value that is not available in the current SDK version, type will return
PricingRuleType.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available from
typeAsString().
PricingRuleTypepublic final String typeAsString()
The type of pricing rule.
If the service returns an enum value that is not available in the current SDK version, type will return
PricingRuleType.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available from
typeAsString().
PricingRuleTypepublic final Double modifierPercentage()
A percentage modifier that's applied on the public pricing rates.
public final String service()
If the Scope attribute is set to SERVICE or SKU, the attribute indicates
which service the PricingRule is applicable for.
Scope attribute is set to SERVICE or SKU, the attribute
indicates which service the PricingRule is applicable for.public final boolean hasTags()
isEmpty() method on the property). This is useful
because the SDK will never return a null collection or map, but you may need to differentiate between the service
returning nothing (or null) and the service returning an empty collection or map. For requests, this returns true
if a value for the property was specified in the request builder, and false if a value was not specified.public final Map<String,String> tags()
A map that contains tag keys and tag values that are attached to a pricing rule.
Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
This method will never return null. If you would like to know whether the service returned this field (so that
you can differentiate between null and empty), you can use the hasTags() method.
public final String billingEntity()
The seller of services provided by Amazon Web Services, their affiliates, or third-party providers selling services via Amazon Web Services Marketplace.
public final CreateTieringInput tiering()
The set of tiering configurations for the pricing rule.
public final String usageType()
Usage type is the unit that each service uses to measure the usage of a specific type of resource.
If the Scope attribute is set to SKU, this attribute indicates which usage type the
PricingRule is modifying. For example, USW2-BoxUsage:m2.2xlarge describes an
M2 High Memory Double Extra Large instance in the US West (Oregon) Region.
</p>
If the Scope attribute is set to SKU, this attribute indicates which usage type
the PricingRule is modifying. For example, USW2-BoxUsage:m2.2xlarge describes
an M2 High Memory Double Extra Large instance in the US West (Oregon) Region.
</p> public final String operation()
Operation is the specific Amazon Web Services action covered by this line item. This describes the specific usage of the line item.
If the Scope attribute is set to SKU, this attribute indicates which operation the
PricingRule is modifying. For example, a value of RunInstances:0202 indicates the
operation of running an Amazon EC2 instance.
If the Scope attribute is set to SKU, this attribute indicates which operation
the PricingRule is modifying. For example, a value of RunInstances:0202
indicates the operation of running an Amazon EC2 instance.
public CreatePricingRuleRequest.Builder toBuilder()
toBuilder in interface ToCopyableBuilder<CreatePricingRuleRequest.Builder,CreatePricingRuleRequest>toBuilder in class BillingconductorRequestpublic static CreatePricingRuleRequest.Builder builder()
public static Class<? extends CreatePricingRuleRequest.Builder> serializableBuilderClass()
public final int hashCode()
hashCode in class AwsRequestpublic final boolean equals(Object obj)
equals in class AwsRequestpublic final boolean equalsBySdkFields(Object obj)
equalsBySdkFields in interface SdkPojopublic final String toString()
public final <T> Optional<T> getValueForField(String fieldName, Class<T> clazz)
getValueForField in class SdkRequestCopyright © 2023. All rights reserved.