Interface ChangeSetSummary.Builder

  • Method Details

    • agentContextId

      ChangeSetSummary.Builder agentContextId(String agentContextId)

      The agent context's ID.

      Parameters:
      agentContextId - The agent context's ID.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • 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.

      Parameters:
      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.

      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • 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.

      Parameters:
      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.

      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • createdAt

      ChangeSetSummary.Builder createdAt(Instant createdAt)

      The date and time when the change set was created.

      Parameters:
      createdAt - The date and time when the change set was created.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • updatedAt

      ChangeSetSummary.Builder updatedAt(Instant updatedAt)

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

      Parameters:
      updatedAt - The date and time when the change set was last updated, such as when its status changed or its operations were edited.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • accessControl

      ChangeSetSummary.Builder accessControl(String 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.

      Parameters:
      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.

      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • accessControl

      ChangeSetSummary.Builder accessControl(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.

      Parameters:
      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.

      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • generatedBy

      ChangeSetSummary.Builder generatedBy(String 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.

      Parameters:
      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.

      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • generatedBy

      ChangeSetSummary.Builder generatedBy(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.

      Parameters:
      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.

      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • statusReason

      ChangeSetSummary.Builder statusReason(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.

      Parameters:
      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:
      Returns a reference to this object so that method calls can be chained together.
    • statusReason

      default ChangeSetSummary.Builder statusReason(Consumer<StatusReason.Builder> 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.

      This is a convenience method that creates an instance of the StatusReason.Builder avoiding the need to create one manually via StatusReason.builder().

      When the Consumer completes, SdkBuilder.build() is called immediately and its result is passed to statusReason(StatusReason).

      Parameters:
      statusReason - a consumer that will call methods on StatusReason.Builder
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • id

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

      Parameters:
      id - The change set's opaque instance ID. Requests take it as changeSetId.
      Returns:
      Returns a reference to this object so that method calls can be chained together.