Class InvocationResultMember
- java.lang.Object
-
- software.amazon.awssdk.services.bedrockagentruntime.model.InvocationResultMember
-
- All Implemented Interfaces:
Serializable
,SdkPojo
,ToCopyableBuilder<InvocationResultMember.Builder,InvocationResultMember>
@Generated("software.amazon.awssdk:codegen") public final class InvocationResultMember extends Object implements SdkPojo, Serializable, ToCopyableBuilder<InvocationResultMember.Builder,InvocationResultMember>
A result from the invocation of an action. For more information, see Return control to the agent developer and Control session context.
This data type is used in the following API operations:
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interface
InvocationResultMember.Builder
static class
InvocationResultMember.Type
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description ApiResult
apiResult()
The result from the API response from the action group invocation.static InvocationResultMember.Builder
builder()
boolean
equals(Object obj)
boolean
equalsBySdkFields(Object obj)
static InvocationResultMember
fromApiResult(Consumer<ApiResult.Builder> apiResult)
Create an instance of this class withapiResult()
initialized to the given value.static InvocationResultMember
fromApiResult(ApiResult apiResult)
Create an instance of this class withapiResult()
initialized to the given value.static InvocationResultMember
fromFunctionResult(Consumer<FunctionResult.Builder> functionResult)
Create an instance of this class withfunctionResult()
initialized to the given value.static InvocationResultMember
fromFunctionResult(FunctionResult functionResult)
Create an instance of this class withfunctionResult()
initialized to the given value.FunctionResult
functionResult()
The result from the function from the action group invocation.<T> Optional<T>
getValueForField(String fieldName, Class<T> clazz)
int
hashCode()
Map<String,SdkField<?>>
sdkFieldNameToField()
List<SdkField<?>>
sdkFields()
static Class<? extends InvocationResultMember.Builder>
serializableBuilderClass()
InvocationResultMember.Builder
toBuilder()
String
toString()
Returns a string representation of this object.InvocationResultMember.Type
type()
Retrieve an enum value representing which member of this object is populated.-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface software.amazon.awssdk.utils.builder.ToCopyableBuilder
copy
-
-
-
-
Method Detail
-
apiResult
public final ApiResult apiResult()
The result from the API response from the action group invocation.
- Returns:
- The result from the API response from the action group invocation.
-
functionResult
public final FunctionResult functionResult()
The result from the function from the action group invocation.
- Returns:
- The result from the function from the action group invocation.
-
toBuilder
public InvocationResultMember.Builder toBuilder()
- Specified by:
toBuilder
in interfaceToCopyableBuilder<InvocationResultMember.Builder,InvocationResultMember>
-
builder
public static InvocationResultMember.Builder builder()
-
serializableBuilderClass
public static Class<? extends InvocationResultMember.Builder> serializableBuilderClass()
-
equalsBySdkFields
public final boolean equalsBySdkFields(Object obj)
- Specified by:
equalsBySdkFields
in interfaceSdkPojo
-
toString
public final String toString()
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.
-
fromApiResult
public static InvocationResultMember fromApiResult(ApiResult apiResult)
Create an instance of this class withapiResult()
initialized to the given value.The result from the API response from the action group invocation.
- Parameters:
apiResult
- The result from the API response from the action group invocation.
-
fromApiResult
public static InvocationResultMember fromApiResult(Consumer<ApiResult.Builder> apiResult)
Create an instance of this class withapiResult()
initialized to the given value.The result from the API response from the action group invocation.
- Parameters:
apiResult
- The result from the API response from the action group invocation.
-
fromFunctionResult
public static InvocationResultMember fromFunctionResult(FunctionResult functionResult)
Create an instance of this class withfunctionResult()
initialized to the given value.The result from the function from the action group invocation.
- Parameters:
functionResult
- The result from the function from the action group invocation.
-
fromFunctionResult
public static InvocationResultMember fromFunctionResult(Consumer<FunctionResult.Builder> functionResult)
Create an instance of this class withfunctionResult()
initialized to the given value.The result from the function from the action group invocation.
- Parameters:
functionResult
- The result from the function from the action group invocation.
-
type
public InvocationResultMember.Type type()
Retrieve an enum value representing which member of this object is populated. When this class is returned in a service response, this will beInvocationResultMember.Type.UNKNOWN_TO_SDK_VERSION
if the service returned a member that is only known to a newer SDK version. When this class is created directly in your code, this will beInvocationResultMember.Type.UNKNOWN_TO_SDK_VERSION
if zero members are set, andnull
if more than one member is set.
-
sdkFieldNameToField
public final Map<String,SdkField<?>> sdkFieldNameToField()
- Specified by:
sdkFieldNameToField
in interfaceSdkPojo
-
-