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 class
RulesRequestSummaryOneOf.CustomTypeAdapterFactory
-
Field Summary
Fields Modifier and Type Field Description static HashSet<String>
openapiFields
static HashSet<String>
openapiRequiredFields
static String
SERIALIZED_NAME_CREATED
static String
SERIALIZED_NAME_INVALID
static String
SERIALIZED_NAME_NOT_CREATED
static String
SERIALIZED_NAME_VALID
-
Constructor Summary
Constructors Constructor Description RulesRequestSummaryOneOf()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description RulesRequestSummaryOneOf
created(Integer created)
boolean
equals(Object o)
static RulesRequestSummaryOneOf
fromJson(String jsonString)
Create an instance of RulesRequestSummaryOneOf given an JSON stringInteger
getCreated()
Number of user-specified stream filtering rules that were created.Integer
getInvalid()
Number of invalid user-specified stream filtering rules.Integer
getNotCreated()
Number of user-specified stream filtering rules that were not created.Integer
getValid()
Number of valid user-specified stream filtering rules.int
hashCode()
RulesRequestSummaryOneOf
invalid(Integer invalid)
RulesRequestSummaryOneOf
notCreated(Integer notCreated)
void
setCreated(Integer created)
void
setInvalid(Integer invalid)
void
setNotCreated(Integer notCreated)
void
setValid(Integer valid)
String
toJson()
Convert an instance of RulesRequestSummaryOneOf to an JSON stringString
toString()
RulesRequestSummaryOneOf
valid(Integer valid)
static void
validateJsonObject(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_INVALID
public static final String SERIALIZED_NAME_INVALID
- 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
-
-
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)
-
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)
-
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)
-
validateJsonObject
public static void validateJsonObject(com.google.gson.JsonObject jsonObj) throws IOException
Validates 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
-
-