Class RedactionJob
- All Implemented Interfaces:
HasId
,StripeActiveObject
,StripeObjectInterface
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic class
The 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_GSON
Fields 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 boolean
static RedactionJob
create
(RedactionJobCreateParams params) Creates a redaction job.static RedactionJob
create
(RedactionJobCreateParams params, RequestOptions options) Creates a redaction job.static RedactionJob
Creates a redaction job.static RedactionJob
create
(Map<String, Object> params, RequestOptions options) Creates a redaction job.boolean
Time at which the object was created.getId()
Unique identifier for the object.Has the valuetrue
if the object exists in live mode or the valuefalse
if 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.int
hashCode()
static RedactionJobCollection
list
(RedactionJobListParams params) Returns a list of redaction jobs.static RedactionJobCollection
list
(RedactionJobListParams params, RequestOptions options) Returns a list of redaction jobs.static RedactionJobCollection
Returns a list of redaction jobs.static RedactionJobCollection
list
(Map<String, Object> params, RequestOptions options) Returns a list of redaction jobs.static RedactionJob
Retrieves the details of a previously created redaction job.static RedactionJob
retrieve
(String job, RequestOptions options) Retrieves the details of a previously created redaction job.static RedactionJob
retrieve
(String job, RedactionJobRetrieveParams params, RequestOptions options) Retrieves the details of a previously created redaction job.static RedactionJob
Retrieves the details of a previously created redaction job.run()
Run a redaction job in aready
status.run
(RequestOptions options) Run a redaction job in aready
status.run
(RedactionJobRunParams params) Run a redaction job in aready
status.run
(RedactionJobRunParams params, RequestOptions options) Run a redaction job in aready
status.Run a redaction job in aready
status.run
(Map<String, Object> params, RequestOptions options) Run a redaction job in aready
status.void
setCreated
(Long created) Time at which the object was created.void
Unique identifier for the object.void
setLivemode
(Boolean livemode) Has the valuetrue
if the object exists in live mode or the valuefalse
if the object exists in test mode.void
String representing the object's type.void
setObjects
(RedactionJob.Objects objects) The objects to redact in this job.void
setResponseGetter
(StripeResponseGetter responseGetter) Method is used by the containing object orStripeResponseGetter
implementations to set theStripeResponseGetter
instance used to make further requests.void
The status of the job.void
setValidationBehavior
(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 afailed
status.validate
(RequestOptions options) Validate a redaction job when it is in afailed
status.validate
(RedactionJobValidateParams params) Validate a redaction job when it is in afailed
status.validate
(RedactionJobValidateParams params, RequestOptions options) Validate a redaction job when it is in afailed
status.Validate a redaction job when it is in afailed
status.validate
(Map<String, Object> params, RequestOptions options) Validate a redaction job when it is in afailed
status.Methods inherited from class com.stripe.net.ApiResource
checkNullTypedParams, getGlobalResponseGetter, getResponseGetter, setExpandableFieldId, setGlobalResponseGetter, urlEncode, urlEncodeId
Methods inherited from class com.stripe.model.StripeObject
deserializeStripeObject, deserializeStripeObject, deserializeStripeObject, deserializeStripeObject, equals, getLastResponse, getRawJsonObject, setLastResponse, toJson, toString
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Methods 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 aready
status.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_behavior
is set tofix
, the automatic fixes will be applied to objects at this step.- Throws:
StripeException
-
run
Run a redaction job in aready
status.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_behavior
is set tofix
, the automatic fixes will be applied to objects at this step.- Throws:
StripeException
-
run
Run a redaction job in aready
status.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_behavior
is set tofix
, the automatic fixes will be applied to objects at this step.- Throws:
StripeException
-
run
Run a redaction job in aready
status.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_behavior
is set tofix
, the automatic fixes will be applied to objects at this step.- Throws:
StripeException
-
run
Run a redaction job in aready
status.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_behavior
is 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 aready
status.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_behavior
is 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
failed
status, 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
failed
status, 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
failed
status, 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
failed
status, 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 afailed
status.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_behavior
is 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 afailed
status.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_behavior
is 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 afailed
status.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_behavior
is 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 afailed
status.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_behavior
is 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 afailed
status.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_behavior
is 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 afailed
status.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_behavior
is 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:StripeActiveObject
Method is used by the containing object orStripeResponseGetter
implementations to set theStripeResponseGetter
instance used to make further requests.- Specified by:
setResponseGetter
in interfaceStripeActiveObject
- Overrides:
setResponseGetter
in classApiResource
- Parameters:
responseGetter
- theStripeResponseGetter
instance to use for making further requests.
-
getCreated
Time at which the object was created. Measured in seconds since the Unix epoch. -
getLivemode
Has the valuetrue
if the object exists in live mode or the valuefalse
if 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 valuetrue
if the object exists in live mode or the valuefalse
if 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.
-