Interface CreateAgentContextRequest.Builder
- All Superinterfaces:
AwsRequest.Builder,Buildable,ContextRequest.Builder,CopyableBuilder<CreateAgentContextRequest.Builder,,CreateAgentContextRequest> SdkBuilder<CreateAgentContextRequest.Builder,,CreateAgentContextRequest> SdkPojo,SdkRequest.Builder
- Enclosing class:
CreateAgentContextRequest
-
Method Summary
Modifier and TypeMethodDescriptionclientToken(String clientToken) Client idempotency token.connectionMappings(Collection<ConnectionMapping> connectionMappings) The connection mappings for this agent context, up to 20.connectionMappings(Consumer<ConnectionMapping.Builder>... connectionMappings) The connection mappings for this agent context, up to 20.connectionMappings(ConnectionMapping... connectionMappings) The connection mappings for this agent context, up to 20.curationPolicyIds(String... curationPolicyIds) Curation policies to associate with the new agent context, as IDs or ARNs, instead of the default curation policies.curationPolicyIds(Collection<String> curationPolicyIds) Curation policies to associate with the new agent context, as IDs or ARNs, instead of the default curation policies.description(String description) Optional human-readable description of the agent context.entityResolutionConfig(Consumer<EntityResolutionConfig.Builder> entityResolutionConfig) Optional entity resolution settings.entityResolutionConfig(EntityResolutionConfig entityResolutionConfig) Optional entity resolution settings.Optional.overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer) Add an optional request override configuration.overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration) Add an optional request override configuration.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.traceAnalysisConfig(Consumer<TraceAnalysisConfig.Builder> traceAnalysisConfig) The agent context's trace analysis settings.traceAnalysisConfig(TraceAnalysisConfig traceAnalysisConfig) The agent context's trace analysis settings.trustedIdentitySources(Collection<TrustedIdentitySource> trustedIdentitySources) Optional identity sources to trust in addition to your account.trustedIdentitySources(Consumer<TrustedIdentitySource.Builder>... trustedIdentitySources) Optional identity sources to trust in addition to your account.trustedIdentitySources(TrustedIdentitySource... trustedIdentitySources) Optional identity sources to trust in addition to your account.workforceSignInConfig(Consumer<WorkforceSignInConfig.Builder> workforceSignInConfig) Optional workforce sign-in settings.workforceSignInConfig(WorkforceSignInConfig workforceSignInConfig) Optional workforce sign-in settings.Methods inherited from interface software.amazon.awssdk.awscore.AwsRequest.Builder
overrideConfigurationMethods inherited from interface software.amazon.awssdk.services.context.model.ContextRequest.Builder
buildMethods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copyMethods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, buildMethods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFieldNameToField, sdkFields
-
Method Details
-
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.
trustedIdentitySourceswith 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.trustedIdentitySourceswith 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 isdefault. You can change it later with UpdateAgentContext.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
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 beACTIVE. 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 returnsValidationException. 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 beACTIVE. 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
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 beACTIVE. 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 returnsValidationException. 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 beACTIVE. 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
This is a convenience method that creates an instance of theValidationException. 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 beACTIVE. 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.ConnectionMapping.Builderavoiding the need to create one manually viaConnectionMapping.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed toconnectionMappings(List<ConnectionMapping>).- Parameters:
connectionMappings- a consumer that will call methods onConnectionMapping.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
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 theTraceAnalysisConfig.Builderavoiding the need to create one manually viaTraceAnalysisConfig.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed totraceAnalysisConfig(TraceAnalysisConfig).- Parameters:
traceAnalysisConfig- a consumer that will call methods onTraceAnalysisConfig.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
signInUrlturns sign-in on (statusdefaults to ENABLED).statusENABLED withoutsignInUrlis a ValidationException. You can change it with UpdateAgentContext.- Parameters:
workforceSignInConfig- Optional workforce sign-in settings. A config withsignInUrlturns sign-in on (statusdefaults to ENABLED).statusENABLED withoutsignInUrlis 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
This is a convenience method that creates an instance of thesignInUrlturns sign-in on (statusdefaults to ENABLED).statusENABLED withoutsignInUrlis a ValidationException. You can change it with UpdateAgentContext.WorkforceSignInConfig.Builderavoiding the need to create one manually viaWorkforceSignInConfig.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed toworkforceSignInConfig(WorkforceSignInConfig).- Parameters:
workforceSignInConfig- a consumer that will call methods onWorkforceSignInConfig.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
statusis absent,statusreads ENABLED. You can change it with UpdateAgentContext.- Parameters:
entityResolutionConfig- Optional entity resolution settings. When the config or itsstatusis absent,statusreads 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
This is a convenience method that creates an instance of thestatusis absent,statusreads ENABLED. You can change it with UpdateAgentContext.EntityResolutionConfig.Builderavoiding the need to create one manually viaEntityResolutionConfig.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed toentityResolutionConfig(EntityResolutionConfig).- Parameters:
entityResolutionConfig- a consumer that will call methods onEntityResolutionConfig.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 theTrustedIdentitySource.Builderavoiding the need to create one manually viaTrustedIdentitySource.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed totrustedIdentitySources(List<TrustedIdentitySource>).- Parameters:
trustedIdentitySources- a consumer that will call methods onTrustedIdentitySource.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 needcontext:TagResourcepermission on the new agent context. If you specify more than 50 user tags, the request fails withServiceQuotaExceededException, as on TagResource. If an AWS Organizations tag policy refuses a tag, the request fails withValidationException.- 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 withaws:. To add tags, you also needcontext:TagResourcepermission on the new agent context. If you specify more than 50 user tags, the request fails withServiceQuotaExceededException, as on TagResource. If an AWS Organizations tag policy refuses a tag, the request fails withValidationException.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
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
ACTIVEand owned by your account, and you needcontext:AssociateCurationPolicypermission on each. AWS Context checks both again on aclientTokenretry. If a policy doesn't exist, the request fails withResourceNotFoundException. If one has been deleted, it fails withConflictException. 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 beACTIVEand owned by your account, and you needcontext:AssociateCurationPolicypermission on each. AWS Context checks both again on aclientTokenretry. If a policy doesn't exist, the request fails withResourceNotFoundException. If one has been deleted, it fails withConflictException. Change the policies later with AssociateCurationPolicy and DisassociateCurationPolicy.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
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
ACTIVEand owned by your account, and you needcontext:AssociateCurationPolicypermission on each. AWS Context checks both again on aclientTokenretry. If a policy doesn't exist, the request fails withResourceNotFoundException. If one has been deleted, it fails withConflictException. 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 beACTIVEand owned by your account, and you needcontext:AssociateCurationPolicypermission on each. AWS Context checks both again on aclientTokenretry. If a policy doesn't exist, the request fails withResourceNotFoundException. If one has been deleted, it fails withConflictException. 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.BuilderAdd an optional request override configuration.- Specified by:
overrideConfigurationin interfaceAwsRequest.Builder- Parameters:
overrideConfiguration- The override configuration.- Returns:
- This object for method chaining.
-
overrideConfiguration
CreateAgentContextRequest.Builder overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer) Description copied from interface:AwsRequest.BuilderAdd an optional request override configuration.- Specified by:
overrideConfigurationin interfaceAwsRequest.Builder- Parameters:
builderConsumer- AConsumerto which an emptyAwsRequestOverrideConfiguration.Builderwill be given.- Returns:
- This object for method chaining.
-