Class PricingRuleListElement

    • Method Detail

      • name

        public final String name()

        The name of a pricing rule.

        Returns:
        The name of a pricing rule.
      • arn

        public final String arn()

        The Amazon Resource Name (ARN) used to uniquely identify a pricing rule.

        Returns:
        The Amazon Resource Name (ARN) used to uniquely identify a 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 is globally applicable, or if it is 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 is globally applicable, or if it is service-specific.
        See Also:
        PricingRuleScope
      • scopeAsString

        public final String scopeAsString()

        The scope of pricing rule that indicates if it is globally applicable, or if it is 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 is globally applicable, or if it is service-specific.
        See Also:
        PricingRuleScope
      • modifierPercentage

        public final Double modifierPercentage()

        A percentage modifier applied on the public pricing rates.

        Returns:
        A percentage modifier applied on the public pricing rates.
      • service

        public final String service()

        If the Scope attribute is SERVICE, this attribute indicates which service the PricingRule is applicable for.

        Returns:
        If the Scope attribute is SERVICE, this attribute indicates which service the PricingRule is applicable for.
      • associatedPricingPlanCount

        public final Long associatedPricingPlanCount()

        The pricing plans count that this pricing rule is associated with.

        Returns:
        The pricing plans count that this pricing rule is associated with.
      • creationTime

        public final Long creationTime()

        The time when the pricing rule was created.

        Returns:
        The time when the pricing rule was created.
      • lastModifiedTime

        public final Long lastModifiedTime()

        The most recent time when the pricing rule was modified.

        Returns:
        The most recent time when the pricing rule was modified.
      • 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 Tiering 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.

      • hashCode

        public final int hashCode()
        Overrides:
        hashCode in class Object
      • equals

        public final boolean equals​(Object obj)
        Overrides:
        equals in class Object
      • 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
      • getValueForField

        public final <T> Optional<T> getValueForField​(String fieldName,
                                                      Class<T> clazz)