Class FeedPricebook


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

      • FeedPricebook

        public FeedPricebook()
    • Method Detail

      • setActualInstance

        public void setActualInstance​(Object instance)
        Set the instance that matches the oneOf child schema, check the instance parameter is valid against the oneOf child schemas: PriceBookBase, PriceBookChild

        It could be an instance of the 'oneOf' 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: PriceBookBase, PriceBookChild
        Overrides:
        getActualInstance in class AbstractOpenApiSchema
        Returns:
        The actual instance (PriceBookBase, PriceBookChild)
      • getPriceBookBase

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

        public PriceBookChild getPriceBookChild()
                                         throws ClassCastException
        Get the actual instance of `PriceBookChild`. If the actual instance is not `PriceBookChild`, the ClassCastException will be thrown.
        Returns:
        The actual instance of `PriceBookChild`
        Throws:
        ClassCastException - if the instance is not `PriceBookChild`
      • 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 FeedPricebook
      • fromJson

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

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