Package org.openapitools.client.model
Class UpdateTopicData
- java.lang.Object
-
- org.openapitools.client.model.UpdateTopicData
-
@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen", date="2024-03-29T12:34:27.506198300-05:00[America/Chicago]", comments="Generator version: 7.4.0") public class UpdateTopicData extends Object
UpdateTopicData
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classUpdateTopicData.CustomTypeAdapterFactory
-
Field Summary
Fields Modifier and Type Field Description static HashSet<String>openapiFieldsstatic HashSet<String>openapiRequiredFieldsstatic StringSERIALIZED_NAME_NAMEstatic StringSERIALIZED_NAME_TOPIC_ID
-
Constructor Summary
Constructors Constructor Description UpdateTopicData()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object o)static UpdateTopicDatafromJson(String jsonString)Create an instance of UpdateTopicData given an JSON string@NotNull StringgetName()The new name of the topic.@NotNull @Valid UUIDgetTopicId()The id of the topic to target.inthashCode()UpdateTopicDataname(String name)voidsetName(String name)voidsetTopicId(UUID topicId)StringtoJson()Convert an instance of UpdateTopicData to an JSON stringUpdateTopicDatatopicId(UUID topicId)StringtoString()static voidvalidateJsonElement(com.google.gson.JsonElement jsonElement)Validates the JSON Element and throws an exception if issues found
-
-
-
Field Detail
-
SERIALIZED_NAME_NAME
public static final String SERIALIZED_NAME_NAME
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_TOPIC_ID
public static final String SERIALIZED_NAME_TOPIC_ID
- See Also:
- Constant Field Values
-
-
Method Detail
-
name
public UpdateTopicData name(String name)
-
getName
@Nonnull @NotNull public @NotNull String getName()
The new name of the topic. A name is not generated from this field, it is used as-is.- Returns:
- name
-
setName
public void setName(String name)
-
topicId
public UpdateTopicData topicId(UUID topicId)
-
getTopicId
@Nonnull @NotNull @Valid public @NotNull @Valid UUID getTopicId()
The id of the topic to target.- Returns:
- topicId
-
setTopicId
public void setTopicId(UUID topicId)
-
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 UpdateTopicData
-
fromJson
public static UpdateTopicData fromJson(String jsonString) throws IOException
Create an instance of UpdateTopicData given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of UpdateTopicData
- Throws:
IOException- if the JSON string is invalid with respect to UpdateTopicData
-
toJson
public String toJson()
Convert an instance of UpdateTopicData to an JSON string- Returns:
- JSON string
-
-