Class SubscribeToEventRequest

java.lang.Object
com.amazonaws.AmazonWebServiceRequest
com.amazonaws.services.inspector.model.SubscribeToEventRequest
All Implemented Interfaces:
ReadLimitInfo, Serializable, Cloneable

public class SubscribeToEventRequest extends AmazonWebServiceRequest implements Serializable, Cloneable
See Also:
  • Constructor Details

    • SubscribeToEventRequest

      public SubscribeToEventRequest()
  • Method Details

    • setResourceArn

      public void setResourceArn(String resourceArn)

      The ARN of the assessment template that is used during the event for which you want to receive SNS notifications.

      Parameters:
      resourceArn - The ARN of the assessment template that is used during the event for which you want to receive SNS notifications.
    • getResourceArn

      public String getResourceArn()

      The ARN of the assessment template that is used during the event for which you want to receive SNS notifications.

      Returns:
      The ARN of the assessment template that is used during the event for which you want to receive SNS notifications.
    • withResourceArn

      public SubscribeToEventRequest withResourceArn(String resourceArn)

      The ARN of the assessment template that is used during the event for which you want to receive SNS notifications.

      Parameters:
      resourceArn - The ARN of the assessment template that is used during the event for which you want to receive SNS notifications.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • setEvent

      public void setEvent(String event)

      The event for which you want to receive SNS notifications.

      Parameters:
      event - The event for which you want to receive SNS notifications.
      See Also:
    • getEvent

      public String getEvent()

      The event for which you want to receive SNS notifications.

      Returns:
      The event for which you want to receive SNS notifications.
      See Also:
    • withEvent

      public SubscribeToEventRequest withEvent(String event)

      The event for which you want to receive SNS notifications.

      Parameters:
      event - The event for which you want to receive SNS notifications.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • setEvent

      public void setEvent(InspectorEvent event)

      The event for which you want to receive SNS notifications.

      Parameters:
      event - The event for which you want to receive SNS notifications.
      See Also:
    • withEvent

      public SubscribeToEventRequest withEvent(InspectorEvent event)

      The event for which you want to receive SNS notifications.

      Parameters:
      event - The event for which you want to receive SNS notifications.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • setTopicArn

      public void setTopicArn(String topicArn)

      The ARN of the SNS topic to which the SNS notifications are sent.

      Parameters:
      topicArn - The ARN of the SNS topic to which the SNS notifications are sent.
    • getTopicArn

      public String getTopicArn()

      The ARN of the SNS topic to which the SNS notifications are sent.

      Returns:
      The ARN of the SNS topic to which the SNS notifications are sent.
    • withTopicArn

      public SubscribeToEventRequest withTopicArn(String topicArn)

      The ARN of the SNS topic to which the SNS notifications are sent.

      Parameters:
      topicArn - The ARN of the SNS topic to which the SNS notifications are sent.
      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; useful for testing and debugging.
      Overrides:
      toString in class Object
      Returns:
      A string representation of this object.
      See Also:
    • equals

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

      public int hashCode()
      Overrides:
      hashCode in class Object
    • clone

      public SubscribeToEventRequest clone()
      Description copied from class: AmazonWebServiceRequest
      Creates a shallow clone of this request. Explicitly does not clone the deep structure of the request object.
      Overrides:
      clone in class AmazonWebServiceRequest
      See Also: