Package com.twitter.clientlib.model
Class RulesRequestSummaryOneOf
- java.lang.Object
-
- com.twitter.clientlib.model.RulesRequestSummaryOneOf
-
@Generated("org.openapitools.codegen.languages.JavaClientCodegen") public class RulesRequestSummaryOneOf extends Object
A summary of the results of the addition of user-specified stream filtering rules.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classRulesRequestSummaryOneOf.CustomTypeAdapterFactory
-
Field Summary
Fields Modifier and Type Field Description static HashSet<String>openapiFieldsstatic HashSet<String>openapiRequiredFieldsstatic StringSERIALIZED_NAME_CREATEDstatic StringSERIALIZED_NAME_INVALIDstatic StringSERIALIZED_NAME_NOT_CREATEDstatic StringSERIALIZED_NAME_VALID
-
Constructor Summary
Constructors Constructor Description RulesRequestSummaryOneOf()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description RulesRequestSummaryOneOfcreated(Integer created)booleanequals(Object o)static RulesRequestSummaryOneOffromJson(String jsonString)Create an instance of RulesRequestSummaryOneOf given an JSON stringIntegergetCreated()Number of user-specified stream filtering rules that were created.IntegergetInvalid()Number of invalid user-specified stream filtering rules.IntegergetNotCreated()Number of user-specified stream filtering rules that were not created.IntegergetValid()Number of valid user-specified stream filtering rules.inthashCode()RulesRequestSummaryOneOfinvalid(Integer invalid)RulesRequestSummaryOneOfnotCreated(Integer notCreated)voidsetCreated(Integer created)voidsetInvalid(Integer invalid)voidsetNotCreated(Integer notCreated)voidsetValid(Integer valid)StringtoJson()Convert an instance of RulesRequestSummaryOneOf to an JSON stringStringtoString()RulesRequestSummaryOneOfvalid(Integer valid)static voidvalidateJsonObject(com.google.gson.JsonObject jsonObj)Validates the JSON Object and throws an exception if issues found
-
-
-
Field Detail
-
SERIALIZED_NAME_CREATED
public static final String SERIALIZED_NAME_CREATED
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_NOT_CREATED
public static final String SERIALIZED_NAME_NOT_CREATED
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_VALID
public static final String SERIALIZED_NAME_VALID
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_INVALID
public static final String SERIALIZED_NAME_INVALID
- See Also:
- Constant Field Values
-
-
Method Detail
-
created
public RulesRequestSummaryOneOf created(Integer created)
-
getCreated
@Nonnull public Integer getCreated()
Number of user-specified stream filtering rules that were created.- Returns:
- created
-
setCreated
public void setCreated(Integer created)
-
notCreated
public RulesRequestSummaryOneOf notCreated(Integer notCreated)
-
getNotCreated
@Nonnull public Integer getNotCreated()
Number of user-specified stream filtering rules that were not created.- Returns:
- notCreated
-
setNotCreated
public void setNotCreated(Integer notCreated)
-
valid
public RulesRequestSummaryOneOf valid(Integer valid)
-
getValid
@Nonnull public Integer getValid()
Number of valid user-specified stream filtering rules.- Returns:
- valid
-
setValid
public void setValid(Integer valid)
-
invalid
public RulesRequestSummaryOneOf invalid(Integer invalid)
-
getInvalid
@Nonnull public Integer getInvalid()
Number of invalid user-specified stream filtering rules.- Returns:
- invalid
-
setInvalid
public void setInvalid(Integer invalid)
-
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 RulesRequestSummaryOneOf
-
fromJson
public static RulesRequestSummaryOneOf fromJson(String jsonString) throws IOException
Create an instance of RulesRequestSummaryOneOf given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of RulesRequestSummaryOneOf
- Throws:
IOException- if the JSON string is invalid with respect to RulesRequestSummaryOneOf
-
toJson
public String toJson()
Convert an instance of RulesRequestSummaryOneOf to an JSON string- Returns:
- JSON string
-
-