Interface CreateAgentContextRequest.Builder

  • Method Details

    • clientToken

      CreateAgentContextRequest.Builder clientToken(String clientToken)

      Client idempotency token. The AWS SDKs generate one when it is absent. An identical request with the same token returns the existing agent context. The same token with a different request returns ValidationException. trustedIdentitySources with the same entries in another order is the same request.

      Parameters:
      clientToken - Client idempotency token. The AWS SDKs generate one when it is absent. An identical request with the same token returns the existing agent context. The same token with a different request returns ValidationException. trustedIdentitySources with the same entries in another order is the same request.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • name

      Optional. The name of the agent context. If you omit it, the name is default. You can change it later with UpdateAgentContext.

      Parameters:
      name - Optional. The name of the agent context. If you omit it, the name is default. You can change it later with UpdateAgentContext.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • description

      CreateAgentContextRequest.Builder description(String description)

      Optional human-readable description of the agent context. An empty string is the same as none.

      Parameters:
      description - Optional human-readable description of the agent context. An empty string is the same as none.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • connectionMappings

      CreateAgentContextRequest.Builder connectionMappings(Collection<ConnectionMapping> connectionMappings)

      The connection mappings for this agent context, up to 20. CreateAgentContext requires at least one: an empty list returns ValidationException. Each entry binds a connection to one or more ontologies, optionally scoped by a data filter, extraction depth, and path segments. Each referenced connection must exist, be owned by your account, and be ACTIVE. Order is significant. When several connections reach the same AWS Glue Data Catalog table, AWS Context tries the connection mapped first, with its own access, and then the next.

      Parameters:
      connectionMappings - The connection mappings for this agent context, up to 20. CreateAgentContext requires at least one: an empty list returns ValidationException. Each entry binds a connection to one or more ontologies, optionally scoped by a data filter, extraction depth, and path segments. Each referenced connection must exist, be owned by your account, and be ACTIVE. Order is significant. When several connections reach the same AWS Glue Data Catalog table, AWS Context tries the connection mapped first, with its own access, and then the next.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • connectionMappings

      CreateAgentContextRequest.Builder connectionMappings(ConnectionMapping... connectionMappings)

      The connection mappings for this agent context, up to 20. CreateAgentContext requires at least one: an empty list returns ValidationException. Each entry binds a connection to one or more ontologies, optionally scoped by a data filter, extraction depth, and path segments. Each referenced connection must exist, be owned by your account, and be ACTIVE. Order is significant. When several connections reach the same AWS Glue Data Catalog table, AWS Context tries the connection mapped first, with its own access, and then the next.

      Parameters:
      connectionMappings - The connection mappings for this agent context, up to 20. CreateAgentContext requires at least one: an empty list returns ValidationException. Each entry binds a connection to one or more ontologies, optionally scoped by a data filter, extraction depth, and path segments. Each referenced connection must exist, be owned by your account, and be ACTIVE. Order is significant. When several connections reach the same AWS Glue Data Catalog table, AWS Context tries the connection mapped first, with its own access, and then the next.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • connectionMappings

      CreateAgentContextRequest.Builder connectionMappings(Consumer<ConnectionMapping.Builder>... connectionMappings)

      The connection mappings for this agent context, up to 20. CreateAgentContext requires at least one: an empty list returns ValidationException. Each entry binds a connection to one or more ontologies, optionally scoped by a data filter, extraction depth, and path segments. Each referenced connection must exist, be owned by your account, and be ACTIVE. Order is significant. When several connections reach the same AWS Glue Data Catalog table, AWS Context tries the connection mapped first, with its own access, and then the next.

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

      When the Consumer completes, SdkBuilder.build() is called immediately and its result is passed to connectionMappings(List<ConnectionMapping>).

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

      CreateAgentContextRequest.Builder traceAnalysisConfig(TraceAnalysisConfig traceAnalysisConfig)

      The agent context's trace analysis settings. Optional. You can change it with UpdateAgentContext.

      Parameters:
      traceAnalysisConfig - The agent context's trace analysis settings. Optional. You can change it with UpdateAgentContext.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • traceAnalysisConfig

      default CreateAgentContextRequest.Builder traceAnalysisConfig(Consumer<TraceAnalysisConfig.Builder> traceAnalysisConfig)

      The agent context's trace analysis settings. Optional. You can change it with UpdateAgentContext.

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

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

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

      CreateAgentContextRequest.Builder workforceSignInConfig(WorkforceSignInConfig workforceSignInConfig)

      Optional workforce sign-in settings. A config with signInUrl turns sign-in on ( status defaults to ENABLED). status ENABLED without signInUrl is a ValidationException. You can change it with UpdateAgentContext.

      Parameters:
      workforceSignInConfig - Optional workforce sign-in settings. A config with signInUrl turns sign-in on ( status defaults to ENABLED). status ENABLED without signInUrl is a ValidationException. You can change it with UpdateAgentContext.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • workforceSignInConfig

      default CreateAgentContextRequest.Builder workforceSignInConfig(Consumer<WorkforceSignInConfig.Builder> workforceSignInConfig)

      Optional workforce sign-in settings. A config with signInUrl turns sign-in on ( status defaults to ENABLED). status ENABLED without signInUrl is a ValidationException. You can change it with UpdateAgentContext.

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

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

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

      CreateAgentContextRequest.Builder entityResolutionConfig(EntityResolutionConfig entityResolutionConfig)

      Optional entity resolution settings. When the config or its status is absent, status reads ENABLED. You can change it with UpdateAgentContext.

      Parameters:
      entityResolutionConfig - Optional entity resolution settings. When the config or its status is absent, status reads ENABLED. You can change it with UpdateAgentContext.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • entityResolutionConfig

      default CreateAgentContextRequest.Builder entityResolutionConfig(Consumer<EntityResolutionConfig.Builder> entityResolutionConfig)

      Optional entity resolution settings. When the config or its status is absent, status reads ENABLED. You can change it with UpdateAgentContext.

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

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

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

      CreateAgentContextRequest.Builder trustedIdentitySources(Collection<TrustedIdentitySource> trustedIdentitySources)

      Optional identity sources to trust in addition to your account. At most 100 unique entries, each with exactly one member. Order is not significant. An empty list and an absent member are the same value: only your account is trusted. You can change it with UpdateAgentContext.

      Parameters:
      trustedIdentitySources - Optional identity sources to trust in addition to your account. At most 100 unique entries, each with exactly one member. Order is not significant. An empty list and an absent member are the same value: only your account is trusted. You can change it with UpdateAgentContext.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • trustedIdentitySources

      CreateAgentContextRequest.Builder trustedIdentitySources(TrustedIdentitySource... trustedIdentitySources)

      Optional identity sources to trust in addition to your account. At most 100 unique entries, each with exactly one member. Order is not significant. An empty list and an absent member are the same value: only your account is trusted. You can change it with UpdateAgentContext.

      Parameters:
      trustedIdentitySources - Optional identity sources to trust in addition to your account. At most 100 unique entries, each with exactly one member. Order is not significant. An empty list and an absent member are the same value: only your account is trusted. You can change it with UpdateAgentContext.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • trustedIdentitySources

      CreateAgentContextRequest.Builder trustedIdentitySources(Consumer<TrustedIdentitySource.Builder>... trustedIdentitySources)

      Optional identity sources to trust in addition to your account. At most 100 unique entries, each with exactly one member. Order is not significant. An empty list and an absent member are the same value: only your account is trusted. You can change it with UpdateAgentContext.

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

      When the Consumer completes, SdkBuilder.build() is called immediately and its result is passed to trustedIdentitySources(List<TrustedIdentitySource>).

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

      Tags to add to the agent context when you create it: up to 200 in the request, of which at most 50 can be user tags. Keys can't start with aws:. To add tags, you also need context:TagResource permission on the new agent context. If you specify more than 50 user tags, the request fails with ServiceQuotaExceededException, as on TagResource. If an AWS Organizations tag policy refuses a tag, the request fails with ValidationException.

      Parameters:
      tags - Tags to add to the agent context when you create it: up to 200 in the request, of which at most 50 can be user tags. Keys can't start with aws:. To add tags, you also need context:TagResource permission on the new agent context. If you specify more than 50 user tags, the request fails with ServiceQuotaExceededException, as on TagResource. If an AWS Organizations tag policy refuses a tag, the request fails with ValidationException.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • curationPolicyIds

      CreateAgentContextRequest.Builder curationPolicyIds(Collection<String> curationPolicyIds)

      Curation policies to associate with the new agent context, as IDs or ARNs, instead of the default curation policies. If you omit it or the list is empty, AWS Context associates the default curation policies. Each policy must be ACTIVE and owned by your account, and you need context:AssociateCurationPolicy permission on each. AWS Context checks both again on a clientToken retry. If a policy doesn't exist, the request fails with ResourceNotFoundException. If one has been deleted, it fails with ConflictException . Change the policies later with AssociateCurationPolicy and DisassociateCurationPolicy.

      Parameters:
      curationPolicyIds - Curation policies to associate with the new agent context, as IDs or ARNs, instead of the default curation policies. If you omit it or the list is empty, AWS Context associates the default curation policies. Each policy must be ACTIVE and owned by your account, and you need context:AssociateCurationPolicy permission on each. AWS Context checks both again on a clientToken retry. If a policy doesn't exist, the request fails with ResourceNotFoundException. If one has been deleted, it fails with ConflictException. Change the policies later with AssociateCurationPolicy and DisassociateCurationPolicy.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • curationPolicyIds

      CreateAgentContextRequest.Builder curationPolicyIds(String... curationPolicyIds)

      Curation policies to associate with the new agent context, as IDs or ARNs, instead of the default curation policies. If you omit it or the list is empty, AWS Context associates the default curation policies. Each policy must be ACTIVE and owned by your account, and you need context:AssociateCurationPolicy permission on each. AWS Context checks both again on a clientToken retry. If a policy doesn't exist, the request fails with ResourceNotFoundException. If one has been deleted, it fails with ConflictException . Change the policies later with AssociateCurationPolicy and DisassociateCurationPolicy.

      Parameters:
      curationPolicyIds - Curation policies to associate with the new agent context, as IDs or ARNs, instead of the default curation policies. If you omit it or the list is empty, AWS Context associates the default curation policies. Each policy must be ACTIVE and owned by your account, and you need context:AssociateCurationPolicy permission on each. AWS Context checks both again on a clientToken retry. If a policy doesn't exist, the request fails with ResourceNotFoundException. If one has been deleted, it fails with ConflictException. Change the policies later with AssociateCurationPolicy and DisassociateCurationPolicy.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • overrideConfiguration

      CreateAgentContextRequest.Builder overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration)
      Description copied from interface: AwsRequest.Builder
      Add an optional request override configuration.
      Specified by:
      overrideConfiguration in interface AwsRequest.Builder
      Parameters:
      overrideConfiguration - The override configuration.
      Returns:
      This object for method chaining.
    • overrideConfiguration

      Description copied from interface: AwsRequest.Builder
      Add an optional request override configuration.
      Specified by:
      overrideConfiguration in interface AwsRequest.Builder
      Parameters:
      builderConsumer - A Consumer to which an empty AwsRequestOverrideConfiguration.Builder will be given.
      Returns:
      This object for method chaining.