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 class
ComplianceJob.CustomTypeAdapterFactory
-
Field Summary
Fields Modifier and Type Field Description static HashSet<String>
openapiFields
static HashSet<String>
openapiRequiredFields
static String
SERIALIZED_NAME_CREATED_AT
static String
SERIALIZED_NAME_DOWNLOAD_EXPIRES_AT
static String
SERIALIZED_NAME_DOWNLOAD_URL
static String
SERIALIZED_NAME_ID
static String
SERIALIZED_NAME_NAME
static String
SERIALIZED_NAME_STATUS
static String
SERIALIZED_NAME_TYPE
static String
SERIALIZED_NAME_UPLOAD_EXPIRES_AT
static String
SERIALIZED_NAME_UPLOAD_URL
-
Constructor Summary
Constructors Constructor Description ComplianceJob()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description ComplianceJob
createdAt(OffsetDateTime createdAt)
ComplianceJob
downloadExpiresAt(OffsetDateTime downloadExpiresAt)
ComplianceJob
downloadUrl(URL downloadUrl)
boolean
equals(Object o)
static ComplianceJob
fromJson(String jsonString)
Create an instance of ComplianceJob given an JSON stringOffsetDateTime
getCreatedAt()
Creation time of the compliance job.OffsetDateTime
getDownloadExpiresAt()
Expiration time of the download URL.URL
getDownloadUrl()
URL from which the user will retrieve their compliance results.String
getId()
Compliance Job ID.String
getName()
User-provided name for a compliance job.ComplianceJobStatus
getStatus()
Get statusComplianceJobType
getType()
Get typeOffsetDateTime
getUploadExpiresAt()
Expiration time of the upload URL.URL
getUploadUrl()
URL to which the user will upload their Tweet or user IDs.int
hashCode()
ComplianceJob
id(String id)
ComplianceJob
name(String name)
void
setCreatedAt(OffsetDateTime createdAt)
void
setDownloadExpiresAt(OffsetDateTime downloadExpiresAt)
void
setDownloadUrl(URL downloadUrl)
void
setId(String id)
void
setName(String name)
void
setStatus(ComplianceJobStatus status)
void
setType(ComplianceJobType type)
void
setUploadExpiresAt(OffsetDateTime uploadExpiresAt)
void
setUploadUrl(URL uploadUrl)
ComplianceJob
status(ComplianceJobStatus status)
String
toJson()
Convert an instance of ComplianceJob to an JSON stringString
toString()
ComplianceJob
type(ComplianceJobType type)
ComplianceJob
uploadExpiresAt(OffsetDateTime uploadExpiresAt)
ComplianceJob
uploadUrl(URL uploadUrl)
static void
validateJsonObject(com.google.gson.JsonObject jsonObj)
Validates the JSON Object and throws an exception if issues found
-
-
-
Field Detail
-
SERIALIZED_NAME_CREATED_AT
public static final String SERIALIZED_NAME_CREATED_AT
- 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_DOWNLOAD_URL
public static final String SERIALIZED_NAME_DOWNLOAD_URL
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_ID
public static final String SERIALIZED_NAME_ID
- 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
-
SERIALIZED_NAME_TYPE
public static final String SERIALIZED_NAME_TYPE
- 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_UPLOAD_URL
public static final String SERIALIZED_NAME_UPLOAD_URL
- See Also:
- Constant Field Values
-
-
Method Detail
-
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)
-
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)
-
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)
-
id
public ComplianceJob id(String id)
-
setId
public void setId(String id)
-
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)
-
type
public ComplianceJob type(ComplianceJobType type)
-
getType
@Nonnull public ComplianceJobType getType()
Get type- Returns:
- type
-
setType
public void setType(ComplianceJobType type)
-
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)
-
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)
-
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 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
-
-