Package com.twitter.clientlib.model
Class ComplianceJob
- java.lang.Object
-
- com.twitter.clientlib.model.ComplianceJob
-
@Generated("org.openapitools.codegen.languages.JavaClientCodegen") public class ComplianceJob extends Object
ComplianceJob
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classComplianceJob.CustomTypeAdapterFactory
-
Field Summary
Fields Modifier and Type Field Description static HashSet<String>openapiFieldsstatic HashSet<String>openapiRequiredFieldsstatic StringSERIALIZED_NAME_CREATED_ATstatic StringSERIALIZED_NAME_DOWNLOAD_EXPIRES_ATstatic StringSERIALIZED_NAME_DOWNLOAD_URLstatic StringSERIALIZED_NAME_IDstatic StringSERIALIZED_NAME_NAMEstatic StringSERIALIZED_NAME_STATUSstatic StringSERIALIZED_NAME_TYPEstatic StringSERIALIZED_NAME_UPLOAD_EXPIRES_ATstatic StringSERIALIZED_NAME_UPLOAD_URL
-
Constructor Summary
Constructors Constructor Description ComplianceJob()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description ComplianceJobcreatedAt(OffsetDateTime createdAt)ComplianceJobdownloadExpiresAt(OffsetDateTime downloadExpiresAt)ComplianceJobdownloadUrl(URL downloadUrl)booleanequals(Object o)static ComplianceJobfromJson(String jsonString)Create an instance of ComplianceJob given an JSON stringOffsetDateTimegetCreatedAt()Creation time of the compliance job.OffsetDateTimegetDownloadExpiresAt()Expiration time of the download URLURLgetDownloadUrl()URL from which the user will retrieve their compliance resultsStringgetId()Compliance Job IDStringgetName()User-provided name for a compliance jobComplianceJobStatusgetStatus()Get statusComplianceJobTypegetType()Get typeOffsetDateTimegetUploadExpiresAt()Expiration time of the upload URLURLgetUploadUrl()URL to which the user will upload their tweet or user IDsinthashCode()ComplianceJobid(String id)ComplianceJobname(String name)voidsetCreatedAt(OffsetDateTime createdAt)voidsetDownloadExpiresAt(OffsetDateTime downloadExpiresAt)voidsetDownloadUrl(URL downloadUrl)voidsetId(String id)voidsetName(String name)voidsetStatus(ComplianceJobStatus status)voidsetType(ComplianceJobType type)voidsetUploadExpiresAt(OffsetDateTime uploadExpiresAt)voidsetUploadUrl(URL uploadUrl)ComplianceJobstatus(ComplianceJobStatus status)StringtoJson()Convert an instance of ComplianceJob to an JSON stringStringtoString()ComplianceJobtype(ComplianceJobType type)ComplianceJobuploadExpiresAt(OffsetDateTime uploadExpiresAt)ComplianceJobuploadUrl(URL uploadUrl)static voidvalidateJsonObject(com.google.gson.JsonObject jsonObj)Validates the JSON Object and throws an exception if issues found
-
-
-
Field Detail
-
SERIALIZED_NAME_ID
public static final String SERIALIZED_NAME_ID
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_TYPE
public static final String SERIALIZED_NAME_TYPE
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_CREATED_AT
public static final String SERIALIZED_NAME_CREATED_AT
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_UPLOAD_URL
public static final String SERIALIZED_NAME_UPLOAD_URL
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_UPLOAD_EXPIRES_AT
public static final String SERIALIZED_NAME_UPLOAD_EXPIRES_AT
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_DOWNLOAD_URL
public static final String SERIALIZED_NAME_DOWNLOAD_URL
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_DOWNLOAD_EXPIRES_AT
public static final String SERIALIZED_NAME_DOWNLOAD_EXPIRES_AT
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_NAME
public static final String SERIALIZED_NAME_NAME
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_STATUS
public static final String SERIALIZED_NAME_STATUS
- See Also:
- Constant Field Values
-
-
Method Detail
-
id
public ComplianceJob id(String id)
-
setId
public void setId(String id)
-
type
public ComplianceJob type(ComplianceJobType type)
-
getType
@Nonnull public ComplianceJobType getType()
Get type- Returns:
- type
-
setType
public void setType(ComplianceJobType type)
-
createdAt
public ComplianceJob createdAt(OffsetDateTime createdAt)
-
getCreatedAt
@Nonnull public OffsetDateTime getCreatedAt()
Creation time of the compliance job.- Returns:
- createdAt
-
setCreatedAt
public void setCreatedAt(OffsetDateTime createdAt)
-
uploadUrl
public ComplianceJob uploadUrl(URL uploadUrl)
-
getUploadUrl
@Nonnull public URL getUploadUrl()
URL to which the user will upload their tweet or user IDs- Returns:
- uploadUrl
-
setUploadUrl
public void setUploadUrl(URL uploadUrl)
-
uploadExpiresAt
public ComplianceJob uploadExpiresAt(OffsetDateTime uploadExpiresAt)
-
getUploadExpiresAt
@Nonnull public OffsetDateTime getUploadExpiresAt()
Expiration time of the upload URL- Returns:
- uploadExpiresAt
-
setUploadExpiresAt
public void setUploadExpiresAt(OffsetDateTime uploadExpiresAt)
-
downloadUrl
public ComplianceJob downloadUrl(URL downloadUrl)
-
getDownloadUrl
@Nonnull public URL getDownloadUrl()
URL from which the user will retrieve their compliance results- Returns:
- downloadUrl
-
setDownloadUrl
public void setDownloadUrl(URL downloadUrl)
-
downloadExpiresAt
public ComplianceJob downloadExpiresAt(OffsetDateTime downloadExpiresAt)
-
getDownloadExpiresAt
@Nonnull public OffsetDateTime getDownloadExpiresAt()
Expiration time of the download URL- Returns:
- downloadExpiresAt
-
setDownloadExpiresAt
public void setDownloadExpiresAt(OffsetDateTime downloadExpiresAt)
-
name
public ComplianceJob name(String name)
-
setName
public void setName(String name)
-
status
public ComplianceJob status(ComplianceJobStatus status)
-
getStatus
@Nonnull public ComplianceJobStatus getStatus()
Get status- Returns:
- status
-
setStatus
public void setStatus(ComplianceJobStatus status)
-
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 ComplianceJob
-
fromJson
public static ComplianceJob fromJson(String jsonString) throws IOException
Create an instance of ComplianceJob given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of ComplianceJob
- Throws:
IOException- if the JSON string is invalid with respect to ComplianceJob
-
toJson
public String toJson()
Convert an instance of ComplianceJob to an JSON string- Returns:
- JSON string
-
-