Interface CreateCurationPolicyResponse.Builder
- All Superinterfaces:
AwsResponse.Builder,Buildable,ContextResponse.Builder,CopyableBuilder<CreateCurationPolicyResponse.Builder,,CreateCurationPolicyResponse> SdkBuilder<CreateCurationPolicyResponse.Builder,,CreateCurationPolicyResponse> SdkPojo,SdkResponse.Builder
- Enclosing class:
CreateCurationPolicyResponse
-
Method Summary
Modifier and TypeMethodDescriptionThe ARN of the curation policy.autoRejectAfterSeconds(Long autoRejectAfterSeconds) The number of seconds that a proposal held for review under this policy can wait for a decision before AWS Context rejects it withstatusReasonCodeREQUEST_EXPIRED.The date and time when the curation policy was created.description(String description) The description of the curation policy.The ID of the curation policy.lastPublishedVersion(String lastPublishedVersion) Newest published version.The name of the curation policy.policyDocument(String policyDocument) The policy's rules, as a Cedar policy document: the rule the engine evaluates.revisionId(String revisionId) An opaque revision token for the working copy.The policy's status.status(CurationPolicyStatus status) The policy's status.When the resource last changed.Methods inherited from interface software.amazon.awssdk.services.context.model.ContextResponse.Builder
build, responseMetadata, responseMetadataMethods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copyMethods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, buildMethods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFieldNameToField, sdkFieldsMethods inherited from interface software.amazon.awssdk.core.SdkResponse.Builder
sdkHttpResponse, sdkHttpResponse
-
Method Details
-
id
The ID of the curation policy. Requests take it as
curationPolicyId.- Parameters:
id- The ID of the curation policy. Requests take it ascurationPolicyId.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
arn
The ARN of the curation policy.
- Parameters:
arn- The ARN of the curation policy.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
name
The name of the curation policy.
- Parameters:
name- The name of the curation policy.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
lastPublishedVersion
Newest published version. Absent until the policy's first version is created (a DRAFT that has never been published has no version).
- Parameters:
lastPublishedVersion- Newest published version. Absent until the policy's first version is created (a DRAFT that has never been published has no version).- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
revisionId
An opaque revision token for the working copy. Pass it as
revisionIdonUpdateCurationPolicy. The update applies only if the token still matches the current working copy.- Parameters:
revisionId- An opaque revision token for the working copy. Pass it asrevisionIdonUpdateCurationPolicy. The update applies only if the token still matches the current working copy.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
createdAt
The date and time when the curation policy was created.
- Parameters:
createdAt- The date and time when the curation policy was created.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
updatedAt
When the resource last changed. Equal to
createdAtuntil the first update.- Parameters:
updatedAt- When the resource last changed. Equal tocreatedAtuntil the first update.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
autoRejectAfterSeconds
The number of seconds that a proposal held for review under this policy can wait for a decision before AWS Context rejects it with
statusReasonCodeREQUEST_EXPIRED. From 86,400 seconds (1 day) to 15,552,000 seconds (180 days). Absent if proposals held under this policy are never rejected automatically.- Parameters:
autoRejectAfterSeconds- The number of seconds that a proposal held for review under this policy can wait for a decision before AWS Context rejects it withstatusReasonCodeREQUEST_EXPIRED. From 86,400 seconds (1 day) to 15,552,000 seconds (180 days). Absent if proposals held under this policy are never rejected automatically.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
description
The description of the curation policy.
- Parameters:
description- The description of the curation policy.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
policyDocument
The policy's rules, as a Cedar policy document: the rule the engine evaluates. Always present on the resource.
- Parameters:
policyDocument- The policy's rules, as a Cedar policy document: the rule the engine evaluates. Always present on the resource.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
status
The policy's status.
Valid values:
-
DRAFT- The policy has never been published, so no agent context enforces it. -
ACTIVE- The policy has a published version, which the agent contexts associated with it enforce. -
DELETED- The policy is deleted. Nothing enforces it, and only GetCurationPolicy still returns it.
- Parameters:
status- The policy's status.Valid values:
-
DRAFT- The policy has never been published, so no agent context enforces it. -
ACTIVE- The policy has a published version, which the agent contexts associated with it enforce. -
DELETED- The policy is deleted. Nothing enforces it, and only GetCurationPolicy still returns it.
-
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
-
status
The policy's status.
Valid values:
-
DRAFT- The policy has never been published, so no agent context enforces it. -
ACTIVE- The policy has a published version, which the agent contexts associated with it enforce. -
DELETED- The policy is deleted. Nothing enforces it, and only GetCurationPolicy still returns it.
- Parameters:
status- The policy's status.Valid values:
-
DRAFT- The policy has never been published, so no agent context enforces it. -
ACTIVE- The policy has a published version, which the agent contexts associated with it enforce. -
DELETED- The policy is deleted. Nothing enforces it, and only GetCurationPolicy still returns it.
-
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
-