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 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; 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.
-
-
-
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:
toString
in classObject
- Returns:
- A string representation of this object.
- See Also:
Object.toString()
-
clone
public Subscription clone()
-
-