Class Subscription

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

public class Subscription extends Object implements Serializable, Cloneable

This data type is used as a response element in the ListEventSubscriptions action.

See Also:
  • Constructor Details

    • Subscription

      public Subscription()
  • Method Details

    • setResourceArn

      public void setResourceArn(String resourceArn)

      The ARN of the assessment template that is used during the event for which the SNS notification is sent.

      Parameters:
      resourceArn - The ARN of the assessment template that is used during the event for which the SNS notification is sent.
    • getResourceArn

      public String getResourceArn()

      The ARN of the assessment template that is used during the event for which the SNS notification is sent.

      Returns:
      The ARN of the assessment template that is used during the event for which the SNS notification is sent.
    • withResourceArn

      public Subscription withResourceArn(String resourceArn)

      The ARN of the assessment template that is used during the event for which the SNS notification is sent.

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

      public void setTopicArn(String topicArn)

      The ARN of the Amazon Simple Notification Service (SNS) topic to which the SNS notifications are sent.

      Parameters:
      topicArn - The ARN of the Amazon Simple Notification Service (SNS) topic to which the SNS notifications are sent.
    • getTopicArn

      public String getTopicArn()

      The ARN of the Amazon Simple Notification Service (SNS) topic to which the SNS notifications are sent.

      Returns:
      The ARN of the Amazon Simple Notification Service (SNS) topic to which the SNS notifications are sent.
    • withTopicArn

      public Subscription withTopicArn(String topicArn)

      The ARN of the Amazon Simple Notification Service (SNS) topic to which the SNS notifications are sent.

      Parameters:
      topicArn - The ARN of the Amazon Simple Notification Service (SNS) topic to which the SNS notifications are sent.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • getEventSubscriptions

      public List<EventSubscription> getEventSubscriptions()

      The list of existing event subscriptions.

      Returns:
      The list of existing event subscriptions.
    • setEventSubscriptions

      public void setEventSubscriptions(Collection<EventSubscription> eventSubscriptions)

      The list of existing event subscriptions.

      Parameters:
      eventSubscriptions - The list of existing event subscriptions.
    • withEventSubscriptions

      public Subscription withEventSubscriptions(EventSubscription... eventSubscriptions)

      The list of existing event subscriptions.

      NOTE: This method appends the values to the existing list (if any). Use setEventSubscriptions(java.util.Collection) or withEventSubscriptions(java.util.Collection) if you want to override the existing values.

      Parameters:
      eventSubscriptions - The list of existing event subscriptions.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • withEventSubscriptions

      public Subscription withEventSubscriptions(Collection<EventSubscription> eventSubscriptions)

      The list of existing event subscriptions.

      Parameters:
      eventSubscriptions - The list of existing event subscriptions.
      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 Subscription clone()
      Overrides:
      clone in class Object