All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.amazonaws.services.bedrockagent.model.CreateAgentActionGroupRequest Maven / Gradle / Ivy

/*
 * Copyright 2019-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved.
 * 
 * Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with
 * the License. A copy of the License is located at
 * 
 * http://aws.amazon.com/apache2.0
 * 
 * or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
 * CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions
 * and limitations under the License.
 */
package com.amazonaws.services.bedrockagent.model;

import java.io.Serializable;
import javax.annotation.Generated;

import com.amazonaws.AmazonWebServiceRequest;

/**
 * 
 * @see AWS API Documentation
 */
@Generated("com.amazonaws:aws-java-sdk-code-generator")
public class CreateAgentActionGroupRequest extends com.amazonaws.AmazonWebServiceRequest implements Serializable, Cloneable {

    /**
     * 

* The Amazon Resource Name (ARN) of the Lambda function containing the business logic that is carried out upon * invoking the action. *

*/ private ActionGroupExecutor actionGroupExecutor; /** *

* The name to give the action group. *

*/ private String actionGroupName; /** *

* Specifies whether the action group is available for the agent to invoke or not when sending an InvokeAgent * request. *

*/ private String actionGroupState; /** *

* The unique identifier of the agent for which to create the action group. *

*/ private String agentId; /** *

* The version of the agent for which to create the action group. *

*/ private String agentVersion; /** *

* Contains either details about the S3 object containing the OpenAPI schema for the action group or the JSON or * YAML-formatted payload defining the schema. For more information, see Action group OpenAPI * schemas. *

*/ private APISchema apiSchema; /** *

* A unique, case-sensitive identifier to ensure that the API request completes no more than one time. If this token * matches a previous request, Amazon Bedrock ignores the request, but does not return an error. For more * information, see Ensuring * idempotency. *

*/ private String clientToken; /** *

* A description of the action group. *

*/ private String description; /** *

* To allow your agent to request the user for additional information when trying to complete a task, set this field * to AMAZON.UserInput. You must leave the description, apiSchema, and * actionGroupExecutor fields blank for this action group. *

*

* During orchestration, if your agent determines that it needs to invoke an API in an action group, but doesn't * have enough information to complete the API request, it will invoke this action group instead and return an Observation * reprompting the user for more information. *

*/ private String parentActionGroupSignature; /** *

* The Amazon Resource Name (ARN) of the Lambda function containing the business logic that is carried out upon * invoking the action. *

* * @param actionGroupExecutor * The Amazon Resource Name (ARN) of the Lambda function containing the business logic that is carried out * upon invoking the action. */ public void setActionGroupExecutor(ActionGroupExecutor actionGroupExecutor) { this.actionGroupExecutor = actionGroupExecutor; } /** *

* The Amazon Resource Name (ARN) of the Lambda function containing the business logic that is carried out upon * invoking the action. *

* * @return The Amazon Resource Name (ARN) of the Lambda function containing the business logic that is carried out * upon invoking the action. */ public ActionGroupExecutor getActionGroupExecutor() { return this.actionGroupExecutor; } /** *

* The Amazon Resource Name (ARN) of the Lambda function containing the business logic that is carried out upon * invoking the action. *

* * @param actionGroupExecutor * The Amazon Resource Name (ARN) of the Lambda function containing the business logic that is carried out * upon invoking the action. * @return Returns a reference to this object so that method calls can be chained together. */ public CreateAgentActionGroupRequest withActionGroupExecutor(ActionGroupExecutor actionGroupExecutor) { setActionGroupExecutor(actionGroupExecutor); return this; } /** *

* The name to give the action group. *

* * @param actionGroupName * The name to give the action group. */ public void setActionGroupName(String actionGroupName) { this.actionGroupName = actionGroupName; } /** *

* The name to give the action group. *

* * @return The name to give the action group. */ public String getActionGroupName() { return this.actionGroupName; } /** *

* The name to give the action group. *

* * @param actionGroupName * The name to give the action group. * @return Returns a reference to this object so that method calls can be chained together. */ public CreateAgentActionGroupRequest withActionGroupName(String actionGroupName) { setActionGroupName(actionGroupName); return this; } /** *

* Specifies whether the action group is available for the agent to invoke or not when sending an InvokeAgent * request. *

* * @param actionGroupState * Specifies whether the action group is available for the agent to invoke or not when sending an InvokeAgent request. * @see ActionGroupState */ public void setActionGroupState(String actionGroupState) { this.actionGroupState = actionGroupState; } /** *

* Specifies whether the action group is available for the agent to invoke or not when sending an InvokeAgent * request. *

* * @return Specifies whether the action group is available for the agent to invoke or not when sending an InvokeAgent request. * @see ActionGroupState */ public String getActionGroupState() { return this.actionGroupState; } /** *

* Specifies whether the action group is available for the agent to invoke or not when sending an InvokeAgent * request. *

* * @param actionGroupState * Specifies whether the action group is available for the agent to invoke or not when sending an InvokeAgent request. * @return Returns a reference to this object so that method calls can be chained together. * @see ActionGroupState */ public CreateAgentActionGroupRequest withActionGroupState(String actionGroupState) { setActionGroupState(actionGroupState); return this; } /** *

* Specifies whether the action group is available for the agent to invoke or not when sending an InvokeAgent * request. *

* * @param actionGroupState * Specifies whether the action group is available for the agent to invoke or not when sending an InvokeAgent request. * @return Returns a reference to this object so that method calls can be chained together. * @see ActionGroupState */ public CreateAgentActionGroupRequest withActionGroupState(ActionGroupState actionGroupState) { this.actionGroupState = actionGroupState.toString(); return this; } /** *

* The unique identifier of the agent for which to create the action group. *

* * @param agentId * The unique identifier of the agent for which to create the action group. */ public void setAgentId(String agentId) { this.agentId = agentId; } /** *

* The unique identifier of the agent for which to create the action group. *

* * @return The unique identifier of the agent for which to create the action group. */ public String getAgentId() { return this.agentId; } /** *

* The unique identifier of the agent for which to create the action group. *

* * @param agentId * The unique identifier of the agent for which to create the action group. * @return Returns a reference to this object so that method calls can be chained together. */ public CreateAgentActionGroupRequest withAgentId(String agentId) { setAgentId(agentId); return this; } /** *

* The version of the agent for which to create the action group. *

* * @param agentVersion * The version of the agent for which to create the action group. */ public void setAgentVersion(String agentVersion) { this.agentVersion = agentVersion; } /** *

* The version of the agent for which to create the action group. *

* * @return The version of the agent for which to create the action group. */ public String getAgentVersion() { return this.agentVersion; } /** *

* The version of the agent for which to create the action group. *

* * @param agentVersion * The version of the agent for which to create the action group. * @return Returns a reference to this object so that method calls can be chained together. */ public CreateAgentActionGroupRequest withAgentVersion(String agentVersion) { setAgentVersion(agentVersion); return this; } /** *

* Contains either details about the S3 object containing the OpenAPI schema for the action group or the JSON or * YAML-formatted payload defining the schema. For more information, see Action group OpenAPI * schemas. *

* * @param apiSchema * Contains either details about the S3 object containing the OpenAPI schema for the action group or the JSON * or YAML-formatted payload defining the schema. For more information, see Action group OpenAPI * schemas. */ public void setApiSchema(APISchema apiSchema) { this.apiSchema = apiSchema; } /** *

* Contains either details about the S3 object containing the OpenAPI schema for the action group or the JSON or * YAML-formatted payload defining the schema. For more information, see Action group OpenAPI * schemas. *

* * @return Contains either details about the S3 object containing the OpenAPI schema for the action group or the * JSON or YAML-formatted payload defining the schema. For more information, see Action group OpenAPI * schemas. */ public APISchema getApiSchema() { return this.apiSchema; } /** *

* Contains either details about the S3 object containing the OpenAPI schema for the action group or the JSON or * YAML-formatted payload defining the schema. For more information, see Action group OpenAPI * schemas. *

* * @param apiSchema * Contains either details about the S3 object containing the OpenAPI schema for the action group or the JSON * or YAML-formatted payload defining the schema. For more information, see Action group OpenAPI * schemas. * @return Returns a reference to this object so that method calls can be chained together. */ public CreateAgentActionGroupRequest withApiSchema(APISchema apiSchema) { setApiSchema(apiSchema); return this; } /** *

* A unique, case-sensitive identifier to ensure that the API request completes no more than one time. If this token * matches a previous request, Amazon Bedrock ignores the request, but does not return an error. For more * information, see Ensuring * idempotency. *

* * @param clientToken * A unique, case-sensitive identifier to ensure that the API request completes no more than one time. If * this token matches a previous request, Amazon Bedrock ignores the request, but does not return an error. * For more information, see Ensuring * idempotency. */ public void setClientToken(String clientToken) { this.clientToken = clientToken; } /** *

* A unique, case-sensitive identifier to ensure that the API request completes no more than one time. If this token * matches a previous request, Amazon Bedrock ignores the request, but does not return an error. For more * information, see Ensuring * idempotency. *

* * @return A unique, case-sensitive identifier to ensure that the API request completes no more than one time. If * this token matches a previous request, Amazon Bedrock ignores the request, but does not return an error. * For more information, see Ensuring * idempotency. */ public String getClientToken() { return this.clientToken; } /** *

* A unique, case-sensitive identifier to ensure that the API request completes no more than one time. If this token * matches a previous request, Amazon Bedrock ignores the request, but does not return an error. For more * information, see Ensuring * idempotency. *

* * @param clientToken * A unique, case-sensitive identifier to ensure that the API request completes no more than one time. If * this token matches a previous request, Amazon Bedrock ignores the request, but does not return an error. * For more information, see Ensuring * idempotency. * @return Returns a reference to this object so that method calls can be chained together. */ public CreateAgentActionGroupRequest withClientToken(String clientToken) { setClientToken(clientToken); return this; } /** *

* A description of the action group. *

* * @param description * A description of the action group. */ public void setDescription(String description) { this.description = description; } /** *

* A description of the action group. *

* * @return A description of the action group. */ public String getDescription() { return this.description; } /** *

* A description of the action group. *

* * @param description * A description of the action group. * @return Returns a reference to this object so that method calls can be chained together. */ public CreateAgentActionGroupRequest withDescription(String description) { setDescription(description); return this; } /** *

* To allow your agent to request the user for additional information when trying to complete a task, set this field * to AMAZON.UserInput. You must leave the description, apiSchema, and * actionGroupExecutor fields blank for this action group. *

*

* During orchestration, if your agent determines that it needs to invoke an API in an action group, but doesn't * have enough information to complete the API request, it will invoke this action group instead and return an Observation * reprompting the user for more information. *

* * @param parentActionGroupSignature * To allow your agent to request the user for additional information when trying to complete a task, set * this field to AMAZON.UserInput. You must leave the description, * apiSchema, and actionGroupExecutor fields blank for this action group.

*

* During orchestration, if your agent determines that it needs to invoke an API in an action group, but * doesn't have enough information to complete the API request, it will invoke this action group instead and * return an Observation reprompting the user for more information. * @see ActionGroupSignature */ public void setParentActionGroupSignature(String parentActionGroupSignature) { this.parentActionGroupSignature = parentActionGroupSignature; } /** *

* To allow your agent to request the user for additional information when trying to complete a task, set this field * to AMAZON.UserInput. You must leave the description, apiSchema, and * actionGroupExecutor fields blank for this action group. *

*

* During orchestration, if your agent determines that it needs to invoke an API in an action group, but doesn't * have enough information to complete the API request, it will invoke this action group instead and return an Observation * reprompting the user for more information. *

* * @return To allow your agent to request the user for additional information when trying to complete a task, set * this field to AMAZON.UserInput. You must leave the description, * apiSchema, and actionGroupExecutor fields blank for this action group.

*

* During orchestration, if your agent determines that it needs to invoke an API in an action group, but * doesn't have enough information to complete the API request, it will invoke this action group instead and * return an Observation reprompting the user for more information. * @see ActionGroupSignature */ public String getParentActionGroupSignature() { return this.parentActionGroupSignature; } /** *

* To allow your agent to request the user for additional information when trying to complete a task, set this field * to AMAZON.UserInput. You must leave the description, apiSchema, and * actionGroupExecutor fields blank for this action group. *

*

* During orchestration, if your agent determines that it needs to invoke an API in an action group, but doesn't * have enough information to complete the API request, it will invoke this action group instead and return an Observation * reprompting the user for more information. *

* * @param parentActionGroupSignature * To allow your agent to request the user for additional information when trying to complete a task, set * this field to AMAZON.UserInput. You must leave the description, * apiSchema, and actionGroupExecutor fields blank for this action group.

*

* During orchestration, if your agent determines that it needs to invoke an API in an action group, but * doesn't have enough information to complete the API request, it will invoke this action group instead and * return an Observation reprompting the user for more information. * @return Returns a reference to this object so that method calls can be chained together. * @see ActionGroupSignature */ public CreateAgentActionGroupRequest withParentActionGroupSignature(String parentActionGroupSignature) { setParentActionGroupSignature(parentActionGroupSignature); return this; } /** *

* To allow your agent to request the user for additional information when trying to complete a task, set this field * to AMAZON.UserInput. You must leave the description, apiSchema, and * actionGroupExecutor fields blank for this action group. *

*

* During orchestration, if your agent determines that it needs to invoke an API in an action group, but doesn't * have enough information to complete the API request, it will invoke this action group instead and return an Observation * reprompting the user for more information. *

* * @param parentActionGroupSignature * To allow your agent to request the user for additional information when trying to complete a task, set * this field to AMAZON.UserInput. You must leave the description, * apiSchema, and actionGroupExecutor fields blank for this action group.

*

* During orchestration, if your agent determines that it needs to invoke an API in an action group, but * doesn't have enough information to complete the API request, it will invoke this action group instead and * return an Observation reprompting the user for more information. * @return Returns a reference to this object so that method calls can be chained together. * @see ActionGroupSignature */ public CreateAgentActionGroupRequest withParentActionGroupSignature(ActionGroupSignature parentActionGroupSignature) { this.parentActionGroupSignature = parentActionGroupSignature.toString(); return this; } /** * 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. * * @return A string representation of this object. * * @see java.lang.Object#toString() */ @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); if (getActionGroupExecutor() != null) sb.append("ActionGroupExecutor: ").append(getActionGroupExecutor()).append(","); if (getActionGroupName() != null) sb.append("ActionGroupName: ").append(getActionGroupName()).append(","); if (getActionGroupState() != null) sb.append("ActionGroupState: ").append(getActionGroupState()).append(","); if (getAgentId() != null) sb.append("AgentId: ").append(getAgentId()).append(","); if (getAgentVersion() != null) sb.append("AgentVersion: ").append(getAgentVersion()).append(","); if (getApiSchema() != null) sb.append("ApiSchema: ").append(getApiSchema()).append(","); if (getClientToken() != null) sb.append("ClientToken: ").append(getClientToken()).append(","); if (getDescription() != null) sb.append("Description: ").append(getDescription()).append(","); if (getParentActionGroupSignature() != null) sb.append("ParentActionGroupSignature: ").append(getParentActionGroupSignature()); sb.append("}"); return sb.toString(); } @Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof CreateAgentActionGroupRequest == false) return false; CreateAgentActionGroupRequest other = (CreateAgentActionGroupRequest) obj; if (other.getActionGroupExecutor() == null ^ this.getActionGroupExecutor() == null) return false; if (other.getActionGroupExecutor() != null && other.getActionGroupExecutor().equals(this.getActionGroupExecutor()) == false) return false; if (other.getActionGroupName() == null ^ this.getActionGroupName() == null) return false; if (other.getActionGroupName() != null && other.getActionGroupName().equals(this.getActionGroupName()) == false) return false; if (other.getActionGroupState() == null ^ this.getActionGroupState() == null) return false; if (other.getActionGroupState() != null && other.getActionGroupState().equals(this.getActionGroupState()) == false) return false; if (other.getAgentId() == null ^ this.getAgentId() == null) return false; if (other.getAgentId() != null && other.getAgentId().equals(this.getAgentId()) == false) return false; if (other.getAgentVersion() == null ^ this.getAgentVersion() == null) return false; if (other.getAgentVersion() != null && other.getAgentVersion().equals(this.getAgentVersion()) == false) return false; if (other.getApiSchema() == null ^ this.getApiSchema() == null) return false; if (other.getApiSchema() != null && other.getApiSchema().equals(this.getApiSchema()) == false) return false; if (other.getClientToken() == null ^ this.getClientToken() == null) return false; if (other.getClientToken() != null && other.getClientToken().equals(this.getClientToken()) == false) return false; if (other.getDescription() == null ^ this.getDescription() == null) return false; if (other.getDescription() != null && other.getDescription().equals(this.getDescription()) == false) return false; if (other.getParentActionGroupSignature() == null ^ this.getParentActionGroupSignature() == null) return false; if (other.getParentActionGroupSignature() != null && other.getParentActionGroupSignature().equals(this.getParentActionGroupSignature()) == false) return false; return true; } @Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getActionGroupExecutor() == null) ? 0 : getActionGroupExecutor().hashCode()); hashCode = prime * hashCode + ((getActionGroupName() == null) ? 0 : getActionGroupName().hashCode()); hashCode = prime * hashCode + ((getActionGroupState() == null) ? 0 : getActionGroupState().hashCode()); hashCode = prime * hashCode + ((getAgentId() == null) ? 0 : getAgentId().hashCode()); hashCode = prime * hashCode + ((getAgentVersion() == null) ? 0 : getAgentVersion().hashCode()); hashCode = prime * hashCode + ((getApiSchema() == null) ? 0 : getApiSchema().hashCode()); hashCode = prime * hashCode + ((getClientToken() == null) ? 0 : getClientToken().hashCode()); hashCode = prime * hashCode + ((getDescription() == null) ? 0 : getDescription().hashCode()); hashCode = prime * hashCode + ((getParentActionGroupSignature() == null) ? 0 : getParentActionGroupSignature().hashCode()); return hashCode; } @Override public CreateAgentActionGroupRequest clone() { return (CreateAgentActionGroupRequest) super.clone(); } }





© 2015 - 2025 Weber Informatics LLC | Privacy Policy