Package com.adobe.aco.model
Class FeedPricesDiscountsInner
- java.lang.Object
-
- com.adobe.aco.model.AbstractOpenApiSchema
-
- com.adobe.aco.model.FeedPricesDiscountsInner
-
@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen", comments="Generator version: 7.4.0") public class FeedPricesDiscountsInner extends AbstractOpenApiSchema
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classFeedPricesDiscountsInner.CustomTypeAdapterFactory
-
Constructor Summary
Constructors Constructor Description FeedPricesDiscountsInner()FeedPricesDiscountsInner(DiscountsFinalPrice o)FeedPricesDiscountsInner(DiscountsPercentage o)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static FeedPricesDiscountsInnerfromJson(String jsonString)Create an instance of FeedPricesDiscountsInner given an JSON stringObjectgetActualInstance()Get the actual instance, which can be the following: DiscountsFinalPrice, DiscountsPercentageDiscountsFinalPricegetDiscountsFinalPrice()Get the actual instance of `DiscountsFinalPrice`.DiscountsPercentagegetDiscountsPercentage()Get the actual instance of `DiscountsPercentage`.Map<String,Class<?>>getSchemas()Get the list of oneOf/anyOf composed schemas allowed to be stored in this objectvoidsetActualInstance(Object instance)Set the instance that matches the anyOf child schema, check the instance parameter is valid against the anyOf child schemas: DiscountsFinalPrice, DiscountsPercentageStringtoJson()Convert an instance of FeedPricesDiscountsInner to an JSON stringstatic voidvalidateJsonElement(com.google.gson.JsonElement jsonElement)Validates the JSON Element and throws an exception if issues found-
Methods inherited from class com.adobe.aco.model.AbstractOpenApiSchema
equals, getActualInstanceRecursively, getSchemaType, hashCode, isNullable, toString
-
-
-
-
Constructor Detail
-
FeedPricesDiscountsInner
public FeedPricesDiscountsInner()
-
FeedPricesDiscountsInner
public FeedPricesDiscountsInner(DiscountsFinalPrice o)
-
FeedPricesDiscountsInner
public FeedPricesDiscountsInner(DiscountsPercentage o)
-
-
Method Detail
-
getSchemas
public Map<String,Class<?>> getSchemas()
Description copied from class:AbstractOpenApiSchemaGet the list of oneOf/anyOf composed schemas allowed to be stored in this object- Specified by:
getSchemasin classAbstractOpenApiSchema- Returns:
- an instance of the actual schema/object
-
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: DiscountsFinalPrice, DiscountsPercentageIt could be an instance of the 'anyOf' schemas.
- Overrides:
setActualInstancein classAbstractOpenApiSchema- Parameters:
instance- the actual instance of the schema/object
-
getActualInstance
public Object getActualInstance()
Get the actual instance, which can be the following: DiscountsFinalPrice, DiscountsPercentage- Overrides:
getActualInstancein classAbstractOpenApiSchema- Returns:
- The actual instance (DiscountsFinalPrice, DiscountsPercentage)
-
getDiscountsFinalPrice
public DiscountsFinalPrice getDiscountsFinalPrice() throws ClassCastException
Get the actual instance of `DiscountsFinalPrice`. If the actual instance is not `DiscountsFinalPrice`, the ClassCastException will be thrown.- Returns:
- The actual instance of `DiscountsFinalPrice`
- Throws:
ClassCastException- if the instance is not `DiscountsFinalPrice`
-
getDiscountsPercentage
public DiscountsPercentage getDiscountsPercentage() throws ClassCastException
Get the actual instance of `DiscountsPercentage`. If the actual instance is not `DiscountsPercentage`, the ClassCastException will be thrown.- Returns:
- The actual instance of `DiscountsPercentage`
- Throws:
ClassCastException- if the instance is not `DiscountsPercentage`
-
validateJsonElement
public static void validateJsonElement(com.google.gson.JsonElement jsonElement) throws IOExceptionValidates 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 FeedPricesDiscountsInner
-
fromJson
public static FeedPricesDiscountsInner fromJson(String jsonString) throws IOException
Create an instance of FeedPricesDiscountsInner given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of FeedPricesDiscountsInner
- Throws:
IOException- if the JSON string is invalid with respect to FeedPricesDiscountsInner
-
toJson
public String toJson()
Convert an instance of FeedPricesDiscountsInner to an JSON string- Returns:
- JSON string
-
-