Package io.sendon.model
Class SendMessageRequestDtoToInner
- java.lang.Object
-
- io.sendon.model.AbstractOpenApiSchema
-
- io.sendon.model.SendMessageRequestDtoToInner
-
@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen", date="2025-03-25T16:56:04.124507+09:00[Asia/Seoul]", comments="Generator version: 7.7.0") public class SendMessageRequestDtoToInner extends AbstractOpenApiSchema
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classSendMessageRequestDtoToInner.CustomTypeAdapterFactory
-
Constructor Summary
Constructors Constructor Description SendMessageRequestDtoToInner()SendMessageRequestDtoToInner(Object o)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static SendMessageRequestDtoToInnerfromJson(String jsonString)Create an instance of SendMessageRequestDtoToInner given an JSON stringObjectgetActualInstance()Get the actual instance, which can be the following: CsvInfo, Receiver, StringCsvInfogetCsvInfo()Get the actual instance of `CsvInfo`.ReceivergetReceiver()Get the actual instance of `Receiver`.Map<String,Class<?>>getSchemas()Get the list of oneOf/anyOf composed schemas allowed to be stored in this objectStringgetString()Get the actual instance of `String`.voidsetActualInstance(Object instance)Set the instance that matches the oneOf child schema, check the instance parameter is valid against the oneOf child schemas: CsvInfo, Receiver, String It could be an instance of the 'oneOf' schemas.StringtoJson()Convert an instance of SendMessageRequestDtoToInner 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 io.sendon.model.AbstractOpenApiSchema
equals, getActualInstanceRecursively, getSchemaType, hashCode, isNullable, toString
-
-
-
-
Constructor Detail
-
SendMessageRequestDtoToInner
public SendMessageRequestDtoToInner()
-
SendMessageRequestDtoToInner
public SendMessageRequestDtoToInner(Object 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 oneOf child schema, check the instance parameter is valid against the oneOf child schemas: CsvInfo, Receiver, String It could be an instance of the 'oneOf' 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: CsvInfo, Receiver, String- Overrides:
getActualInstancein classAbstractOpenApiSchema- Returns:
- The actual instance (CsvInfo, Receiver, String)
-
getReceiver
public Receiver getReceiver() throws ClassCastException
Get the actual instance of `Receiver`. If the actual instance is not `Receiver`, the ClassCastException will be thrown.- Returns:
- The actual instance of `Receiver`
- Throws:
ClassCastException- if the instance is not `Receiver`
-
getCsvInfo
public CsvInfo getCsvInfo() throws ClassCastException
Get the actual instance of `CsvInfo`. If the actual instance is not `CsvInfo`, the ClassCastException will be thrown.- Returns:
- The actual instance of `CsvInfo`
- Throws:
ClassCastException- if the instance is not `CsvInfo`
-
getString
public String getString() throws ClassCastException
Get the actual instance of `String`. If the actual instance is not `String`, the ClassCastException will be thrown.- Returns:
- The actual instance of `String`
- Throws:
ClassCastException- if the instance is not `String`
-
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 SendMessageRequestDtoToInner
-
fromJson
public static SendMessageRequestDtoToInner fromJson(String jsonString) throws IOException
Create an instance of SendMessageRequestDtoToInner given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of SendMessageRequestDtoToInner
- Throws:
IOException- if the JSON string is invalid with respect to SendMessageRequestDtoToInner
-
toJson
public String toJson()
Convert an instance of SendMessageRequestDtoToInner to an JSON string- Returns:
- JSON string
-
-