Package com.twitter.clientlib.model
Class ResourceUnauthorizedProblem
- java.lang.Object
-
- com.twitter.clientlib.model.Problem
-
- com.twitter.clientlib.model.ResourceUnauthorizedProblem
-
@Generated("org.openapitools.codegen.languages.JavaClientCodegen") public class ResourceUnauthorizedProblem extends ProblemA problem that indicates you are not allowed to see a particular Tweet, User, etc.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classResourceUnauthorizedProblem.CustomTypeAdapterFactorystatic classResourceUnauthorizedProblem.ResourceTypeEnumGets or Sets resourceTypestatic classResourceUnauthorizedProblem.SectionEnumGets or Sets section
-
Field Summary
Fields Modifier and Type Field Description static HashSet<String>openapiFieldsstatic HashSet<String>openapiRequiredFieldsstatic StringSERIALIZED_NAME_PARAMETERstatic StringSERIALIZED_NAME_RESOURCE_IDstatic StringSERIALIZED_NAME_RESOURCE_TYPEstatic StringSERIALIZED_NAME_SECTIONstatic StringSERIALIZED_NAME_VALUE-
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 ResourceUnauthorizedProblem()
-
Method Summary
-
-
-
Field Detail
-
SERIALIZED_NAME_VALUE
public static final String SERIALIZED_NAME_VALUE
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_PARAMETER
public static final String SERIALIZED_NAME_PARAMETER
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_SECTION
public static final String SERIALIZED_NAME_SECTION
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_RESOURCE_ID
public static final String SERIALIZED_NAME_RESOURCE_ID
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_RESOURCE_TYPE
public static final String SERIALIZED_NAME_RESOURCE_TYPE
- See Also:
- Constant Field Values
-
-
Method Detail
-
value
public ResourceUnauthorizedProblem value(String value)
-
getValue
@Nonnull public String getValue()
Get value- Returns:
- value
-
setValue
public void setValue(String value)
-
parameter
public ResourceUnauthorizedProblem parameter(String parameter)
-
getParameter
@Nonnull public String getParameter()
Get parameter- Returns:
- parameter
-
setParameter
public void setParameter(String parameter)
-
section
public ResourceUnauthorizedProblem section(ResourceUnauthorizedProblem.SectionEnum section)
-
getSection
@Nonnull public ResourceUnauthorizedProblem.SectionEnum getSection()
Get section- Returns:
- section
-
setSection
public void setSection(ResourceUnauthorizedProblem.SectionEnum section)
-
resourceId
public ResourceUnauthorizedProblem resourceId(String resourceId)
-
getResourceId
@Nonnull public String getResourceId()
Get resourceId- Returns:
- resourceId
-
setResourceId
public void setResourceId(String resourceId)
-
resourceType
public ResourceUnauthorizedProblem resourceType(ResourceUnauthorizedProblem.ResourceTypeEnum resourceType)
-
getResourceType
@Nonnull public ResourceUnauthorizedProblem.ResourceTypeEnum getResourceType()
Get resourceType- Returns:
- resourceType
-
setResourceType
public void setResourceType(ResourceUnauthorizedProblem.ResourceTypeEnum resourceType)
-
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 ResourceUnauthorizedProblem
-
fromJson
public static ResourceUnauthorizedProblem fromJson(String jsonString) throws IOException
Create an instance of ResourceUnauthorizedProblem given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of ResourceUnauthorizedProblem
- Throws:
IOException- if the JSON string is invalid with respect to ResourceUnauthorizedProblem
-
-