Class RejectCurationProposalResponse

All Implemented Interfaces:
SdkPojo, ToCopyableBuilder<RejectCurationProposalResponse.Builder,RejectCurationProposalResponse>

@Generated("software.amazon.awssdk:codegen") public final class RejectCurationProposalResponse extends ContextResponse implements ToCopyableBuilder<RejectCurationProposalResponse.Builder,RejectCurationProposalResponse>

The proposal after this call, in its new status.

  • Method Details

    • changeSetId

      public final String changeSetId()

      The change set this proposal reviews. UpdateChangeSet edits that change set in place, so this ID never changes.

      Returns:
      The change set this proposal reviews. UpdateChangeSet edits that change set in place, so this ID never changes.
    • title

      public final String title()

      A one-line English title that AWS Context composes for the proposal, at most 1,024 characters. For example, Add 'orders' and 2 more entities, and 20 relationships, Add 'orders → customers' and 2 more relationships, or Associate ontology 'my-ontology' version 2. The title names the lead node (the node that starts the most edges, otherwise the first node) by its name, or by its ID if it has no name. For an edge-only change, it names the lead relationship's two node IDs. For an ontology load, it names the ontology ID and version. The title is for display only. It is not translated and is not meant to be parsed.

      For an ACL_RESTRICTED change set (see accessControl), the title contains only the verb and the counts, with no node, edge, type, or ontology. The title is absent when the change set is unreadable or has nothing to describe, such as a change set that records a connection's removal. A node name or ID, ontology ID, or ontology version longer than 128 characters is truncated to 128 characters, ending in ….

      Returns:
      A one-line English title that AWS Context composes for the proposal, at most 1,024 characters. For example, Add 'orders' and 2 more entities, and 20 relationships, Add 'orders → customers' and 2 more relationships, or Associate ontology 'my-ontology' version 2. The title names the lead node (the node that starts the most edges, otherwise the first node) by its name, or by its ID if it has no name. For an edge-only change, it names the lead relationship's two node IDs. For an ontology load, it names the ontology ID and version. The title is for display only. It is not translated and is not meant to be parsed.

      For an ACL_RESTRICTED change set (see accessControl), the title contains only the verb and the counts, with no node, edge, type, or ontology. The title is absent when the change set is unreadable or has nothing to describe, such as a change set that records a connection's removal. A node name or ID, ontology ID, or ontology version longer than 128 characters is truncated to 128 characters, ending in ….

    • generatedBy

      public final Activity generatedBy()

      The activity that generated the change set (see Activity). This member can be absent, so handle a proposal that has no activity. For example, it's absent when the change set is unreadable, when AWS Context wrote the change set to load an ontology's schema, when the change set records a connection's removal, and when this API version doesn't recognize the activity.

      If the service returns an enum value that is not available in the current SDK version, generatedBy will return Activity.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available from generatedByAsString().

      Returns:
      The activity that generated the change set (see Activity). This member can be absent, so handle a proposal that has no activity. For example, it's absent when the change set is unreadable, when AWS Context wrote the change set to load an ontology's schema, when the change set records a connection's removal, and when this API version doesn't recognize the activity.
      See Also:
    • generatedByAsString

      public final String generatedByAsString()

      The activity that generated the change set (see Activity). This member can be absent, so handle a proposal that has no activity. For example, it's absent when the change set is unreadable, when AWS Context wrote the change set to load an ontology's schema, when the change set records a connection's removal, and when this API version doesn't recognize the activity.

      If the service returns an enum value that is not available in the current SDK version, generatedBy will return Activity.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available from generatedByAsString().

      Returns:
      The activity that generated the change set (see Activity). This member can be absent, so handle a proposal that has no activity. For example, it's absent when the change set is unreadable, when AWS Context wrote the change set to load an ontology's schema, when the change set records a connection's removal, and when this API version doesn't recognize the activity.
      See Also:
    • revisionId

      public final String revisionId()

      An opaque revision token. Pass it back as revisionId when you accept or reject the proposal.

      Returns:
      An opaque revision token. Pass it back as revisionId when you accept or reject the proposal.
    • status

      public final CurationProposalStatus status()

      The status of the curation proposal, such as PENDING_REVIEW while it waits for a decision, APPROVED or REJECTED once it is decided, or ARCHIVED when the connection that produced it was removed from the agent context. New values can be added, so handle a status that you don't recognize.

      Valid values:

      • PENDING_REVIEW - Waiting for a curator's decision. The only status Accept and Reject act on.

      • APPROVED - A curator accepted it. Its change set is published or publishing.

      • REJECTED - Closed without applying its change set: a curator rejected it, or the service did when a holding policy's review window passed with no decision (statusReasonCode REQUEST_EXPIRED).

      • SUPERSEDED - A newer proposal for the same document replaced it.

      • FAILED - The proposal was accepted, but publishing its change set failed. This status is final. To apply the change, submit it again.

      • PUBLISHING - Accepted and publishing asynchronously (an ontology-schema publish). The status then changes to APPROVED or FAILED.

      • ARCHIVED - The connection that produced it was removed from the agent context. statusReason.code is CONNECTION_REMOVED.

      If the service returns an enum value that is not available in the current SDK version, status will return CurationProposalStatus.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available from statusAsString().

      Returns:
      The status of the curation proposal, such as PENDING_REVIEW while it waits for a decision, APPROVED or REJECTED once it is decided, or ARCHIVED when the connection that produced it was removed from the agent context. New values can be added, so handle a status that you don't recognize.

      Valid values:

      • PENDING_REVIEW - Waiting for a curator's decision. The only status Accept and Reject act on.

      • APPROVED - A curator accepted it. Its change set is published or publishing.

      • REJECTED - Closed without applying its change set: a curator rejected it, or the service did when a holding policy's review window passed with no decision (statusReasonCode REQUEST_EXPIRED).

      • SUPERSEDED - A newer proposal for the same document replaced it.

      • FAILED - The proposal was accepted, but publishing its change set failed. This status is final. To apply the change, submit it again.

      • PUBLISHING - Accepted and publishing asynchronously (an ontology-schema publish). The status then changes to APPROVED or FAILED.

      • ARCHIVED - The connection that produced it was removed from the agent context. statusReason.code is CONNECTION_REMOVED.

      See Also:
    • statusAsString

      public final String statusAsString()

      The status of the curation proposal, such as PENDING_REVIEW while it waits for a decision, APPROVED or REJECTED once it is decided, or ARCHIVED when the connection that produced it was removed from the agent context. New values can be added, so handle a status that you don't recognize.

      Valid values:

      • PENDING_REVIEW - Waiting for a curator's decision. The only status Accept and Reject act on.

      • APPROVED - A curator accepted it. Its change set is published or publishing.

      • REJECTED - Closed without applying its change set: a curator rejected it, or the service did when a holding policy's review window passed with no decision (statusReasonCode REQUEST_EXPIRED).

      • SUPERSEDED - A newer proposal for the same document replaced it.

      • FAILED - The proposal was accepted, but publishing its change set failed. This status is final. To apply the change, submit it again.

      • PUBLISHING - Accepted and publishing asynchronously (an ontology-schema publish). The status then changes to APPROVED or FAILED.

      • ARCHIVED - The connection that produced it was removed from the agent context. statusReason.code is CONNECTION_REMOVED.

      If the service returns an enum value that is not available in the current SDK version, status will return CurationProposalStatus.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available from statusAsString().

      Returns:
      The status of the curation proposal, such as PENDING_REVIEW while it waits for a decision, APPROVED or REJECTED once it is decided, or ARCHIVED when the connection that produced it was removed from the agent context. New values can be added, so handle a status that you don't recognize.

      Valid values:

      • PENDING_REVIEW - Waiting for a curator's decision. The only status Accept and Reject act on.

      • APPROVED - A curator accepted it. Its change set is published or publishing.

      • REJECTED - Closed without applying its change set: a curator rejected it, or the service did when a holding policy's review window passed with no decision (statusReasonCode REQUEST_EXPIRED).

      • SUPERSEDED - A newer proposal for the same document replaced it.

      • FAILED - The proposal was accepted, but publishing its change set failed. This status is final. To apply the change, submit it again.

      • PUBLISHING - Accepted and publishing asynchronously (an ontology-schema publish). The status then changes to APPROVED or FAILED.

      • ARCHIVED - The connection that produced it was removed from the agent context. statusReason.code is CONNECTION_REMOVED.

      See Also:
    • statusReasonCode

      public final StatusReasonCode statusReasonCode()

      Why the service decided the proposal, when it did: REQUEST_EXPIRED when a holding policy's auto-reject window passed with no decision. Absent when a curator decided it.

      Valid values:

      • REQUEST_EXPIRED - The auto-reject window of a policy that held the proposal passed with no decision, so the service rejected it.

      • CONNECTION_REMOVED - The connection was removed from the agent context. AWS Context removes the data that only that connection produced, and archives the connection's pending proposals.

      If the service returns an enum value that is not available in the current SDK version, statusReasonCode will return StatusReasonCode.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available from statusReasonCodeAsString().

      Returns:
      Why the service decided the proposal, when it did: REQUEST_EXPIRED when a holding policy's auto-reject window passed with no decision. Absent when a curator decided it.

      Valid values:

      • REQUEST_EXPIRED - The auto-reject window of a policy that held the proposal passed with no decision, so the service rejected it.

      • CONNECTION_REMOVED - The connection was removed from the agent context. AWS Context removes the data that only that connection produced, and archives the connection's pending proposals.

      See Also:
    • statusReasonCodeAsString

      public final String statusReasonCodeAsString()

      Why the service decided the proposal, when it did: REQUEST_EXPIRED when a holding policy's auto-reject window passed with no decision. Absent when a curator decided it.

      Valid values:

      • REQUEST_EXPIRED - The auto-reject window of a policy that held the proposal passed with no decision, so the service rejected it.

      • CONNECTION_REMOVED - The connection was removed from the agent context. AWS Context removes the data that only that connection produced, and archives the connection's pending proposals.

      If the service returns an enum value that is not available in the current SDK version, statusReasonCode will return StatusReasonCode.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available from statusReasonCodeAsString().

      Returns:
      Why the service decided the proposal, when it did: REQUEST_EXPIRED when a holding policy's auto-reject window passed with no decision. Absent when a curator decided it.

      Valid values:

      • REQUEST_EXPIRED - The auto-reject window of a policy that held the proposal passed with no decision, so the service rejected it.

      • CONNECTION_REMOVED - The connection was removed from the agent context. AWS Context removes the data that only that connection produced, and archives the connection's pending proposals.

      See Also:
    • accessControl

      public final AccessControl accessControl()

      Who can read the authorizing change set's content. See AccessControl. If the value is ACL_RESTRICTED, ListChangeSetOperations on changeSetId returns the operations only to an allowed end user. Any other caller gets AccessDeniedException, and GetChangeSet returns only metadata, and the proposal's title has no node names or edge endpoints. The service returns accessControl on every proposal.

      Valid values:

      • ACL_RESTRICTED - Only an allowed end user can read the content (its operations), and the change set can't be edited. Every caller can read its metadata, and its proposal's title names no nodes or edges.

      • NO_ACL - Every caller can read the content.

      If the service returns an enum value that is not available in the current SDK version, accessControl will return AccessControl.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available from accessControlAsString().

      Returns:
      Who can read the authorizing change set's content. See AccessControl. If the value is ACL_RESTRICTED, ListChangeSetOperations on changeSetId returns the operations only to an allowed end user. Any other caller gets AccessDeniedException, and GetChangeSet returns only metadata, and the proposal's title has no node names or edge endpoints. The service returns accessControl on every proposal.

      Valid values:

      • ACL_RESTRICTED - Only an allowed end user can read the content (its operations), and the change set can't be edited. Every caller can read its metadata, and its proposal's title names no nodes or edges.

      • NO_ACL - Every caller can read the content.

      See Also:
    • accessControlAsString

      public final String accessControlAsString()

      Who can read the authorizing change set's content. See AccessControl. If the value is ACL_RESTRICTED, ListChangeSetOperations on changeSetId returns the operations only to an allowed end user. Any other caller gets AccessDeniedException, and GetChangeSet returns only metadata, and the proposal's title has no node names or edge endpoints. The service returns accessControl on every proposal.

      Valid values:

      • ACL_RESTRICTED - Only an allowed end user can read the content (its operations), and the change set can't be edited. Every caller can read its metadata, and its proposal's title names no nodes or edges.

      • NO_ACL - Every caller can read the content.

      If the service returns an enum value that is not available in the current SDK version, accessControl will return AccessControl.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available from accessControlAsString().

      Returns:
      Who can read the authorizing change set's content. See AccessControl. If the value is ACL_RESTRICTED, ListChangeSetOperations on changeSetId returns the operations only to an allowed end user. Any other caller gets AccessDeniedException, and GetChangeSet returns only metadata, and the proposal's title has no node names or edge endpoints. The service returns accessControl on every proposal.

      Valid values:

      • ACL_RESTRICTED - Only an allowed end user can read the content (its operations), and the change set can't be edited. Every caller can read its metadata, and its proposal's title names no nodes or edges.

      • NO_ACL - Every caller can read the content.

      See Also:
    • agentContextId

      public final String agentContextId()

      The agent context's ID.

      Returns:
      The agent context's ID.
    • expiresAt

      public final Instant expiresAt()

      The date and time when the review window closes, which is when a holding policy's autoRejectAfterSeconds elapses. If no curator has decided the proposal by then, AWS Context rejects it with statusReasonCode REQUEST_EXPIRED. Present only while status is PENDING_REVIEW and a holding policy set a window. Absent on every other status.

      Returns:
      The date and time when the review window closes, which is when a holding policy's autoRejectAfterSeconds elapses. If no curator has decided the proposal by then, AWS Context rejects it with statusReasonCode REQUEST_EXPIRED. Present only while status is PENDING_REVIEW and a holding policy set a window. Absent on every other status.
    • createdAt

      public final Instant createdAt()

      The date and time when the curation proposal was created.

      Returns:
      The date and time when the curation proposal was created.
    • updatedAt

      public final Instant updatedAt()

      The date and time when the curation proposal was last updated, such as when its change set was edited or the proposal was decided. Equal to createdAt until the first update.

      Returns:
      The date and time when the curation proposal was last updated, such as when its change set was edited or the proposal was decided. Equal to createdAt until the first update.
    • statusReason

      public final StatusReason statusReason()

      Why AWS Context closed the proposal. Set on an ARCHIVED proposal. Absent otherwise.

      Returns:
      Why AWS Context closed the proposal. Set on an ARCHIVED proposal. Absent otherwise.
    • id

      public final String id()

      The proposal's opaque instance ID. Requests take it as curationProposalId.

      Returns:
      The proposal's opaque instance ID. Requests take it as curationProposalId.
    • hasTriggeringPolicies

      public final boolean hasTriggeringPolicies()
      For responses, this returns true if the service returned a value for the TriggeringPolicies property. This DOES NOT check that the value is non-empty (for which, you should check the isEmpty() method on the property). This is useful because the SDK will never return a null collection or map, but you may need to differentiate between the service returning nothing (or null) and the service returning an empty collection or map. For requests, this returns true if a value for the property was specified in the request builder, and false if a value was not specified.
    • triggeringPolicies

      public final List<TriggeringPolicy> triggeringPolicies()

      The policies that routed this change set to review (the HOLD_FOR_REVIEW entries in the change set's evaluation). Absent if none held it.

      Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.

      This method will never return null. If you would like to know whether the service returned this field (so that you can differentiate between null and empty), you can use the hasTriggeringPolicies() method.

      Returns:
      The policies that routed this change set to review (the HOLD_FOR_REVIEW entries in the change set's evaluation). Absent if none held it.
    • toBuilder

      Description copied from interface: ToCopyableBuilder
      Take this object and create a builder that contains all of the current property values of this object.
      Specified by:
      toBuilder in interface ToCopyableBuilder<RejectCurationProposalResponse.Builder,RejectCurationProposalResponse>
      Specified by:
      toBuilder in class AwsResponse
      Returns:
      a builder for type T
    • builder

      public static RejectCurationProposalResponse.Builder builder()
    • serializableBuilderClass

      public static Class<? extends RejectCurationProposalResponse.Builder> serializableBuilderClass()
    • hashCode

      public final int hashCode()
      Overrides:
      hashCode in class AwsResponse
    • equals

      public final boolean equals(Object obj)
      Overrides:
      equals in class AwsResponse
    • equalsBySdkFields

      public final boolean equalsBySdkFields(Object obj)
      Description copied from interface: SdkPojo
      Indicates whether some other object is "equal to" this one by SDK fields. An SDK field is a modeled, non-inherited field in an SdkPojo class, and is generated based on a service model.

      If an SdkPojo class does not have any inherited fields, equalsBySdkFields and equals are essentially the same.

      Specified by:
      equalsBySdkFields in interface SdkPojo
      Parameters:
      obj - the object to be compared with
      Returns:
      true if the other object equals to this object by sdk fields, false otherwise.
    • toString

      public final String toString()
      Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be redacted from this string using a placeholder value.
      Overrides:
      toString in class Object
    • getValueForField

      public final <T> Optional<T> getValueForField(String fieldName, Class<T> clazz)
      Description copied from class: SdkResponse
      Used to retrieve the value of a field from any class that extends SdkResponse. The field name specified should match the member name from the corresponding service-2.json model specified in the codegen-resources folder for a given service. The class specifies what class to cast the returned value to. If the returned value is also a modeled class, the SdkResponse.getValueForField(String, Class) method will again be available.
      Overrides:
      getValueForField in class SdkResponse
      Parameters:
      fieldName - The name of the member to be retrieved.
      clazz - The class to cast the returned object to.
      Returns:
      Optional containing the casted return value
    • sdkFields

      public final List<SdkField<?>> sdkFields()
      Specified by:
      sdkFields in interface SdkPojo
      Returns:
      List of SdkField in this POJO. May be empty list but should never be null.
    • sdkFieldNameToField

      public final Map<String,SdkField<?>> sdkFieldNameToField()
      Specified by:
      sdkFieldNameToField in interface SdkPojo
      Returns:
      The mapping between the field name and its corresponding field.