Package com.twitter.clientlib.model
Class RulesResponseMetadata
- java.lang.Object
-
- com.twitter.clientlib.model.RulesResponseMetadata
-
@Generated("org.openapitools.codegen.languages.JavaClientCodegen") public class RulesResponseMetadata extends Object
RulesResponseMetadata
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classRulesResponseMetadata.CustomTypeAdapterFactory
-
Field Summary
Fields Modifier and Type Field Description static HashSet<String>openapiFieldsstatic HashSet<String>openapiRequiredFieldsstatic StringSERIALIZED_NAME_NEXT_TOKENstatic StringSERIALIZED_NAME_RESULT_COUNTstatic StringSERIALIZED_NAME_SENTstatic StringSERIALIZED_NAME_SUMMARY
-
Constructor Summary
Constructors Constructor Description RulesResponseMetadata()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object o)static RulesResponseMetadatafromJson(String jsonString)Create an instance of RulesResponseMetadata given an JSON stringStringgetNextToken()This parameter is used to get the next 'page' of results.IntegergetResultCount()Number of Rules in result setStringgetSent()Get sentRulesRequestSummarygetSummary()Get summaryinthashCode()RulesResponseMetadatanextToken(String nextToken)RulesResponseMetadataresultCount(Integer resultCount)RulesResponseMetadatasent(String sent)voidsetNextToken(String nextToken)voidsetResultCount(Integer resultCount)voidsetSent(String sent)voidsetSummary(RulesRequestSummary summary)RulesResponseMetadatasummary(RulesRequestSummary summary)StringtoJson()Convert an instance of RulesResponseMetadata 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_SENT
public static final String SERIALIZED_NAME_SENT
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_SUMMARY
public static final String SERIALIZED_NAME_SUMMARY
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_NEXT_TOKEN
public static final String SERIALIZED_NAME_NEXT_TOKEN
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_RESULT_COUNT
public static final String SERIALIZED_NAME_RESULT_COUNT
- See Also:
- Constant Field Values
-
-
Method Detail
-
sent
public RulesResponseMetadata sent(String sent)
-
setSent
public void setSent(String sent)
-
summary
public RulesResponseMetadata summary(RulesRequestSummary summary)
-
getSummary
@Nullable public RulesRequestSummary getSummary()
Get summary- Returns:
- summary
-
setSummary
public void setSummary(RulesRequestSummary summary)
-
nextToken
public RulesResponseMetadata nextToken(String nextToken)
-
getNextToken
@Nullable public String getNextToken()
This parameter is used to get the next 'page' of results. The value used with the parameter is pulled directly from the response provided by the API, and should not be modified.- Returns:
- nextToken
-
setNextToken
public void setNextToken(String nextToken)
-
resultCount
public RulesResponseMetadata resultCount(Integer resultCount)
-
getResultCount
@Nullable public Integer getResultCount()
Number of Rules in result set- Returns:
- resultCount
-
setResultCount
public void setResultCount(Integer resultCount)
-
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 RulesResponseMetadata
-
fromJson
public static RulesResponseMetadata fromJson(String jsonString) throws IOException
Create an instance of RulesResponseMetadata given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of RulesResponseMetadata
- Throws:
IOException- if the JSON string is invalid with respect to RulesResponseMetadata
-
toJson
public String toJson()
Convert an instance of RulesResponseMetadata to an JSON string- Returns:
- JSON string
-
-