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 action group invocation.
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 interfaceInvocationResultMember.Builderstatic classInvocationResultMember.Type
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description ApiResultapiResult()The result from the API response from the action group invocation.static InvocationResultMember.Builderbuilder()booleanequals(Object obj)booleanequalsBySdkFields(Object obj)static InvocationResultMemberfromApiResult(Consumer<ApiResult.Builder> apiResult)Create an instance of this class withapiResult()initialized to the given value.static InvocationResultMemberfromApiResult(ApiResult apiResult)Create an instance of this class withapiResult()initialized to the given value.static InvocationResultMemberfromFunctionResult(Consumer<FunctionResult.Builder> functionResult)Create an instance of this class withfunctionResult()initialized to the given value.static InvocationResultMemberfromFunctionResult(FunctionResult functionResult)Create an instance of this class withfunctionResult()initialized to the given value.FunctionResultfunctionResult()The result from the function from the action group invocation.<T> Optional<T>getValueForField(String fieldName, Class<T> clazz)inthashCode()List<SdkField<?>>sdkFields()static Class<? extends InvocationResultMember.Builder>serializableBuilderClass()InvocationResultMember.BuildertoBuilder()StringtoString()Returns a string representation of this object.InvocationResultMember.Typetype()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:
toBuilderin 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:
equalsBySdkFieldsin 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_VERSIONif 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_VERSIONif zero members are set, andnullif more than one member is set.
-
-