JavaScript is disabled on your browser.
Skip navigation links

AWS SDK for Java 1.x API Reference - 1.12.793

We announced the upcoming end-of-support for AWS SDK for Java (v1). We recommend that you migrate to AWS SDK for Java v2. For dates, additional details, and information on how to migrate, please refer to the linked announcement.
com.amazonaws.services.eventbridge.model

Class TestEventPatternRequest

    • Constructor Detail

      • TestEventPatternRequest

        public TestEventPatternRequest()
    • Method Detail

      • setEventPattern

        public void setEventPattern(String eventPattern)

        The event pattern. For more information, see Events and Event Patterns in the Amazon EventBridge User Guide .

        Parameters:
        eventPattern - The event pattern. For more information, see Events and Event Patterns in the Amazon EventBridge User Guide .
      • withEventPattern

        public TestEventPatternRequest withEventPattern(String eventPattern)

        The event pattern. For more information, see Events and Event Patterns in the Amazon EventBridge User Guide .

        Parameters:
        eventPattern - The event pattern. For more information, see Events and Event Patterns in the Amazon EventBridge User Guide .
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • setEvent

        public void setEvent(String event)

        The event, in JSON format, to test against the event pattern. The JSON must follow the format specified in Amazon Web Services Events, and the following fields are mandatory:

        • id

        • account

        • source

        • time

        • region

        • resources

        • detail-type

        Parameters:
        event - The event, in JSON format, to test against the event pattern. The JSON must follow the format specified in Amazon Web Services Events, and the following fields are mandatory:

        • id

        • account

        • source

        • time

        • region

        • resources

        • detail-type

      • getEvent

        public String getEvent()

        The event, in JSON format, to test against the event pattern. The JSON must follow the format specified in Amazon Web Services Events, and the following fields are mandatory:

        • id

        • account

        • source

        • time

        • region

        • resources

        • detail-type

        Returns:
        The event, in JSON format, to test against the event pattern. The JSON must follow the format specified in Amazon Web Services Events, and the following fields are mandatory:

        • id

        • account

        • source

        • time

        • region

        • resources

        • detail-type

      • withEvent

        public TestEventPatternRequest withEvent(String event)

        The event, in JSON format, to test against the event pattern. The JSON must follow the format specified in Amazon Web Services Events, and the following fields are mandatory:

        • id

        • account

        • source

        • time

        • region

        • resources

        • detail-type

        Parameters:
        event - The event, in JSON format, to test against the event pattern. The JSON must follow the format specified in Amazon Web Services Events, and the following fields are mandatory:

        • id

        • account

        • source

        • time

        • region

        • resources

        • detail-type

        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • toString

        public 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
        Returns:
        A string representation of this object.
        See Also:
        Object.toString()
Skip navigation links

AltStyle によって変換されたページ (->オリジナル) /