Package com.twitter.clientlib.model
Class FieldUnauthorizedProblem
- java.lang.Object
-
- com.twitter.clientlib.model.Problem
-
- com.twitter.clientlib.model.FieldUnauthorizedProblem
-
@Generated("org.openapitools.codegen.languages.JavaClientCodegen") public class FieldUnauthorizedProblem extends Problem
A problem that indicates that you are not allowed to see a particular field on a Tweet, User, etc.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classFieldUnauthorizedProblem.CustomTypeAdapterFactorystatic classFieldUnauthorizedProblem.ResourceTypeEnumGets or Sets resourceTypestatic classFieldUnauthorizedProblem.SectionEnumGets or Sets section
-
Field Summary
Fields Modifier and Type Field Description static HashSet<String>openapiFieldsstatic HashSet<String>openapiRequiredFieldsstatic StringSERIALIZED_NAME_FIELDstatic StringSERIALIZED_NAME_RESOURCE_TYPEstatic StringSERIALIZED_NAME_SECTION-
Fields inherited from class com.twitter.clientlib.model.Problem
SERIALIZED_NAME_DETAIL, SERIALIZED_NAME_STATUS, SERIALIZED_NAME_TITLE, SERIALIZED_NAME_TYPE, type
-
-
Constructor Summary
Constructors Constructor Description FieldUnauthorizedProblem()
-
Method Summary
-
-
-
Field Detail
-
SERIALIZED_NAME_SECTION
public static final String SERIALIZED_NAME_SECTION
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_RESOURCE_TYPE
public static final String SERIALIZED_NAME_RESOURCE_TYPE
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_FIELD
public static final String SERIALIZED_NAME_FIELD
- See Also:
- Constant Field Values
-
-
Method Detail
-
section
public FieldUnauthorizedProblem section(FieldUnauthorizedProblem.SectionEnum section)
-
getSection
@Nonnull public FieldUnauthorizedProblem.SectionEnum getSection()
Get section- Returns:
- section
-
setSection
public void setSection(FieldUnauthorizedProblem.SectionEnum section)
-
resourceType
public FieldUnauthorizedProblem resourceType(FieldUnauthorizedProblem.ResourceTypeEnum resourceType)
-
getResourceType
@Nonnull public FieldUnauthorizedProblem.ResourceTypeEnum getResourceType()
Get resourceType- Returns:
- resourceType
-
setResourceType
public void setResourceType(FieldUnauthorizedProblem.ResourceTypeEnum resourceType)
-
field
public FieldUnauthorizedProblem field(String field)
-
setField
public void setField(String field)
-
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 FieldUnauthorizedProblem
-
fromJson
public static FieldUnauthorizedProblem fromJson(String jsonString) throws IOException
Create an instance of FieldUnauthorizedProblem given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of FieldUnauthorizedProblem
- Throws:
IOException- if the JSON string is invalid with respect to FieldUnauthorizedProblem
-
-