Package com.amazonaws.services.sns.model
Class Subscription
- java.lang.Object
-
- com.amazonaws.services.sns.model.Subscription
-
- All Implemented Interfaces:
Serializable,Cloneable
public class Subscription extends Object implements Serializable, Cloneable
A wrapper type for the attributes of an Amazon SNS subscription.
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description Subscription()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Subscriptionclone()booleanequals(Object obj)StringgetEndpoint()The subscription's endpoint (format depends on the protocol).StringgetOwner()The subscription's owner.StringgetProtocol()The subscription's protocol.StringgetSubscriptionArn()The subscription's ARN.StringgetTopicArn()The ARN of the subscription's topic.inthashCode()voidsetEndpoint(String endpoint)The subscription's endpoint (format depends on the protocol).voidsetOwner(String owner)The subscription's owner.voidsetProtocol(String protocol)The subscription's protocol.voidsetSubscriptionArn(String subscriptionArn)The subscription's ARN.voidsetTopicArn(String topicArn)The ARN of the subscription's topic.StringtoString()Returns a string representation of this object; useful for testing and debugging.SubscriptionwithEndpoint(String endpoint)The subscription's endpoint (format depends on the protocol).SubscriptionwithOwner(String owner)The subscription's owner.SubscriptionwithProtocol(String protocol)The subscription's protocol.SubscriptionwithSubscriptionArn(String subscriptionArn)The subscription's ARN.SubscriptionwithTopicArn(String topicArn)The ARN of the subscription's topic.
-
-
-
Method Detail
-
setSubscriptionArn
public void setSubscriptionArn(String subscriptionArn)
The subscription's ARN.
- Parameters:
subscriptionArn- The subscription's ARN.
-
getSubscriptionArn
public String getSubscriptionArn()
The subscription's ARN.
- Returns:
- The subscription's ARN.
-
withSubscriptionArn
public Subscription withSubscriptionArn(String subscriptionArn)
The subscription's ARN.
- Parameters:
subscriptionArn- The subscription's ARN.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setOwner
public void setOwner(String owner)
The subscription's owner.
- Parameters:
owner- The subscription's owner.
-
getOwner
public String getOwner()
The subscription's owner.
- Returns:
- The subscription's owner.
-
withOwner
public Subscription withOwner(String owner)
The subscription's owner.
- Parameters:
owner- The subscription's owner.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setProtocol
public void setProtocol(String protocol)
The subscription's protocol.
- Parameters:
protocol- The subscription's protocol.
-
getProtocol
public String getProtocol()
The subscription's protocol.
- Returns:
- The subscription's protocol.
-
withProtocol
public Subscription withProtocol(String protocol)
The subscription's protocol.
- Parameters:
protocol- The subscription's protocol.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setEndpoint
public void setEndpoint(String endpoint)
The subscription's endpoint (format depends on the protocol).
- Parameters:
endpoint- The subscription's endpoint (format depends on the protocol).
-
getEndpoint
public String getEndpoint()
The subscription's endpoint (format depends on the protocol).
- Returns:
- The subscription's endpoint (format depends on the protocol).
-
withEndpoint
public Subscription withEndpoint(String endpoint)
The subscription's endpoint (format depends on the protocol).
- Parameters:
endpoint- The subscription's endpoint (format depends on the protocol).- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setTopicArn
public void setTopicArn(String topicArn)
The ARN of the subscription's topic.
- Parameters:
topicArn- The ARN of the subscription's topic.
-
getTopicArn
public String getTopicArn()
The ARN of the subscription's topic.
- Returns:
- The ARN of the subscription's topic.
-
withTopicArn
public Subscription withTopicArn(String topicArn)
The ARN of the subscription's topic.
- Parameters:
topicArn- The ARN of the subscription's topic.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
toString
public String toString()
Returns a string representation of this object; useful for testing and debugging.- Overrides:
toStringin classObject- Returns:
- A string representation of this object.
- See Also:
Object.toString()
-
clone
public Subscription clone()
-
-