Class FeedPricesTierPricesInner


  • @Generated(value="org.openapitools.codegen.languages.JavaClientCodegen",
               comments="Generator version: 7.4.0")
    public class FeedPricesTierPricesInner
    extends AbstractOpenApiSchema
    • Constructor Detail

      • FeedPricesTierPricesInner

        public FeedPricesTierPricesInner()
      • FeedPricesTierPricesInner

        public FeedPricesTierPricesInner​(TierFinalPrice o)
      • FeedPricesTierPricesInner

        public FeedPricesTierPricesInner​(TierPercentage o)
    • Method Detail

      • setActualInstance

        public void setActualInstance​(Object instance)
        Set the instance that matches the anyOf child schema, check the instance parameter is valid against the anyOf child schemas: TierFinalPrice, TierPercentage

        It could be an instance of the 'anyOf' schemas.

        Overrides:
        setActualInstance in class AbstractOpenApiSchema
        Parameters:
        instance - the actual instance of the schema/object
      • getActualInstance

        public Object getActualInstance()
        Get the actual instance, which can be the following: TierFinalPrice, TierPercentage
        Overrides:
        getActualInstance in class AbstractOpenApiSchema
        Returns:
        The actual instance (TierFinalPrice, TierPercentage)
      • getTierFinalPrice

        public TierFinalPrice getTierFinalPrice()
                                         throws ClassCastException
        Get the actual instance of `TierFinalPrice`. If the actual instance is not `TierFinalPrice`, the ClassCastException will be thrown.
        Returns:
        The actual instance of `TierFinalPrice`
        Throws:
        ClassCastException - if the instance is not `TierFinalPrice`
      • getTierPercentage

        public TierPercentage getTierPercentage()
                                         throws ClassCastException
        Get the actual instance of `TierPercentage`. If the actual instance is not `TierPercentage`, the ClassCastException will be thrown.
        Returns:
        The actual instance of `TierPercentage`
        Throws:
        ClassCastException - if the instance is not `TierPercentage`
      • validateJsonElement

        public static void validateJsonElement​(com.google.gson.JsonElement jsonElement)
                                        throws IOException
        Validates the JSON Element and throws an exception if issues found
        Parameters:
        jsonElement - JSON Element
        Throws:
        IOException - if the JSON Element is invalid with respect to FeedPricesTierPricesInner
      • fromJson

        public static FeedPricesTierPricesInner fromJson​(String jsonString)
                                                  throws IOException
        Create an instance of FeedPricesTierPricesInner given an JSON string
        Parameters:
        jsonString - JSON string
        Returns:
        An instance of FeedPricesTierPricesInner
        Throws:
        IOException - if the JSON string is invalid with respect to FeedPricesTierPricesInner
      • toJson

        public String toJson()
        Convert an instance of FeedPricesTierPricesInner to an JSON string
        Returns:
        JSON string