Class CreatePricingRuleRequest

    • 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, scope will return PricingRuleScope.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available from scopeAsString().

        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, scope will return PricingRuleScope.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available from scopeAsString().

        Returns:
        The scope of pricing rule that indicates if it's globally applicable, or it's service-specific.
        See Also:
        PricingRuleScope
      • 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 Scope attribute is set to SERVICE or SKU, the attribute indicates which service the PricingRule is applicable for.

        Returns:
        If the Scope attribute is set to SERVICE or SKU, the attribute indicates which service the PricingRule is 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 the 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.
      • 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 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> 
         
        Returns:
        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> 
      • 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 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.

        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 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.

      • 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.
        Overrides:
        toString in class Object