Class CreatePricingRuleRequest
- java.lang.Object
-
- software.amazon.awssdk.core.SdkRequest
-
- software.amazon.awssdk.awscore.AwsRequest
-
- software.amazon.awssdk.services.billingconductor.model.BillingconductorRequest
-
- software.amazon.awssdk.services.billingconductor.model.CreatePricingRuleRequest
-
- All Implemented Interfaces:
SdkPojo,ToCopyableBuilder<CreatePricingRuleRequest.Builder,CreatePricingRuleRequest>
@Generated("software.amazon.awssdk:codegen") public final class CreatePricingRuleRequest extends BillingconductorRequest implements ToCopyableBuilder<CreatePricingRuleRequest.Builder,CreatePricingRuleRequest>
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceCreatePricingRuleRequest.Builder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description StringbillingEntity()The seller of services provided by Amazon Web Services, their affiliates, or third-party providers selling services via Amazon Web Services Marketplace.static CreatePricingRuleRequest.Builderbuilder()StringclientToken()The token that's needed to support idempotency.Stringdescription()The pricing rule description.booleanequals(Object obj)booleanequalsBySdkFields(Object obj)<T> Optional<T>getValueForField(String fieldName, Class<T> clazz)inthashCode()booleanhasTags()For responses, this returns true if the service returned a value for the Tags property.DoublemodifierPercentage()A percentage modifier that's applied on the public pricing rates.Stringname()The pricing rule name.Stringoperation()Operation is the specific Amazon Web Services action covered by this line item.PricingRuleScopescope()The scope of pricing rule that indicates if it's globally applicable, or it's service-specific.StringscopeAsString()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()Stringservice()If theScopeattribute is set toSERVICEorSKU, the attribute indicates which service thePricingRuleis applicable for.Map<String,String>tags()A map that contains tag keys and tag values that are attached to a pricing rule.CreateTieringInputtiering()The set of tiering configurations for the pricing rule.CreatePricingRuleRequest.BuildertoBuilder()StringtoString()Returns a string representation of this object.PricingRuleTypetype()The type of pricing rule.StringtypeAsString()The type of pricing rule.StringusageType()Usage type is the unit that each service uses to measure the usage of a specific type of resource.-
Methods inherited from class software.amazon.awssdk.awscore.AwsRequest
overrideConfiguration
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface software.amazon.awssdk.utils.builder.ToCopyableBuilder
copy
-
-
-
-
Method Detail
-
clientToken
public final String clientToken()
The token that's needed to support idempotency. Idempotency isn't currently supported, but will be implemented in a future update.
- Returns:
- The token that's needed to support idempotency. Idempotency isn't currently supported, but will be implemented in a future update.
-
name
public final String name()
The pricing rule name. The names must be unique to each pricing rule.
- Returns:
- The pricing rule name. The names must be unique to each pricing rule.
-
description
public final String description()
The pricing rule description.
- Returns:
- The pricing rule description.
-
scope
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,
scopewill returnPricingRuleScope.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromscopeAsString().- Returns:
- The scope of pricing rule that indicates if it's globally applicable, or it's service-specific.
- See Also:
PricingRuleScope
-
scopeAsString
public 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,
scopewill returnPricingRuleScope.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromscopeAsString().- Returns:
- The scope of pricing rule that indicates if it's globally applicable, or it's service-specific.
- See Also:
PricingRuleScope
-
type
public final PricingRuleType type()
The type of pricing rule.
If the service returns an enum value that is not available in the current SDK version,
typewill returnPricingRuleType.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromtypeAsString().- Returns:
- The type of pricing rule.
- See Also:
PricingRuleType
-
typeAsString
public final String typeAsString()
The type of pricing rule.
If the service returns an enum value that is not available in the current SDK version,
typewill returnPricingRuleType.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromtypeAsString().- Returns:
- The type of pricing rule.
- See Also:
PricingRuleType
-
modifierPercentage
public final Double modifierPercentage()
A percentage modifier that's applied on the public pricing rates.
- Returns:
- A percentage modifier that's applied on the public pricing rates.
-
service
public final String service()
If the
Scopeattribute is set toSERVICEorSKU, the attribute indicates which service thePricingRuleis applicable for.- Returns:
- If the
Scopeattribute is set toSERVICEorSKU, the attribute indicates which service thePricingRuleis applicable for.
-
hasTags
public final boolean hasTags()
For responses, this returns true if the service returned a value for the Tags property. This DOES NOT check that the value is non-empty (for which, you should check theisEmpty()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.
-
tags
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.- Returns:
- A map that contains tag keys and tag values that are attached to a pricing rule.
-
billingEntity
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.
- Returns:
- The seller of services provided by Amazon Web Services, their affiliates, or third-party providers selling services via Amazon Web Services Marketplace.
-
tiering
public final CreateTieringInput tiering()
The set of tiering configurations for the pricing rule.
- Returns:
- The set of tiering configurations for the pricing rule.
-
usageType
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
Scopeattribute is set toSKU, this attribute indicates which usage type thePricingRuleis modifying. For example,USW2-BoxUsage:m2.2xlargedescribes anM2 High Memory Double Extra Largeinstance in the US West (Oregon) Region.</p>- Returns:
- Usage type is the unit that each service uses to measure the usage of a specific type of resource.
If the
Scopeattribute is set toSKU, this attribute indicates which usage type thePricingRuleis modifying. For example,USW2-BoxUsage:m2.2xlargedescribes anM2 High Memory Double Extra Largeinstance in the US West (Oregon) Region.</p>
-
operation
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
Scopeattribute is set toSKU, this attribute indicates which operation thePricingRuleis modifying. For example, a value ofRunInstances:0202indicates the operation of running an Amazon EC2 instance.- Returns:
- Operation is the specific Amazon Web Services action covered by this line item. This describes the
specific usage of the line item.
If the
Scopeattribute is set toSKU, this attribute indicates which operation thePricingRuleis modifying. For example, a value ofRunInstances:0202indicates the operation of running an Amazon EC2 instance.
-
toBuilder
public CreatePricingRuleRequest.Builder toBuilder()
- Specified by:
toBuilderin interfaceToCopyableBuilder<CreatePricingRuleRequest.Builder,CreatePricingRuleRequest>- Specified by:
toBuilderin classBillingconductorRequest
-
builder
public static CreatePricingRuleRequest.Builder builder()
-
serializableBuilderClass
public static Class<? extends CreatePricingRuleRequest.Builder> serializableBuilderClass()
-
hashCode
public final int hashCode()
- Overrides:
hashCodein classAwsRequest
-
equals
public final boolean equals(Object obj)
- Overrides:
equalsin classAwsRequest
-
equalsBySdkFields
public final boolean equalsBySdkFields(Object obj)
- Specified by:
equalsBySdkFieldsin interfaceSdkPojo
-
toString
public final String toString()
Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be redacted from this string using a placeholder value.
-
getValueForField
public final <T> Optional<T> getValueForField(String fieldName, Class<T> clazz)
- Overrides:
getValueForFieldin classSdkRequest
-
-