Class RedactionJob
- All Implemented Interfaces:
HasId,StripeActiveObject,StripeObjectInterface
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classThe objects to redact, grouped by type.Nested classes/interfaces inherited from class com.stripe.net.ApiResource
ApiResource.RequestMethod -
Field Summary
Fields inherited from class com.stripe.net.ApiResource
CHARSET, GSON, INTERNAL_GSONFields inherited from class com.stripe.model.StripeObject
PRETTY_PRINT_GSON -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncancel()You can cancel a redaction job when it’s in one of these statuses:ready,failed.cancel(RequestOptions options) You can cancel a redaction job when it’s in one of these statuses:ready,failed.cancel(RedactionJobCancelParams params) You can cancel a redaction job when it’s in one of these statuses:ready,failed.cancel(RedactionJobCancelParams params, RequestOptions options) You can cancel a redaction job when it’s in one of these statuses:ready,failed.You can cancel a redaction job when it’s in one of these statuses:ready,failed.cancel(Map<String, Object> params, RequestOptions options) You can cancel a redaction job when it’s in one of these statuses:ready,failed.protected booleanstatic RedactionJobcreate(RedactionJobCreateParams params) Creates a redaction job.static RedactionJobcreate(RedactionJobCreateParams params, RequestOptions options) Creates a redaction job.static RedactionJobCreates a redaction job.static RedactionJobcreate(Map<String, Object> params, RequestOptions options) Creates a redaction job.booleanTime at which the object was created.getId()Unique identifier for the object.Has the valuetrueif the object exists in live mode or the valuefalseif the object exists in test mode.String representing the object's type.The objects to redact in this job.The status of the job.Validation behavior determines how a job validates objects for redaction eligibility.inthashCode()static RedactionJobCollectionlist(RedactionJobListParams params) Returns a list of redaction jobs.static RedactionJobCollectionlist(RedactionJobListParams params, RequestOptions options) Returns a list of redaction jobs.static RedactionJobCollectionReturns a list of redaction jobs.static RedactionJobCollectionlist(Map<String, Object> params, RequestOptions options) Returns a list of redaction jobs.static RedactionJobRetrieves the details of a previously created redaction job.static RedactionJobretrieve(String job, RequestOptions options) Retrieves the details of a previously created redaction job.static RedactionJobretrieve(String job, RedactionJobRetrieveParams params, RequestOptions options) Retrieves the details of a previously created redaction job.static RedactionJobRetrieves the details of a previously created redaction job.run()Run a redaction job in areadystatus.run(RequestOptions options) Run a redaction job in areadystatus.run(RedactionJobRunParams params) Run a redaction job in areadystatus.run(RedactionJobRunParams params, RequestOptions options) Run a redaction job in areadystatus.Run a redaction job in areadystatus.run(Map<String, Object> params, RequestOptions options) Run a redaction job in areadystatus.voidsetCreated(Long created) Time at which the object was created.voidUnique identifier for the object.voidsetLivemode(Boolean livemode) Has the valuetrueif the object exists in live mode or the valuefalseif the object exists in test mode.voidString representing the object's type.voidsetObjects(RedactionJob.Objects objects) The objects to redact in this job.voidsetResponseGetter(StripeResponseGetter responseGetter) Method is used by the containing object orStripeResponseGetterimplementations to set theStripeResponseGetterinstance used to make further requests.voidThe status of the job.voidsetValidationBehavior(String validationBehavior) Validation behavior determines how a job validates objects for redaction eligibility.update(RedactionJobUpdateParams params) Updates the properties of a redaction job without running or canceling the job.update(RedactionJobUpdateParams params, RequestOptions options) Updates the properties of a redaction job without running or canceling the job.Updates the properties of a redaction job without running or canceling the job.update(Map<String, Object> params, RequestOptions options) Updates the properties of a redaction job without running or canceling the job.validate()Validate a redaction job when it is in afailedstatus.validate(RequestOptions options) Validate a redaction job when it is in afailedstatus.validate(RedactionJobValidateParams params) Validate a redaction job when it is in afailedstatus.validate(RedactionJobValidateParams params, RequestOptions options) Validate a redaction job when it is in afailedstatus.Validate a redaction job when it is in afailedstatus.validate(Map<String, Object> params, RequestOptions options) Validate a redaction job when it is in afailedstatus.Methods inherited from class com.stripe.net.ApiResource
checkNullTypedParams, getGlobalResponseGetter, getResponseGetter, setExpandableFieldId, setGlobalResponseGetter, urlEncode, urlEncodeIdMethods inherited from class com.stripe.model.StripeObject
deserializeStripeObject, deserializeStripeObject, deserializeStripeObject, deserializeStripeObject, equals, getLastResponse, getRawJsonObject, setLastResponse, toJson, toStringMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface com.stripe.model.StripeActiveObject
trySetResponseGetter
-
Constructor Details
-
RedactionJob
public RedactionJob()
-
-
Method Details
-
cancel
You can cancel a redaction job when it’s in one of these statuses:ready,failed.Canceling the redaction job will abandon its attempt to redact the configured objects. A canceled job cannot be used again.
- Throws:
StripeException
-
cancel
You can cancel a redaction job when it’s in one of these statuses:ready,failed.Canceling the redaction job will abandon its attempt to redact the configured objects. A canceled job cannot be used again.
- Throws:
StripeException
-
cancel
You can cancel a redaction job when it’s in one of these statuses:ready,failed.Canceling the redaction job will abandon its attempt to redact the configured objects. A canceled job cannot be used again.
- Throws:
StripeException
-
cancel
public RedactionJob cancel(Map<String, Object> params, RequestOptions options) throws StripeExceptionYou can cancel a redaction job when it’s in one of these statuses:ready,failed.Canceling the redaction job will abandon its attempt to redact the configured objects. A canceled job cannot be used again.
- Throws:
StripeException
-
cancel
You can cancel a redaction job when it’s in one of these statuses:ready,failed.Canceling the redaction job will abandon its attempt to redact the configured objects. A canceled job cannot be used again.
- Throws:
StripeException
-
cancel
public RedactionJob cancel(RedactionJobCancelParams params, RequestOptions options) throws StripeException You can cancel a redaction job when it’s in one of these statuses:ready,failed.Canceling the redaction job will abandon its attempt to redact the configured objects. A canceled job cannot be used again.
- Throws:
StripeException
-
create
Creates a redaction job. When a job is created, it will start to validate.- Throws:
StripeException
-
create
public static RedactionJob create(Map<String, Object> params, RequestOptions options) throws StripeExceptionCreates a redaction job. When a job is created, it will start to validate.- Throws:
StripeException
-
create
Creates a redaction job. When a job is created, it will start to validate.- Throws:
StripeException
-
create
public static RedactionJob create(RedactionJobCreateParams params, RequestOptions options) throws StripeException Creates a redaction job. When a job is created, it will start to validate.- Throws:
StripeException
-
list
Returns a list of redaction jobs.- Throws:
StripeException
-
list
public static RedactionJobCollection list(Map<String, Object> params, RequestOptions options) throws StripeExceptionReturns a list of redaction jobs.- Throws:
StripeException
-
list
Returns a list of redaction jobs.- Throws:
StripeException
-
list
public static RedactionJobCollection list(RedactionJobListParams params, RequestOptions options) throws StripeException Returns a list of redaction jobs.- Throws:
StripeException
-
retrieve
Retrieves the details of a previously created redaction job.- Throws:
StripeException
-
retrieve
Retrieves the details of a previously created redaction job.- Throws:
StripeException
-
retrieve
public static RedactionJob retrieve(String job, Map<String, Object> params, RequestOptions options) throws StripeExceptionRetrieves the details of a previously created redaction job.- Throws:
StripeException
-
retrieve
public static RedactionJob retrieve(String job, RedactionJobRetrieveParams params, RequestOptions options) throws StripeException Retrieves the details of a previously created redaction job.- Throws:
StripeException
-
run
Run a redaction job in areadystatus.When you run a job, the configured objects will be redacted asynchronously. This action is irreversible and cannot be canceled once started.
The status of the job will move to
redacting. Once all of the objects are redacted, the status will becomesucceeded. If the job’svalidation_behavioris set tofix, the automatic fixes will be applied to objects at this step.- Throws:
StripeException
-
run
Run a redaction job in areadystatus.When you run a job, the configured objects will be redacted asynchronously. This action is irreversible and cannot be canceled once started.
The status of the job will move to
redacting. Once all of the objects are redacted, the status will becomesucceeded. If the job’svalidation_behavioris set tofix, the automatic fixes will be applied to objects at this step.- Throws:
StripeException
-
run
Run a redaction job in areadystatus.When you run a job, the configured objects will be redacted asynchronously. This action is irreversible and cannot be canceled once started.
The status of the job will move to
redacting. Once all of the objects are redacted, the status will becomesucceeded. If the job’svalidation_behavioris set tofix, the automatic fixes will be applied to objects at this step.- Throws:
StripeException
-
run
Run a redaction job in areadystatus.When you run a job, the configured objects will be redacted asynchronously. This action is irreversible and cannot be canceled once started.
The status of the job will move to
redacting. Once all of the objects are redacted, the status will becomesucceeded. If the job’svalidation_behavioris set tofix, the automatic fixes will be applied to objects at this step.- Throws:
StripeException
-
run
Run a redaction job in areadystatus.When you run a job, the configured objects will be redacted asynchronously. This action is irreversible and cannot be canceled once started.
The status of the job will move to
redacting. Once all of the objects are redacted, the status will becomesucceeded. If the job’svalidation_behavioris set tofix, the automatic fixes will be applied to objects at this step.- Throws:
StripeException
-
run
public RedactionJob run(RedactionJobRunParams params, RequestOptions options) throws StripeException Run a redaction job in areadystatus.When you run a job, the configured objects will be redacted asynchronously. This action is irreversible and cannot be canceled once started.
The status of the job will move to
redacting. Once all of the objects are redacted, the status will becomesucceeded. If the job’svalidation_behavioris set tofix, the automatic fixes will be applied to objects at this step.- Throws:
StripeException
-
update
Updates the properties of a redaction job without running or canceling the job.If the job to update is in a
failedstatus, it will not automatically start to validate. Once you applied all of the changes, use the validate API to start validation again.- Throws:
StripeException
-
update
public RedactionJob update(Map<String, Object> params, RequestOptions options) throws StripeExceptionUpdates the properties of a redaction job without running or canceling the job.If the job to update is in a
failedstatus, it will not automatically start to validate. Once you applied all of the changes, use the validate API to start validation again.- Throws:
StripeException
-
update
Updates the properties of a redaction job without running or canceling the job.If the job to update is in a
failedstatus, it will not automatically start to validate. Once you applied all of the changes, use the validate API to start validation again.- Throws:
StripeException
-
update
public RedactionJob update(RedactionJobUpdateParams params, RequestOptions options) throws StripeException Updates the properties of a redaction job without running or canceling the job.If the job to update is in a
failedstatus, it will not automatically start to validate. Once you applied all of the changes, use the validate API to start validation again.- Throws:
StripeException
-
validate
Validate a redaction job when it is in afailedstatus.When a job is created, it automatically begins to validate on the configured objects’ eligibility for redaction. Use this to validate the job again after its validation errors are resolved or the job’s
validation_behavioris changed.The status of the job will move to
validating. Once all of the objects are validated, the status of the job will becomeready. If there are any validation errors preventing the job from running, the status will becomefailed.- Throws:
StripeException
-
validate
Validate a redaction job when it is in afailedstatus.When a job is created, it automatically begins to validate on the configured objects’ eligibility for redaction. Use this to validate the job again after its validation errors are resolved or the job’s
validation_behavioris changed.The status of the job will move to
validating. Once all of the objects are validated, the status of the job will becomeready. If there are any validation errors preventing the job from running, the status will becomefailed.- Throws:
StripeException
-
validate
Validate a redaction job when it is in afailedstatus.When a job is created, it automatically begins to validate on the configured objects’ eligibility for redaction. Use this to validate the job again after its validation errors are resolved or the job’s
validation_behavioris changed.The status of the job will move to
validating. Once all of the objects are validated, the status of the job will becomeready. If there are any validation errors preventing the job from running, the status will becomefailed.- Throws:
StripeException
-
validate
public RedactionJob validate(Map<String, Object> params, RequestOptions options) throws StripeExceptionValidate a redaction job when it is in afailedstatus.When a job is created, it automatically begins to validate on the configured objects’ eligibility for redaction. Use this to validate the job again after its validation errors are resolved or the job’s
validation_behavioris changed.The status of the job will move to
validating. Once all of the objects are validated, the status of the job will becomeready. If there are any validation errors preventing the job from running, the status will becomefailed.- Throws:
StripeException
-
validate
Validate a redaction job when it is in afailedstatus.When a job is created, it automatically begins to validate on the configured objects’ eligibility for redaction. Use this to validate the job again after its validation errors are resolved or the job’s
validation_behavioris changed.The status of the job will move to
validating. Once all of the objects are validated, the status of the job will becomeready. If there are any validation errors preventing the job from running, the status will becomefailed.- Throws:
StripeException
-
validate
public RedactionJob validate(RedactionJobValidateParams params, RequestOptions options) throws StripeException Validate a redaction job when it is in afailedstatus.When a job is created, it automatically begins to validate on the configured objects’ eligibility for redaction. Use this to validate the job again after its validation errors are resolved or the job’s
validation_behavioris changed.The status of the job will move to
validating. Once all of the objects are validated, the status of the job will becomeready. If there are any validation errors preventing the job from running, the status will becomefailed.- Throws:
StripeException
-
setResponseGetter
Description copied from interface:StripeActiveObjectMethod is used by the containing object orStripeResponseGetterimplementations to set theStripeResponseGetterinstance used to make further requests.- Specified by:
setResponseGetterin interfaceStripeActiveObject- Overrides:
setResponseGetterin classApiResource- Parameters:
responseGetter- theStripeResponseGetterinstance to use for making further requests.
-
getCreated
Time at which the object was created. Measured in seconds since the Unix epoch. -
getLivemode
Has the valuetrueif the object exists in live mode or the valuefalseif the object exists in test mode. -
getObject
String representing the object's type. Objects of the same type share the same value.Equal to
privacy.redaction_job. -
getObjects
The objects to redact in this job. -
getStatus
The status of the job.One of
canceled,canceling,created,failed,ready,redacting,succeeded, orvalidating. -
getValidationBehavior
Validation behavior determines how a job validates objects for redaction eligibility. Default iserror.One of
error, orfix. -
setCreated
Time at which the object was created. Measured in seconds since the Unix epoch. -
setId
Unique identifier for the object. -
setLivemode
Has the valuetrueif the object exists in live mode or the valuefalseif the object exists in test mode. -
setObject
String representing the object's type. Objects of the same type share the same value.Equal to
privacy.redaction_job. -
setObjects
The objects to redact in this job. -
setStatus
The status of the job.One of
canceled,canceling,created,failed,ready,redacting,succeeded, orvalidating. -
setValidationBehavior
Validation behavior determines how a job validates objects for redaction eligibility. Default iserror.One of
error, orfix. -
equals
-
canEqual
-
hashCode
public int hashCode() -
getId
Unique identifier for the object.
-