Class BrowserActionResult

java.lang.Object
software.amazon.awssdk.services.bedrockagentcore.model.BrowserActionResult
All Implemented Interfaces:
Serializable, SdkPojo, ToCopyableBuilder<BrowserActionResult.Builder,BrowserActionResult>

@Generated("software.amazon.awssdk:codegen") public final class BrowserActionResult extends Object implements SdkPojo, Serializable, ToCopyableBuilder<BrowserActionResult.Builder,BrowserActionResult>

The result of a browser action execution. Exactly one member is set, matching the action that was performed.

See Also:
  • Method Details

    • mouseClick

      public final MouseClickResult mouseClick()

      The result of a mouse click action.

      Returns:
      The result of a mouse click action.
    • mouseMove

      public final MouseMoveResult mouseMove()

      The result of a mouse move action.

      Returns:
      The result of a mouse move action.
    • mouseDrag

      public final MouseDragResult mouseDrag()

      The result of a mouse drag action.

      Returns:
      The result of a mouse drag action.
    • mouseScroll

      public final MouseScrollResult mouseScroll()

      The result of a mouse scroll action.

      Returns:
      The result of a mouse scroll action.
    • keyType

      public final KeyTypeResult keyType()

      The result of a key type action.

      Returns:
      The result of a key type action.
    • keyPress

      public final KeyPressResult keyPress()

      The result of a key press action.

      Returns:
      The result of a key press action.
    • keyShortcut

      public final KeyShortcutResult keyShortcut()

      The result of a key shortcut action.

      Returns:
      The result of a key shortcut action.
    • screenshot

      public final ScreenshotResult screenshot()

      The result of a screenshot action.

      Returns:
      The result of a screenshot action.
    • toBuilder

      public BrowserActionResult.Builder toBuilder()
      Description copied from interface: ToCopyableBuilder
      Take this object and create a builder that contains all of the current property values of this object.
      Specified by:
      toBuilder in interface ToCopyableBuilder<BrowserActionResult.Builder,BrowserActionResult>
      Returns:
      a builder for type T
    • builder

      public static BrowserActionResult.Builder builder()
    • serializableBuilderClass

      public static Class<? extends BrowserActionResult.Builder> serializableBuilderClass()
    • hashCode

      public final int hashCode()
      Overrides:
      hashCode in class Object
    • equals

      public final boolean equals(Object obj)
      Overrides:
      equals in class Object
    • equalsBySdkFields

      public final boolean equalsBySdkFields(Object obj)
      Description copied from interface: SdkPojo
      Indicates whether some other object is "equal to" this one by SDK fields. An SDK field is a modeled, non-inherited field in an SdkPojo class, and is generated based on a service model.

      If an SdkPojo class does not have any inherited fields, equalsBySdkFields and equals are essentially the same.

      Specified by:
      equalsBySdkFields in interface SdkPojo
      Parameters:
      obj - the object to be compared with
      Returns:
      true if the other object equals to this object by sdk fields, false otherwise.
    • 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.
      Overrides:
      toString in class Object
    • getValueForField

      public final <T> Optional<T> getValueForField(String fieldName, Class<T> clazz)
    • fromMouseClick

      public static BrowserActionResult fromMouseClick(MouseClickResult mouseClick)
      Create an instance of this class with mouseClick() initialized to the given value.

      The result of a mouse click action.

      Parameters:
      mouseClick - The result of a mouse click action.
    • fromMouseClick

      public static BrowserActionResult fromMouseClick(Consumer<MouseClickResult.Builder> mouseClick)
      Create an instance of this class with mouseClick() initialized to the given value.

      The result of a mouse click action.

      Parameters:
      mouseClick - The result of a mouse click action.
    • fromMouseMove

      public static BrowserActionResult fromMouseMove(MouseMoveResult mouseMove)
      Create an instance of this class with mouseMove() initialized to the given value.

      The result of a mouse move action.

      Parameters:
      mouseMove - The result of a mouse move action.
    • fromMouseMove

      public static BrowserActionResult fromMouseMove(Consumer<MouseMoveResult.Builder> mouseMove)
      Create an instance of this class with mouseMove() initialized to the given value.

      The result of a mouse move action.

      Parameters:
      mouseMove - The result of a mouse move action.
    • fromMouseDrag

      public static BrowserActionResult fromMouseDrag(MouseDragResult mouseDrag)
      Create an instance of this class with mouseDrag() initialized to the given value.

      The result of a mouse drag action.

      Parameters:
      mouseDrag - The result of a mouse drag action.
    • fromMouseDrag

      public static BrowserActionResult fromMouseDrag(Consumer<MouseDragResult.Builder> mouseDrag)
      Create an instance of this class with mouseDrag() initialized to the given value.

      The result of a mouse drag action.

      Parameters:
      mouseDrag - The result of a mouse drag action.
    • fromMouseScroll

      public static BrowserActionResult fromMouseScroll(MouseScrollResult mouseScroll)
      Create an instance of this class with mouseScroll() initialized to the given value.

      The result of a mouse scroll action.

      Parameters:
      mouseScroll - The result of a mouse scroll action.
    • fromMouseScroll

      public static BrowserActionResult fromMouseScroll(Consumer<MouseScrollResult.Builder> mouseScroll)
      Create an instance of this class with mouseScroll() initialized to the given value.

      The result of a mouse scroll action.

      Parameters:
      mouseScroll - The result of a mouse scroll action.
    • fromKeyType

      public static BrowserActionResult fromKeyType(KeyTypeResult keyType)
      Create an instance of this class with keyType() initialized to the given value.

      The result of a key type action.

      Parameters:
      keyType - The result of a key type action.
    • fromKeyType

      public static BrowserActionResult fromKeyType(Consumer<KeyTypeResult.Builder> keyType)
      Create an instance of this class with keyType() initialized to the given value.

      The result of a key type action.

      Parameters:
      keyType - The result of a key type action.
    • fromKeyPress

      public static BrowserActionResult fromKeyPress(KeyPressResult keyPress)
      Create an instance of this class with keyPress() initialized to the given value.

      The result of a key press action.

      Parameters:
      keyPress - The result of a key press action.
    • fromKeyPress

      public static BrowserActionResult fromKeyPress(Consumer<KeyPressResult.Builder> keyPress)
      Create an instance of this class with keyPress() initialized to the given value.

      The result of a key press action.

      Parameters:
      keyPress - The result of a key press action.
    • fromKeyShortcut

      public static BrowserActionResult fromKeyShortcut(KeyShortcutResult keyShortcut)
      Create an instance of this class with keyShortcut() initialized to the given value.

      The result of a key shortcut action.

      Parameters:
      keyShortcut - The result of a key shortcut action.
    • fromKeyShortcut

      public static BrowserActionResult fromKeyShortcut(Consumer<KeyShortcutResult.Builder> keyShortcut)
      Create an instance of this class with keyShortcut() initialized to the given value.

      The result of a key shortcut action.

      Parameters:
      keyShortcut - The result of a key shortcut action.
    • fromScreenshot

      public static BrowserActionResult fromScreenshot(ScreenshotResult screenshot)
      Create an instance of this class with screenshot() initialized to the given value.

      The result of a screenshot action.

      Parameters:
      screenshot - The result of a screenshot action.
    • fromScreenshot

      public static BrowserActionResult fromScreenshot(Consumer<ScreenshotResult.Builder> screenshot)
      Create an instance of this class with screenshot() initialized to the given value.

      The result of a screenshot action.

      Parameters:
      screenshot - The result of a screenshot action.
    • type

      public BrowserActionResult.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 be BrowserActionResult.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 be BrowserActionResult.Type.UNKNOWN_TO_SDK_VERSION if zero members are set, and null if more than one member is set.
    • sdkFields

      public final List<SdkField<?>> sdkFields()
      Specified by:
      sdkFields in interface SdkPojo
      Returns:
      List of SdkField in this POJO. May be empty list but should never be null.
    • sdkFieldNameToField

      public final Map<String,SdkField<?>> sdkFieldNameToField()
      Specified by:
      sdkFieldNameToField in interface SdkPojo
      Returns:
      The mapping between the field name and its corresponding field.