Package com.twitter.clientlib.model
Class CreateComplianceJobRequest
- java.lang.Object
-
- com.twitter.clientlib.model.CreateComplianceJobRequest
-
@Generated("org.openapitools.codegen.languages.JavaClientCodegen") public class CreateComplianceJobRequest extends Object
A request to create a new batch compliance job.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classCreateComplianceJobRequest.CustomTypeAdapterFactorystatic classCreateComplianceJobRequest.TypeEnumType of compliance job to list.
-
Field Summary
Fields Modifier and Type Field Description static HashSet<String>openapiFieldsstatic HashSet<String>openapiRequiredFieldsstatic StringSERIALIZED_NAME_NAMEstatic StringSERIALIZED_NAME_RESUMABLEstatic StringSERIALIZED_NAME_TYPE
-
Constructor Summary
Constructors Constructor Description CreateComplianceJobRequest()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object o)static CreateComplianceJobRequestfromJson(String jsonString)Create an instance of CreateComplianceJobRequest given an JSON stringStringgetName()User-provided name for a compliance job.BooleangetResumable()If true, this endpoint will return a pre-signed URL with resumable uploads enabled.CreateComplianceJobRequest.TypeEnumgetType()Type of compliance job to list.inthashCode()CreateComplianceJobRequestname(String name)CreateComplianceJobRequestresumable(Boolean resumable)voidsetName(String name)voidsetResumable(Boolean resumable)voidsetType(CreateComplianceJobRequest.TypeEnum type)StringtoJson()Convert an instance of CreateComplianceJobRequest to an JSON stringStringtoString()CreateComplianceJobRequesttype(CreateComplianceJobRequest.TypeEnum type)static voidvalidateJsonObject(com.google.gson.JsonObject jsonObj)Validates the JSON Object and throws an exception if issues found
-
-
-
Field Detail
-
SERIALIZED_NAME_NAME
public static final String SERIALIZED_NAME_NAME
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_RESUMABLE
public static final String SERIALIZED_NAME_RESUMABLE
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_TYPE
public static final String SERIALIZED_NAME_TYPE
- See Also:
- Constant Field Values
-
-
Method Detail
-
name
public CreateComplianceJobRequest name(String name)
-
setName
public void setName(String name)
-
resumable
public CreateComplianceJobRequest resumable(Boolean resumable)
-
getResumable
@Nullable public Boolean getResumable()
If true, this endpoint will return a pre-signed URL with resumable uploads enabled.- Returns:
- resumable
-
setResumable
public void setResumable(Boolean resumable)
-
type
public CreateComplianceJobRequest type(CreateComplianceJobRequest.TypeEnum type)
-
getType
@Nonnull public CreateComplianceJobRequest.TypeEnum getType()
Type of compliance job to list.- Returns:
- type
-
setType
public void setType(CreateComplianceJobRequest.TypeEnum type)
-
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 CreateComplianceJobRequest
-
fromJson
public static CreateComplianceJobRequest fromJson(String jsonString) throws IOException
Create an instance of CreateComplianceJobRequest given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of CreateComplianceJobRequest
- Throws:
IOException- if the JSON string is invalid with respect to CreateComplianceJobRequest
-
toJson
public String toJson()
Convert an instance of CreateComplianceJobRequest to an JSON string- Returns:
- JSON string
-
-