@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class Subscriber extends Object implements Serializable, Cloneable, StructuredPojo
The subscriber to a budget notification. The subscriber consists of a subscription type and either an Amazon SNS topic or an email address.
For example, an email subscriber has the following parameters:
A subscriptionType
of EMAIL
An address
of example@example.com
Constructor and Description |
---|
Subscriber() |
Modifier and Type | Method and Description |
---|---|
Subscriber |
clone() |
boolean |
equals(Object obj) |
String |
getAddress()
The address that Amazon Web Services sends budget notifications to, either an SNS topic or an email.
|
String |
getSubscriptionType()
The type of notification that Amazon Web Services sends to a subscriber.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setAddress(String address)
The address that Amazon Web Services sends budget notifications to, either an SNS topic or an email.
|
void |
setSubscriptionType(String subscriptionType)
The type of notification that Amazon Web Services sends to a subscriber.
|
void |
setSubscriptionType(SubscriptionType subscriptionType)
The type of notification that Amazon Web Services sends to a subscriber.
|
String |
toString()
Returns a string representation of this object.
|
Subscriber |
withAddress(String address)
The address that Amazon Web Services sends budget notifications to, either an SNS topic or an email.
|
Subscriber |
withSubscriptionType(String subscriptionType)
The type of notification that Amazon Web Services sends to a subscriber.
|
Subscriber |
withSubscriptionType(SubscriptionType subscriptionType)
The type of notification that Amazon Web Services sends to a subscriber.
|
public void setSubscriptionType(String subscriptionType)
The type of notification that Amazon Web Services sends to a subscriber.
subscriptionType
- The type of notification that Amazon Web Services sends to a subscriber.SubscriptionType
public String getSubscriptionType()
The type of notification that Amazon Web Services sends to a subscriber.
SubscriptionType
public Subscriber withSubscriptionType(String subscriptionType)
The type of notification that Amazon Web Services sends to a subscriber.
subscriptionType
- The type of notification that Amazon Web Services sends to a subscriber.SubscriptionType
public void setSubscriptionType(SubscriptionType subscriptionType)
The type of notification that Amazon Web Services sends to a subscriber.
subscriptionType
- The type of notification that Amazon Web Services sends to a subscriber.SubscriptionType
public Subscriber withSubscriptionType(SubscriptionType subscriptionType)
The type of notification that Amazon Web Services sends to a subscriber.
subscriptionType
- The type of notification that Amazon Web Services sends to a subscriber.SubscriptionType
public void setAddress(String address)
The address that Amazon Web Services sends budget notifications to, either an SNS topic or an email.
When you create a subscriber, the value of Address
can't contain line breaks.
address
- The address that Amazon Web Services sends budget notifications to, either an SNS topic or an email.
When you create a subscriber, the value of Address
can't contain line breaks.
public String getAddress()
The address that Amazon Web Services sends budget notifications to, either an SNS topic or an email.
When you create a subscriber, the value of Address
can't contain line breaks.
When you create a subscriber, the value of Address
can't contain line breaks.
public Subscriber withAddress(String address)
The address that Amazon Web Services sends budget notifications to, either an SNS topic or an email.
When you create a subscriber, the value of Address
can't contain line breaks.
address
- The address that Amazon Web Services sends budget notifications to, either an SNS topic or an email.
When you create a subscriber, the value of Address
can't contain line breaks.
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.