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

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

Go to download

The AWS Java SDK for Agents for Amazon Bedrock module holds the client classes that are used for communicating with Agents for Amazon Bedrock Service

The newest version!
/*
 * 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 UpdateAgentActionGroupRequest 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 unique identifier of the action group. *

*/ private String actionGroupId; /** *

* Specifies a new name for 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 update the action group. *

*/ private String agentId; /** *

* The unique identifier of the agent version for which to update 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; /** *

* Specifies a new name for the action group. *

*/ private String description; /** *

* Contains details about the function schema for the action group or the JSON or YAML-formatted payload defining * the schema. *

*/ private FunctionSchema functionSchema; /** *

* 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 UpdateAgentActionGroupRequest withActionGroupExecutor(ActionGroupExecutor actionGroupExecutor) { setActionGroupExecutor(actionGroupExecutor); return this; } /** *

* The unique identifier of the action group. *

* * @param actionGroupId * The unique identifier of the action group. */ public void setActionGroupId(String actionGroupId) { this.actionGroupId = actionGroupId; } /** *

* The unique identifier of the action group. *

* * @return The unique identifier of the action group. */ public String getActionGroupId() { return this.actionGroupId; } /** *

* The unique identifier of the action group. *

* * @param actionGroupId * The unique identifier of the action group. * @return Returns a reference to this object so that method calls can be chained together. */ public UpdateAgentActionGroupRequest withActionGroupId(String actionGroupId) { setActionGroupId(actionGroupId); return this; } /** *

* Specifies a new name for the action group. *

* * @param actionGroupName * Specifies a new name for the action group. */ public void setActionGroupName(String actionGroupName) { this.actionGroupName = actionGroupName; } /** *

* Specifies a new name for the action group. *

* * @return Specifies a new name for the action group. */ public String getActionGroupName() { return this.actionGroupName; } /** *

* Specifies a new name for the action group. *

* * @param actionGroupName * Specifies a new name for the action group. * @return Returns a reference to this object so that method calls can be chained together. */ public UpdateAgentActionGroupRequest 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 UpdateAgentActionGroupRequest 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 UpdateAgentActionGroupRequest withActionGroupState(ActionGroupState actionGroupState) { this.actionGroupState = actionGroupState.toString(); return this; } /** *

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

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

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

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

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

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

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

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

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

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

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

* * @param agentVersion * The unique identifier of the agent version for which to update the action group. * @return Returns a reference to this object so that method calls can be chained together. */ public UpdateAgentActionGroupRequest 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 UpdateAgentActionGroupRequest withApiSchema(APISchema apiSchema) { setApiSchema(apiSchema); return this; } /** *

* Specifies a new name for the action group. *

* * @param description * Specifies a new name for the action group. */ public void setDescription(String description) { this.description = description; } /** *

* Specifies a new name for the action group. *

* * @return Specifies a new name for the action group. */ public String getDescription() { return this.description; } /** *

* Specifies a new name for the action group. *

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

* Contains details about the function schema for the action group or the JSON or YAML-formatted payload defining * the schema. *

* * @param functionSchema * Contains details about the function schema for the action group or the JSON or YAML-formatted payload * defining the schema. */ public void setFunctionSchema(FunctionSchema functionSchema) { this.functionSchema = functionSchema; } /** *

* Contains details about the function schema for the action group or the JSON or YAML-formatted payload defining * the schema. *

* * @return Contains details about the function schema for the action group or the JSON or YAML-formatted payload * defining the schema. */ public FunctionSchema getFunctionSchema() { return this.functionSchema; } /** *

* Contains details about the function schema for the action group or the JSON or YAML-formatted payload defining * the schema. *

* * @param functionSchema * Contains details about the function schema for the action group or the JSON or YAML-formatted payload * defining the schema. * @return Returns a reference to this object so that method calls can be chained together. */ public UpdateAgentActionGroupRequest withFunctionSchema(FunctionSchema functionSchema) { setFunctionSchema(functionSchema); 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 UpdateAgentActionGroupRequest 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 UpdateAgentActionGroupRequest 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 (getActionGroupId() != null) sb.append("ActionGroupId: ").append(getActionGroupId()).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 (getDescription() != null) sb.append("Description: ").append(getDescription()).append(","); if (getFunctionSchema() != null) sb.append("FunctionSchema: ").append(getFunctionSchema()).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 UpdateAgentActionGroupRequest == false) return false; UpdateAgentActionGroupRequest other = (UpdateAgentActionGroupRequest) obj; if (other.getActionGroupExecutor() == null ^ this.getActionGroupExecutor() == null) return false; if (other.getActionGroupExecutor() != null && other.getActionGroupExecutor().equals(this.getActionGroupExecutor()) == false) return false; if (other.getActionGroupId() == null ^ this.getActionGroupId() == null) return false; if (other.getActionGroupId() != null && other.getActionGroupId().equals(this.getActionGroupId()) == 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.getDescription() == null ^ this.getDescription() == null) return false; if (other.getDescription() != null && other.getDescription().equals(this.getDescription()) == false) return false; if (other.getFunctionSchema() == null ^ this.getFunctionSchema() == null) return false; if (other.getFunctionSchema() != null && other.getFunctionSchema().equals(this.getFunctionSchema()) == 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 + ((getActionGroupId() == null) ? 0 : getActionGroupId().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 + ((getDescription() == null) ? 0 : getDescription().hashCode()); hashCode = prime * hashCode + ((getFunctionSchema() == null) ? 0 : getFunctionSchema().hashCode()); hashCode = prime * hashCode + ((getParentActionGroupSignature() == null) ? 0 : getParentActionGroupSignature().hashCode()); return hashCode; } @Override public UpdateAgentActionGroupRequest clone() { return (UpdateAgentActionGroupRequest) super.clone(); } }





© 2015 - 2025 Weber Informatics LLC | Privacy Policy