@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class NotificationWithSubscribers extends Object implements Serializable, Cloneable, StructuredPojo
A notification with subscribers. A notification can have one SNS subscriber and up to 10 email subscribers, for a total of 11 subscribers.
Constructor and Description |
---|
NotificationWithSubscribers() |
Modifier and Type | Method and Description |
---|---|
NotificationWithSubscribers |
clone() |
boolean |
equals(Object obj) |
Notification |
getNotification()
The notification that's associated with a budget.
|
List<Subscriber> |
getSubscribers()
A list of subscribers who are subscribed to this notification.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setNotification(Notification notification)
The notification that's associated with a budget.
|
void |
setSubscribers(Collection<Subscriber> subscribers)
A list of subscribers who are subscribed to this notification.
|
String |
toString()
Returns a string representation of this object.
|
NotificationWithSubscribers |
withNotification(Notification notification)
The notification that's associated with a budget.
|
NotificationWithSubscribers |
withSubscribers(Collection<Subscriber> subscribers)
A list of subscribers who are subscribed to this notification.
|
NotificationWithSubscribers |
withSubscribers(Subscriber... subscribers)
A list of subscribers who are subscribed to this notification.
|
public void setNotification(Notification notification)
The notification that's associated with a budget.
notification
- The notification that's associated with a budget.public Notification getNotification()
The notification that's associated with a budget.
public NotificationWithSubscribers withNotification(Notification notification)
The notification that's associated with a budget.
notification
- The notification that's associated with a budget.public List<Subscriber> getSubscribers()
A list of subscribers who are subscribed to this notification.
public void setSubscribers(Collection<Subscriber> subscribers)
A list of subscribers who are subscribed to this notification.
subscribers
- A list of subscribers who are subscribed to this notification.public NotificationWithSubscribers withSubscribers(Subscriber... subscribers)
A list of subscribers who are subscribed to this notification.
NOTE: This method appends the values to the existing list (if any). Use
setSubscribers(java.util.Collection)
or withSubscribers(java.util.Collection)
if you want to
override the existing values.
subscribers
- A list of subscribers who are subscribed to this notification.public NotificationWithSubscribers withSubscribers(Collection<Subscriber> subscribers)
A list of subscribers who are subscribed to this notification.
subscribers
- A list of subscribers who are subscribed to this notification.public String toString()
toString
in class Object
Object.toString()
public NotificationWithSubscribers clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.