Interface CreateCurationPolicyResponse.Builder

  • 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 as curationPolicyId.
      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

      CreateCurationPolicyResponse.Builder lastPublishedVersion(String 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 revisionId on UpdateCurationPolicy. 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 as revisionId on UpdateCurationPolicy. 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 createdAt until the first update.

      Parameters:
      updatedAt - When the resource last changed. Equal to createdAt until the first update.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • autoRejectAfterSeconds

      CreateCurationPolicyResponse.Builder 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 with statusReasonCode REQUEST_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 with statusReasonCode REQUEST_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

      CreateCurationPolicyResponse.Builder description(String 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

      CreateCurationPolicyResponse.Builder policyDocument(String 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: