Interface AgenticConnector.Builder

  • Method Details

    • id

      The identifier of the connector.

      Parameters:
      id - The identifier of the connector.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • name

      The name of the connector.

      Parameters:
      name - The name of the connector.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • description

      AgenticConnector.Builder description(String description)

      The description of the connector.

      Parameters:
      description - The description of the connector.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • serverType

      AgenticConnector.Builder serverType(String serverType)

      Where the connector's server runs:

      • HOSTED – The server is accessed through a URL.

      • LOCAL – The server runs on the WorkSpace.

      Parameters:
      serverType - Where the connector's server runs:

      • HOSTED – The server is accessed through a URL.

      • LOCAL – The server runs on the WorkSpace.

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

      Where the connector's server runs:

      • HOSTED – The server is accessed through a URL.

      • LOCAL – The server runs on the WorkSpace.

      Parameters:
      serverType - Where the connector's server runs:

      • HOSTED – The server is accessed through a URL.

      • LOCAL – The server runs on the WorkSpace.

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

      The URL of a hosted connector's server.

      Parameters:
      url - The URL of a hosted connector's server.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • command

      AgenticConnector.Builder command(String command)

      The command that starts a local connector's server.

      Parameters:
      command - The command that starts a local connector's server.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • args

      The arguments passed to a local connector's command.

      Parameters:
      args - The arguments passed to a local connector's command.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • args

      The arguments passed to a local connector's command.

      Parameters:
      args - The arguments passed to a local connector's command.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • authType

      AgenticConnector.Builder authType(String authType)

      How the connector authenticates:

      • OAUTH – The connector uses OAuth.

      • API_KEY – The connector uses an API key.

      • NONE – The connector doesn't require authentication.

      Parameters:
      authType - How the connector authenticates:

      • OAUTH – The connector uses OAuth.

      • API_KEY – The connector uses an API key.

      • NONE – The connector doesn't require authentication.

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

      How the connector authenticates:

      • OAUTH – The connector uses OAuth.

      • API_KEY – The connector uses an API key.

      • NONE – The connector doesn't require authentication.

      Parameters:
      authType - How the connector authenticates:

      • OAUTH – The connector uses OAuth.

      • API_KEY – The connector uses an API key.

      • NONE – The connector doesn't require authentication.

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

      The OAuth settings, when AuthType is OAUTH.

      Parameters:
      oAuthConfig - The OAuth settings, when AuthType is OAUTH.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • oAuthConfig

      The OAuth settings, when AuthType is OAUTH.

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

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

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

      AgenticConnector.Builder apiKeySecretArn(String apiKeySecretArn)

      The Amazon Resource Name (ARN) of the Amazon Web Services Secrets Manager secret that holds the API key, when AuthType is API_KEY. This field is absent when AuthType isn't API_KEY.

      Parameters:
      apiKeySecretArn - The Amazon Resource Name (ARN) of the Amazon Web Services Secrets Manager secret that holds the API key, when AuthType is API_KEY. This field is absent when AuthType isn't API_KEY.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • allowedTools

      AgenticConnector.Builder allowedTools(Collection<String> allowedTools)

      The connector tools the agent can use. If absent, all tools not in BlockedTools are allowed.

      Parameters:
      allowedTools - The connector tools the agent can use. If absent, all tools not in BlockedTools are allowed.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • allowedTools

      AgenticConnector.Builder allowedTools(String... allowedTools)

      The connector tools the agent can use. If absent, all tools not in BlockedTools are allowed.

      Parameters:
      allowedTools - The connector tools the agent can use. If absent, all tools not in BlockedTools are allowed.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • blockedTools

      AgenticConnector.Builder blockedTools(Collection<String> blockedTools)

      The connector tools the agent can't use.

      Parameters:
      blockedTools - The connector tools the agent can't use.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • blockedTools

      AgenticConnector.Builder blockedTools(String... blockedTools)

      The connector tools the agent can't use.

      Parameters:
      blockedTools - The connector tools the agent can't use.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • createdAt

      AgenticConnector.Builder createdAt(Instant createdAt)

      The creation time of the connector. You might not see this field for every connector.

      Parameters:
      createdAt - The creation time of the connector. You might not see this field for every connector.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • updatedAt

      AgenticConnector.Builder updatedAt(Instant updatedAt)

      The time when the connector's activation status last changed for your account. Your account doesn't see this field for a connector it has never activated.

      Parameters:
      updatedAt - The time when the connector's activation status last changed for your account. Your account doesn't see this field for a connector it has never activated.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • activationStatus

      AgenticConnector.Builder activationStatus(String activationStatus)

      The activation status of the connector for your account:

      • ACTIVATED – You activated the connector.

      • DEACTIVATED – You deactivated the connector.

      • PENDING – The service is activating the connector.

      • PENDING_DELETE – The service is deactivating the connector.

      • ACTIVATION_ERROR – The service couldn't activate the connector.

      • DEACTIVATION_ERROR – The service couldn't deactivate the connector.

      Parameters:
      activationStatus - The activation status of the connector for your account:

      • ACTIVATED – You activated the connector.

      • DEACTIVATED – You deactivated the connector.

      • PENDING – The service is activating the connector.

      • PENDING_DELETE – The service is deactivating the connector.

      • ACTIVATION_ERROR – The service couldn't activate the connector.

      • DEACTIVATION_ERROR – The service couldn't deactivate the connector.

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

      AgenticConnector.Builder activationStatus(AgenticConnectorActivationStatus activationStatus)

      The activation status of the connector for your account:

      • ACTIVATED – You activated the connector.

      • DEACTIVATED – You deactivated the connector.

      • PENDING – The service is activating the connector.

      • PENDING_DELETE – The service is deactivating the connector.

      • ACTIVATION_ERROR – The service couldn't activate the connector.

      • DEACTIVATION_ERROR – The service couldn't deactivate the connector.

      Parameters:
      activationStatus - The activation status of the connector for your account:

      • ACTIVATED – You activated the connector.

      • DEACTIVATED – You deactivated the connector.

      • PENDING – The service is activating the connector.

      • PENDING_DELETE – The service is deactivating the connector.

      • ACTIVATION_ERROR – The service couldn't activate the connector.

      • DEACTIVATION_ERROR – The service couldn't deactivate the connector.

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