@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class Subscriber extends Object implements Serializable, Cloneable, StructuredPojo
The recipient of AnomalySubscription notifications.
| Constructor and Description |
|---|
Subscriber() |
| Modifier and Type | Method and Description |
|---|---|
Subscriber |
clone() |
boolean |
equals(Object obj) |
String |
getAddress()
The email address or SNS Amazon Resource Name (ARN).
|
String |
getStatus()
Indicates if the subscriber accepts the notifications.
|
String |
getType()
The notification delivery channel.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller. |
void |
setAddress(String address)
The email address or SNS Amazon Resource Name (ARN).
|
void |
setStatus(String status)
Indicates if the subscriber accepts the notifications.
|
void |
setType(String type)
The notification delivery channel.
|
String |
toString()
Returns a string representation of this object.
|
Subscriber |
withAddress(String address)
The email address or SNS Amazon Resource Name (ARN).
|
Subscriber |
withStatus(String status)
Indicates if the subscriber accepts the notifications.
|
Subscriber |
withStatus(SubscriberStatus status)
Indicates if the subscriber accepts the notifications.
|
Subscriber |
withType(String type)
The notification delivery channel.
|
Subscriber |
withType(SubscriberType type)
The notification delivery channel.
|
public void setAddress(String address)
The email address or SNS Amazon Resource Name (ARN). This depends on the Type.
address - The email address or SNS Amazon Resource Name (ARN). This depends on the Type.public String getAddress()
The email address or SNS Amazon Resource Name (ARN). This depends on the Type.
Type.public Subscriber withAddress(String address)
The email address or SNS Amazon Resource Name (ARN). This depends on the Type.
address - The email address or SNS Amazon Resource Name (ARN). This depends on the Type.public void setType(String type)
The notification delivery channel.
type - The notification delivery channel.SubscriberTypepublic String getType()
The notification delivery channel.
SubscriberTypepublic Subscriber withType(String type)
The notification delivery channel.
type - The notification delivery channel.SubscriberTypepublic Subscriber withType(SubscriberType type)
The notification delivery channel.
type - The notification delivery channel.SubscriberTypepublic void setStatus(String status)
Indicates if the subscriber accepts the notifications.
status - Indicates if the subscriber accepts the notifications.SubscriberStatuspublic String getStatus()
Indicates if the subscriber accepts the notifications.
SubscriberStatuspublic Subscriber withStatus(String status)
Indicates if the subscriber accepts the notifications.
status - Indicates if the subscriber accepts the notifications.SubscriberStatuspublic Subscriber withStatus(SubscriberStatus status)
Indicates if the subscriber accepts the notifications.
status - Indicates if the subscriber accepts the notifications.SubscriberStatuspublic String toString()
toString in class ObjectObject.toString()public Subscriber clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojoProtocolMarshaller.marshall in interface StructuredPojoprotocolMarshaller - Implementation of ProtocolMarshaller used to marshall this object's data.