@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.SubscriberType
public String getType()
The notification delivery channel.
SubscriberType
public Subscriber withType(String type)
The notification delivery channel.
type
- The notification delivery channel.SubscriberType
public Subscriber withType(SubscriberType type)
The notification delivery channel.
type
- The notification delivery channel.SubscriberType
public void setStatus(String status)
Indicates if the subscriber accepts the notifications.
status
- Indicates if the subscriber accepts the notifications.SubscriberStatus
public String getStatus()
Indicates if the subscriber accepts the notifications.
SubscriberStatus
public Subscriber withStatus(String status)
Indicates if the subscriber accepts the notifications.
status
- Indicates if the subscriber accepts the notifications.SubscriberStatus
public Subscriber withStatus(SubscriberStatus status)
Indicates if the subscriber accepts the notifications.
status
- Indicates if the subscriber accepts the notifications.SubscriberStatus
public String toString()
toString
in class Object
Object.toString()
public Subscriber clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.