Class BrowserAction

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

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

The browser action to perform. Exactly one member must be set per request.

See Also:
  • Method Details

    • mouseClick

      public final MouseClickArguments mouseClick()

      Click at the specified coordinates.

      Returns:
      Click at the specified coordinates.
    • mouseMove

      public final MouseMoveArguments mouseMove()

      Move the cursor to the specified coordinates.

      Returns:
      Move the cursor to the specified coordinates.
    • mouseDrag

      public final MouseDragArguments mouseDrag()

      Drag from a start position to an end position.

      Returns:
      Drag from a start position to an end position.
    • mouseScroll

      public final MouseScrollArguments mouseScroll()

      Scroll at the specified position.

      Returns:
      Scroll at the specified position.
    • keyType

      public final KeyTypeArguments keyType()

      Type a string of text.

      Returns:
      Type a string of text.
    • keyPress

      public final KeyPressArguments keyPress()

      Press a key one or more times.

      Returns:
      Press a key one or more times.
    • keyShortcut

      public final KeyShortcutArguments keyShortcut()

      Press a key combination.

      Returns:
      Press a key combination.
    • screenshot

      public final ScreenshotArguments screenshot()

      Capture a full-screen screenshot.

      Returns:
      Capture a full-screen screenshot.
    • toBuilder

      public BrowserAction.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<BrowserAction.Builder,BrowserAction>
      Returns:
      a builder for type T
    • builder

      public static BrowserAction.Builder builder()
    • serializableBuilderClass

      public static Class<? extends BrowserAction.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 BrowserAction fromMouseClick(MouseClickArguments mouseClick)
      Create an instance of this class with mouseClick() initialized to the given value.

      Click at the specified coordinates.

      Parameters:
      mouseClick - Click at the specified coordinates.
    • fromMouseClick

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

      Click at the specified coordinates.

      Parameters:
      mouseClick - Click at the specified coordinates.
    • fromMouseMove

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

      Move the cursor to the specified coordinates.

      Parameters:
      mouseMove - Move the cursor to the specified coordinates.
    • fromMouseMove

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

      Move the cursor to the specified coordinates.

      Parameters:
      mouseMove - Move the cursor to the specified coordinates.
    • fromMouseDrag

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

      Drag from a start position to an end position.

      Parameters:
      mouseDrag - Drag from a start position to an end position.
    • fromMouseDrag

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

      Drag from a start position to an end position.

      Parameters:
      mouseDrag - Drag from a start position to an end position.
    • fromMouseScroll

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

      Scroll at the specified position.

      Parameters:
      mouseScroll - Scroll at the specified position.
    • fromMouseScroll

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

      Scroll at the specified position.

      Parameters:
      mouseScroll - Scroll at the specified position.
    • fromKeyType

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

      Type a string of text.

      Parameters:
      keyType - Type a string of text.
    • fromKeyType

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

      Type a string of text.

      Parameters:
      keyType - Type a string of text.
    • fromKeyPress

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

      Press a key one or more times.

      Parameters:
      keyPress - Press a key one or more times.
    • fromKeyPress

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

      Press a key one or more times.

      Parameters:
      keyPress - Press a key one or more times.
    • fromKeyShortcut

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

      Press a key combination.

      Parameters:
      keyShortcut - Press a key combination.
    • fromKeyShortcut

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

      Press a key combination.

      Parameters:
      keyShortcut - Press a key combination.
    • fromScreenshot

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

      Capture a full-screen screenshot.

      Parameters:
      screenshot - Capture a full-screen screenshot.
    • fromScreenshot

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

      Capture a full-screen screenshot.

      Parameters:
      screenshot - Capture a full-screen screenshot.
    • type

      public BrowserAction.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 BrowserAction.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 BrowserAction.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.