public class Subscription extends Object implements Serializable
A wrapper type for the attributes of an Amazon SNS subscription.
Constructor and Description |
---|
Subscription()
Default constructor for a new Subscription object.
|
Modifier and Type | Method and Description |
---|---|
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; useful for testing and
debugging.
|
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 Subscription()
public String getSubscriptionArn()
public void setSubscriptionArn(String subscriptionArn)
subscriptionArn
- The subscription's ARN.public Subscription withSubscriptionArn(String subscriptionArn)
Returns a reference to this object so that method calls can be chained together.
subscriptionArn
- The subscription's ARN.public String getOwner()
public void setOwner(String owner)
owner
- The subscription's owner.public Subscription withOwner(String owner)
Returns a reference to this object so that method calls can be chained together.
owner
- The subscription's owner.public String getProtocol()
public void setProtocol(String protocol)
protocol
- The subscription's protocol.public Subscription withProtocol(String protocol)
Returns a reference to this object so that method calls can be chained together.
protocol
- The subscription's protocol.public String getEndpoint()
public void setEndpoint(String endpoint)
endpoint
- The subscription's endpoint (format depends on the protocol).public Subscription withEndpoint(String endpoint)
Returns a reference to this object so that method calls can be chained together.
endpoint
- The subscription's endpoint (format depends on the protocol).public String getTopicArn()
public void setTopicArn(String topicArn)
topicArn
- The ARN of the subscription's topic.public Subscription withTopicArn(String topicArn)
Returns a reference to this object so that method calls can be chained together.
topicArn
- The ARN of the subscription's topic.public String toString()
toString
in class Object
Object.toString()
Copyright © 2014. All rights reserved.