Package com.twitter.clientlib.model
Class DisallowedResourceProblem
- java.lang.Object
-
- com.twitter.clientlib.model.Problem
-
- com.twitter.clientlib.model.DisallowedResourceProblem
-
@Generated("org.openapitools.codegen.languages.JavaClientCodegen") public class DisallowedResourceProblem extends Problem
A problem that indicates that the resource requested violates the precepts of this API.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
DisallowedResourceProblem.CustomTypeAdapterFactory
static class
DisallowedResourceProblem.ResourceTypeEnum
Gets or Sets resourceTypestatic class
DisallowedResourceProblem.SectionEnum
Gets or Sets section
-
Field Summary
Fields Modifier and Type Field Description static HashSet<String>
openapiFields
static HashSet<String>
openapiRequiredFields
static String
SERIALIZED_NAME_RESOURCE_ID
static String
SERIALIZED_NAME_RESOURCE_TYPE
static String
SERIALIZED_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 DisallowedResourceProblem()
-
Method Summary
-
-
-
Field Detail
-
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
-
SERIALIZED_NAME_SECTION
public static final String SERIALIZED_NAME_SECTION
- See Also:
- Constant Field Values
-
-
Method Detail
-
resourceId
public DisallowedResourceProblem resourceId(String resourceId)
-
setResourceId
public void setResourceId(String resourceId)
-
resourceType
public DisallowedResourceProblem resourceType(DisallowedResourceProblem.ResourceTypeEnum resourceType)
-
getResourceType
@Nonnull public DisallowedResourceProblem.ResourceTypeEnum getResourceType()
Get resourceType- Returns:
- resourceType
-
setResourceType
public void setResourceType(DisallowedResourceProblem.ResourceTypeEnum resourceType)
-
section
public DisallowedResourceProblem section(DisallowedResourceProblem.SectionEnum section)
-
getSection
@Nonnull public DisallowedResourceProblem.SectionEnum getSection()
Get section- Returns:
- section
-
setSection
public void setSection(DisallowedResourceProblem.SectionEnum section)
-
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 DisallowedResourceProblem
-
fromJson
public static DisallowedResourceProblem fromJson(String jsonString) throws IOException
Create an instance of DisallowedResourceProblem given an JSON string- Parameters:
jsonString
- JSON string- Returns:
- An instance of DisallowedResourceProblem
- Throws:
IOException
- if the JSON string is invalid with respect to DisallowedResourceProblem
-
-