Class GetCurationProposalResponse
- All Implemented Interfaces:
SdkPojo,ToCopyableBuilder<GetCurationProposalResponse.Builder,GetCurationProposalResponse>
A curation proposal, with the provenance of its change set.
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionfinal AccessControlWho can read the authorizing change set's content.final StringWho can read the authorizing change set's content.final StringThe agent context's ID.builder()final StringThe change set this proposal reviews.final InstantThe date and time when the curation proposal was created.final booleanfinal booleanequalsBySdkFields(Object obj) Indicates whether some other object is "equal to" this one by SDK fields.final InstantThe date and time when the review window closes, which is when a holding policy'sautoRejectAfterSecondselapses.final ActivityThe activity that generated the change set (seeActivity).final StringThe activity that generated the change set (seeActivity).final <T> Optional<T> getValueForField(String fieldName, Class<T> clazz) Used to retrieve the value of a field from any class that extendsSdkResponse.final inthashCode()final booleanFor responses, this returns true if the service returned a value for the TriggeringPolicies property.final Stringid()The proposal's opaque instance ID.final StringAn opaque revision token.static Class<? extends GetCurationProposalResponse.Builder> final CurationProposalStatusstatus()The status of the curation proposal, such asPENDING_REVIEWwhile it waits for a decision,APPROVEDorREJECTEDonce it is decided, orARCHIVEDwhen the connection that produced it was removed from the agent context.final StringThe status of the curation proposal, such asPENDING_REVIEWwhile it waits for a decision,APPROVEDorREJECTEDonce it is decided, orARCHIVEDwhen the connection that produced it was removed from the agent context.final StatusReasonWhy AWS Context closed the proposal.final StatusReasonCodeWhy the service decided the proposal, when it did: REQUEST_EXPIRED when a holding policy's auto-reject window passed with no decision.final StringWhy the service decided the proposal, when it did: REQUEST_EXPIRED when a holding policy's auto-reject window passed with no decision.final Stringtitle()A one-line English title that AWS Context composes for the proposal, at most 1,024 characters.Take this object and create a builder that contains all of the current property values of this object.final StringtoString()Returns a string representation of this object.final List<TriggeringPolicy> The policies that routed this change set to review (theHOLD_FOR_REVIEWentries in the change set's evaluation).final InstantThe date and time when the curation proposal was last updated, such as when its change set was edited or the proposal was decided.Methods inherited from class software.amazon.awssdk.services.context.model.ContextResponse
responseMetadataMethods inherited from class software.amazon.awssdk.core.SdkResponse
sdkHttpResponseMethods inherited from interface software.amazon.awssdk.utils.builder.ToCopyableBuilder
copy
-
Method Details
-
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
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, orAssociate 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_RESTRICTEDchange set (seeaccessControl), 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, orAssociate 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_RESTRICTEDchange set (seeaccessControl), 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
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,
generatedBywill returnActivity.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromgeneratedByAsString().- 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
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,
generatedBywill returnActivity.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromgeneratedByAsString().- 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
An opaque revision token. Pass it back as
revisionIdwhen you accept or reject the proposal.- Returns:
- An opaque revision token. Pass it back as
revisionIdwhen you accept or reject the proposal.
-
status
The status of the curation proposal, such as
PENDING_REVIEWwhile it waits for a decision,APPROVEDorREJECTEDonce it is decided, orARCHIVEDwhen 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 (statusReasonCodeREQUEST_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.codeis CONNECTION_REMOVED.
If the service returns an enum value that is not available in the current SDK version,
statuswill returnCurationProposalStatus.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromstatusAsString().- Returns:
- The status of the curation proposal, such as
PENDING_REVIEWwhile it waits for a decision,APPROVEDorREJECTEDonce it is decided, orARCHIVEDwhen 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 (statusReasonCodeREQUEST_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.codeis CONNECTION_REMOVED.
-
- See Also:
-
-
statusAsString
The status of the curation proposal, such as
PENDING_REVIEWwhile it waits for a decision,APPROVEDorREJECTEDonce it is decided, orARCHIVEDwhen 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 (statusReasonCodeREQUEST_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.codeis CONNECTION_REMOVED.
If the service returns an enum value that is not available in the current SDK version,
statuswill returnCurationProposalStatus.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromstatusAsString().- Returns:
- The status of the curation proposal, such as
PENDING_REVIEWwhile it waits for a decision,APPROVEDorREJECTEDonce it is decided, orARCHIVEDwhen 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 (statusReasonCodeREQUEST_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.codeis CONNECTION_REMOVED.
-
- See Also:
-
-
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,
statusReasonCodewill returnStatusReasonCode.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromstatusReasonCodeAsString().- 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
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,
statusReasonCodewill returnStatusReasonCode.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromstatusReasonCodeAsString().- 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
Who can read the authorizing change set's content. See
AccessControl. If the value isACL_RESTRICTED,ListChangeSetOperationsonchangeSetIdreturns the operations only to an allowed end user. Any other caller getsAccessDeniedException, andGetChangeSetreturns only metadata, and the proposal's title has no node names or edge endpoints. The service returnsaccessControlon 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'stitlenames 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,
accessControlwill returnAccessControl.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromaccessControlAsString().- Returns:
- Who can read the authorizing change set's content. See
AccessControl. If the value isACL_RESTRICTED,ListChangeSetOperationsonchangeSetIdreturns the operations only to an allowed end user. Any other caller getsAccessDeniedException, andGetChangeSetreturns only metadata, and the proposal's title has no node names or edge endpoints. The service returnsaccessControlon 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'stitlenames no nodes or edges. -
NO_ACL- Every caller can read the content.
-
- See Also:
-
-
accessControlAsString
Who can read the authorizing change set's content. See
AccessControl. If the value isACL_RESTRICTED,ListChangeSetOperationsonchangeSetIdreturns the operations only to an allowed end user. Any other caller getsAccessDeniedException, andGetChangeSetreturns only metadata, and the proposal's title has no node names or edge endpoints. The service returnsaccessControlon 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'stitlenames 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,
accessControlwill returnAccessControl.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromaccessControlAsString().- Returns:
- Who can read the authorizing change set's content. See
AccessControl. If the value isACL_RESTRICTED,ListChangeSetOperationsonchangeSetIdreturns the operations only to an allowed end user. Any other caller getsAccessDeniedException, andGetChangeSetreturns only metadata, and the proposal's title has no node names or edge endpoints. The service returnsaccessControlon 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'stitlenames no nodes or edges. -
NO_ACL- Every caller can read the content.
-
- See Also:
-
-
agentContextId
-
expiresAt
The date and time when the review window closes, which is when a holding policy's
autoRejectAfterSecondselapses. If no curator has decided the proposal by then, AWS Context rejects it withstatusReasonCodeREQUEST_EXPIRED. Present only whilestatusisPENDING_REVIEWand 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
autoRejectAfterSecondselapses. If no curator has decided the proposal by then, AWS Context rejects it withstatusReasonCodeREQUEST_EXPIRED. Present only whilestatusisPENDING_REVIEWand a holding policy set a window. Absent on every other status.
-
createdAt
The date and time when the curation proposal was created.
- Returns:
- The date and time when the curation proposal was created.
-
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
createdAtuntil 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
createdAtuntil the first update.
-
statusReason
Why AWS Context closed the proposal. Set on an
ARCHIVEDproposal. Absent otherwise.- Returns:
- Why AWS Context closed the proposal. Set on an
ARCHIVEDproposal. Absent otherwise.
-
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 theisEmpty()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
The policies that routed this change set to review (the
HOLD_FOR_REVIEWentries 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_REVIEWentries in the change set's evaluation). Absent if none held it.
-
toBuilder
Description copied from interface:ToCopyableBuilderTake this object and create a builder that contains all of the current property values of this object.- Specified by:
toBuilderin interfaceToCopyableBuilder<GetCurationProposalResponse.Builder,GetCurationProposalResponse> - Specified by:
toBuilderin classAwsResponse- Returns:
- a builder for type T
-
builder
-
serializableBuilderClass
-
hashCode
public final int hashCode()- Overrides:
hashCodein classAwsResponse
-
equals
- Overrides:
equalsin classAwsResponse
-
equalsBySdkFields
Description copied from interface:SdkPojoIndicates whether some other object is "equal to" this one by SDK fields. An SDK field is a modeled, non-inherited field in anSdkPojoclass, and is generated based on a service model.If an
SdkPojoclass does not have any inherited fields,equalsBySdkFieldsandequalsare essentially the same.- Specified by:
equalsBySdkFieldsin interfaceSdkPojo- Parameters:
obj- the object to be compared with- Returns:
- true if the other object equals to this object by sdk fields, false otherwise.
-
toString
-
getValueForField
Description copied from class:SdkResponseUsed to retrieve the value of a field from any class that extendsSdkResponse. 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, theSdkResponse.getValueForField(String, Class)method will again be available.- Overrides:
getValueForFieldin classSdkResponse- 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
-
sdkFieldNameToField
- Specified by:
sdkFieldNameToFieldin interfaceSdkPojo- Returns:
- The mapping between the field name and its corresponding field.
-