Class UpdateChangeSetResponse

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

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

The change set version the edit created. Read its operations with ListChangeSetOperations.

  • Method Details

    • agentContextId

      public final String agentContextId()

      The agent context's ID.

      Returns:
      The agent context's ID.
    • status

      public final ChangeSetStatus status()

      The status of the change set. Valid values:

      • DRAFT - AWS Context is evaluating the change set against the agent context's curation policies.

      • PENDING - Held for review as a curation proposal. While the change set is PENDING, you can remove operations from it with UpdateChangeSet.

      • AUTHORIZED - The change set is approved, and AWS Context is applying it.

      • SUPPRESSED - AWS Context won't apply the change set, because a curation policy denied it or its curation proposal was closed without approval.

      • PUBLISHED - AWS Context applied the change set to the agent context.

      • FAILED - AWS Context couldn't apply the change set.

      SUPPRESSED and PUBLISHED are final. A FAILED change set can still change to PUBLISHED or PENDING if AWS Context retries applying it. New values can be added, so handle a status that you don't recognize.

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

      Returns:
      The status of the change set. Valid values:

      • DRAFT - AWS Context is evaluating the change set against the agent context's curation policies.

      • PENDING - Held for review as a curation proposal. While the change set is PENDING, you can remove operations from it with UpdateChangeSet.

      • AUTHORIZED - The change set is approved, and AWS Context is applying it.

      • SUPPRESSED - AWS Context won't apply the change set, because a curation policy denied it or its curation proposal was closed without approval.

      • PUBLISHED - AWS Context applied the change set to the agent context.

      • FAILED - AWS Context couldn't apply the change set.

      SUPPRESSED and PUBLISHED are final. A FAILED change set can still change to PUBLISHED or PENDING if AWS Context retries applying it. New values can be added, so handle a status that you don't recognize.

      See Also:
    • statusAsString

      public final String statusAsString()

      The status of the change set. Valid values:

      • DRAFT - AWS Context is evaluating the change set against the agent context's curation policies.

      • PENDING - Held for review as a curation proposal. While the change set is PENDING, you can remove operations from it with UpdateChangeSet.

      • AUTHORIZED - The change set is approved, and AWS Context is applying it.

      • SUPPRESSED - AWS Context won't apply the change set, because a curation policy denied it or its curation proposal was closed without approval.

      • PUBLISHED - AWS Context applied the change set to the agent context.

      • FAILED - AWS Context couldn't apply the change set.

      SUPPRESSED and PUBLISHED are final. A FAILED change set can still change to PUBLISHED or PENDING if AWS Context retries applying it. New values can be added, so handle a status that you don't recognize.

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

      Returns:
      The status of the change set. Valid values:

      • DRAFT - AWS Context is evaluating the change set against the agent context's curation policies.

      • PENDING - Held for review as a curation proposal. While the change set is PENDING, you can remove operations from it with UpdateChangeSet.

      • AUTHORIZED - The change set is approved, and AWS Context is applying it.

      • SUPPRESSED - AWS Context won't apply the change set, because a curation policy denied it or its curation proposal was closed without approval.

      • PUBLISHED - AWS Context applied the change set to the agent context.

      • FAILED - AWS Context couldn't apply the change set.

      SUPPRESSED and PUBLISHED are final. A FAILED change set can still change to PUBLISHED or PENDING if AWS Context retries applying it. New values can be added, so handle a status that you don't recognize.

      See Also:
    • createdAt

      public final Instant createdAt()

      The date and time when the change set was created.

      Returns:
      The date and time when the change set was created.
    • updatedAt

      public final Instant updatedAt()

      The date and time when the change set was last updated, such as when its status changed or its operations were edited.

      Returns:
      The date and time when the change set was last updated, such as when its status changed or its operations were edited.
    • accessControl

      public final AccessControl accessControl()

      See AccessControl. The service returns it on every item.

      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:
      See AccessControl. The service returns it on every item.

      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()

      See AccessControl. The service returns it on every item.

      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:
      See AccessControl. The service returns it on every item.

      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:
    • generatedBy

      public final Activity generatedBy()

      The activity that generated the change set. A change set that an IMPORT_ONTOLOGY task writes carries IMPORT_ONTOLOGY_TASK, and one that a CreateChangeSet call makes carries DIRECT_MODIFICATION. A sync of a connected data source's own metadata, such as an AWS Glue Data Catalog sync, carries DATA_SOURCE_INGESTION. To list the change sets that carry a value, filter ListChangeSets on it.

      This member can be absent, so handle a change set that has no activity. For example, it's absent on a change set that records a connection's removal, on a change set that AWS Context wrote when it loaded an ontology's schema, and on a change set whose activity this API version doesn't recognize.

      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. A change set that an IMPORT_ONTOLOGY task writes carries IMPORT_ONTOLOGY_TASK, and one that a CreateChangeSet call makes carries DIRECT_MODIFICATION. A sync of a connected data source's own metadata, such as an AWS Glue Data Catalog sync, carries DATA_SOURCE_INGESTION. To list the change sets that carry a value, filter ListChangeSets on it.

      This member can be absent, so handle a change set that has no activity. For example, it's absent on a change set that records a connection's removal, on a change set that AWS Context wrote when it loaded an ontology's schema, and on a change set whose activity this API version doesn't recognize.

      See Also:
    • generatedByAsString

      public final String generatedByAsString()

      The activity that generated the change set. A change set that an IMPORT_ONTOLOGY task writes carries IMPORT_ONTOLOGY_TASK, and one that a CreateChangeSet call makes carries DIRECT_MODIFICATION. A sync of a connected data source's own metadata, such as an AWS Glue Data Catalog sync, carries DATA_SOURCE_INGESTION. To list the change sets that carry a value, filter ListChangeSets on it.

      This member can be absent, so handle a change set that has no activity. For example, it's absent on a change set that records a connection's removal, on a change set that AWS Context wrote when it loaded an ontology's schema, and on a change set whose activity this API version doesn't recognize.

      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. A change set that an IMPORT_ONTOLOGY task writes carries IMPORT_ONTOLOGY_TASK, and one that a CreateChangeSet call makes carries DIRECT_MODIFICATION. A sync of a connected data source's own metadata, such as an AWS Glue Data Catalog sync, carries DATA_SOURCE_INGESTION. To list the change sets that carry a value, filter ListChangeSets on it.

      This member can be absent, so handle a change set that has no activity. For example, it's absent on a change set that records a connection's removal, on a change set that AWS Context wrote when it loaded an ontology's schema, and on a change set whose activity this API version doesn't recognize.

      See Also:
    • statusReason

      public final StatusReason statusReason()

      Why AWS Context created or closed the change set, for example because a connection was removed from the agent context. AWS Context keeps it across later status changes, including a curator's decision. Absent when AWS Context gave no reason.

      Returns:
      Why AWS Context created or closed the change set, for example because a connection was removed from the agent context. AWS Context keeps it across later status changes, including a curator's decision. Absent when AWS Context gave no reason.
    • id

      public final String id()

      The change set's opaque instance ID. Requests take it as changeSetId.

      Returns:
      The change set's opaque instance ID. Requests take it as changeSetId.
    • changeSetVersion

      public final Integer changeSetVersion()

      The version the edit created. Pass it to the next UpdateChangeSet.

      Returns:
      The version the edit created. Pass it to the next UpdateChangeSet.
    • toBuilder

      public UpdateChangeSetResponse.Builder 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<UpdateChangeSetResponse.Builder,UpdateChangeSetResponse>
      Specified by:
      toBuilder in class AwsResponse
      Returns:
      a builder for type T
    • builder

      public static UpdateChangeSetResponse.Builder builder()
    • serializableBuilderClass

      public static Class<? extends UpdateChangeSetResponse.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.