@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class Subscription extends Object implements Serializable, Cloneable
A wrapper type for the attributes of an Amazon SNS subscription.
Constructor and Description |
---|
Subscription() |
Modifier and Type | Method and Description |
---|---|
Subscription |
clone() |
boolean |
equals(Object obj) |
String |
getEndpoint()
The subscription's endpoint (format depends on the protocol).
|
String |
getOwner()
The subscription's owner.
|
String |
getProtocol()
The subscription's protocol.
|
String |
getSubscriptionArn()
The subscription's ARN.
|
String |
getTopicArn()
The ARN of the subscription's topic.
|
int |
hashCode() |
void |
setEndpoint(String endpoint)
The subscription's endpoint (format depends on the protocol).
|
void |
setOwner(String owner)
The subscription's owner.
|
void |
setProtocol(String protocol)
The subscription's protocol.
|
void |
setSubscriptionArn(String subscriptionArn)
The subscription's ARN.
|
void |
setTopicArn(String topicArn)
The ARN of the subscription's topic.
|
String |
toString()
Returns a string representation of this object.
|
Subscription |
withEndpoint(String endpoint)
The subscription's endpoint (format depends on the protocol).
|
Subscription |
withOwner(String owner)
The subscription's owner.
|
Subscription |
withProtocol(String protocol)
The subscription's protocol.
|
Subscription |
withSubscriptionArn(String subscriptionArn)
The subscription's ARN.
|
Subscription |
withTopicArn(String topicArn)
The ARN of the subscription's topic.
|
public void setSubscriptionArn(String subscriptionArn)
The subscription's ARN.
subscriptionArn
- The subscription's ARN.public String getSubscriptionArn()
The subscription's ARN.
public Subscription withSubscriptionArn(String subscriptionArn)
The subscription's ARN.
subscriptionArn
- The subscription's ARN.public void setOwner(String owner)
The subscription's owner.
owner
- The subscription's owner.public String getOwner()
The subscription's owner.
public Subscription withOwner(String owner)
The subscription's owner.
owner
- The subscription's owner.public void setProtocol(String protocol)
The subscription's protocol.
protocol
- The subscription's protocol.public String getProtocol()
The subscription's protocol.
public Subscription withProtocol(String protocol)
The subscription's protocol.
protocol
- The subscription's protocol.public void setEndpoint(String endpoint)
The subscription's endpoint (format depends on the protocol).
endpoint
- The subscription's endpoint (format depends on the protocol).public String getEndpoint()
The subscription's endpoint (format depends on the protocol).
public Subscription withEndpoint(String endpoint)
The subscription's endpoint (format depends on the protocol).
endpoint
- The subscription's endpoint (format depends on the protocol).public void setTopicArn(String topicArn)
The ARN of the subscription's topic.
topicArn
- The ARN of the subscription's topic.public String getTopicArn()
The ARN of the subscription's topic.
public Subscription withTopicArn(String topicArn)
The ARN of the subscription's topic.
topicArn
- The ARN of the subscription's topic.public String toString()
toString
in class Object
Object.toString()
public Subscription clone()