@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen", date="2023-06-12T23:33:57.654989Z[Etc/UTC]") public class TemplateVariable extends Object
Modifier and Type | Class and Description |
---|---|
static class |
TemplateVariable.CustomTypeAdapterFactory |
static class |
TemplateVariable.VariableTypeEnum
The type of variable
|
Modifier and Type | Field and Description |
---|---|
static HashSet<String> |
openapiFields |
static HashSet<String> |
openapiRequiredFields |
static String |
SERIALIZED_NAME_NAME |
static String |
SERIALIZED_NAME_VARIABLE_TYPE |
Constructor and Description |
---|
TemplateVariable() |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object o) |
static TemplateVariable |
fromJson(String jsonString)
Create an instance of TemplateVariable given an JSON string
|
String |
getName()
Name of variable.
|
TemplateVariable.VariableTypeEnum |
getVariableType()
The type of variable
|
int |
hashCode() |
TemplateVariable |
name(String name) |
void |
setName(String name) |
void |
setVariableType(TemplateVariable.VariableTypeEnum variableType) |
String |
toJson()
Convert an instance of TemplateVariable to an JSON string
|
String |
toString() |
static void |
validateJsonObject(com.google.gson.JsonObject jsonObj)
Validates the JSON Object and throws an exception if issues found
|
TemplateVariable |
variableType(TemplateVariable.VariableTypeEnum variableType) |
public static final String SERIALIZED_NAME_NAME
public static final String SERIALIZED_NAME_VARIABLE_TYPE
public TemplateVariable name(String name)
@Nonnull public String getName()
public void setName(String name)
public TemplateVariable variableType(TemplateVariable.VariableTypeEnum variableType)
@Nonnull public TemplateVariable.VariableTypeEnum getVariableType()
public void setVariableType(TemplateVariable.VariableTypeEnum variableType)
public static void validateJsonObject(com.google.gson.JsonObject jsonObj) throws IOException
jsonObj
- JSON ObjectIOException
- if the JSON Object is invalid with respect to TemplateVariablepublic static TemplateVariable fromJson(String jsonString) throws IOException
jsonString
- JSON stringIOException
- if the JSON string is invalid with respect to TemplateVariablepublic String toJson()
Copyright © 2023. All rights reserved.