Package com.twitter.clientlib.model
Class CashtagEntity
- java.lang.Object
-
- com.twitter.clientlib.model.CashtagEntity
-
@Generated("org.openapitools.codegen.languages.JavaClientCodegen") public class CashtagEntity extends Object
CashtagEntity
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classCashtagEntity.CustomTypeAdapterFactory
-
Field Summary
Fields Modifier and Type Field Description static HashSet<String>openapiFieldsstatic HashSet<String>openapiRequiredFieldsstatic StringSERIALIZED_NAME_ENDstatic StringSERIALIZED_NAME_STARTstatic StringSERIALIZED_NAME_TAG
-
Constructor Summary
Constructors Constructor Description CashtagEntity()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description CashtagEntityend(Integer end)booleanequals(Object o)static CashtagEntityfromJson(String jsonString)Create an instance of CashtagEntity given an JSON stringIntegergetEnd()Index (zero-based) at which position this entity ends.IntegergetStart()Index (zero-based) at which position this entity starts.StringgetTag()Get taginthashCode()voidsetEnd(Integer end)voidsetStart(Integer start)voidsetTag(String tag)CashtagEntitystart(Integer start)CashtagEntitytag(String tag)StringtoJson()Convert an instance of CashtagEntity to an JSON stringStringtoString()static voidvalidateJsonObject(com.google.gson.JsonObject jsonObj)Validates the JSON Object and throws an exception if issues found
-
-
-
Field Detail
-
SERIALIZED_NAME_START
public static final String SERIALIZED_NAME_START
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_END
public static final String SERIALIZED_NAME_END
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_TAG
public static final String SERIALIZED_NAME_TAG
- See Also:
- Constant Field Values
-
-
Method Detail
-
start
public CashtagEntity start(Integer start)
-
getStart
@Nonnull public Integer getStart()
Index (zero-based) at which position this entity starts. The index is inclusive. minimum: 0- Returns:
- start
-
setStart
public void setStart(Integer start)
-
end
public CashtagEntity end(Integer end)
-
getEnd
@Nonnull public Integer getEnd()
Index (zero-based) at which position this entity ends. The index is exclusive. minimum: 0- Returns:
- end
-
setEnd
public void setEnd(Integer end)
-
tag
public CashtagEntity tag(String tag)
-
setTag
public void setTag(String tag)
-
validateJsonObject
public static void validateJsonObject(com.google.gson.JsonObject jsonObj) throws IOExceptionValidates the JSON Object and throws an exception if issues found- Parameters:
jsonObj- JSON Object- Throws:
IOException- if the JSON Object is invalid with respect to CashtagEntity
-
fromJson
public static CashtagEntity fromJson(String jsonString) throws IOException
Create an instance of CashtagEntity given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of CashtagEntity
- Throws:
IOException- if the JSON string is invalid with respect to CashtagEntity
-
toJson
public String toJson()
Convert an instance of CashtagEntity to an JSON string- Returns:
- JSON string
-
-