Package io.voucherify.client.model
Class SimpleSegment
java.lang.Object
io.voucherify.client.model.SimpleSegment
@Generated("org.openapitools.codegen.languages.JavaClientCodegen")
public class SimpleSegment
extends Object
SimpleSegment
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classstatic enumThe type of the object represented by the ID. -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription_object(SimpleSegment.ObjectEnum _object) booleanstatic SimpleSegmentCreate an instance of SimpleSegment given an JSON stringgetId()Unique segment ID.getName()Segment name.The type of the object represented by the ID.inthashCode()voidvoidvoidsetObject(SimpleSegment.ObjectEnum _object) toJson()Convert an instance of SimpleSegment to an JSON stringtoString()
-
Field Details
-
SERIALIZED_NAME_ID
- See Also:
-
SERIALIZED_NAME_NAME
- See Also:
-
SERIALIZED_NAME_OBJECT
- See Also:
-
openapiFields
-
openapiRequiredFields
-
-
Constructor Details
-
SimpleSegment
public SimpleSegment()
-
-
Method Details
-
id
-
getId
Unique segment ID.- Returns:
- id
-
setId
-
name
-
getName
Segment name.- Returns:
- name
-
setName
-
_object
-
getObject
The type of the object represented by the ID.- Returns:
- _object
-
setObject
-
equals
-
hashCode
public int hashCode() -
toString
-
fromJson
Create an instance of SimpleSegment given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of SimpleSegment
- Throws:
IOException- if the JSON string is invalid with respect to SimpleSegment
-
toJson
Convert an instance of SimpleSegment to an JSON string- Returns:
- JSON string
-