Package com.amazonaws.services.sns.model
Class Subscription
java.lang.Object
com.amazonaws.services.sns.model.Subscription
- All Implemented Interfaces:
Serializable
,Cloneable
A wrapper type for the attributes of an Amazon SNS subscription.
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionclone()
boolean
The subscription's endpoint (format depends on the protocol).getOwner()
The subscription's owner.The subscription's protocol.The subscription's ARN.The ARN of the subscription's topic.int
hashCode()
void
setEndpoint
(String endpoint) The subscription's endpoint (format depends on the protocol).void
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.toString()
Returns a string representation of this object; useful for testing and debugging.withEndpoint
(String endpoint) The subscription's endpoint (format depends on the protocol).The subscription's owner.withProtocol
(String protocol) The subscription's protocol.withSubscriptionArn
(String subscriptionArn) The subscription's ARN.withTopicArn
(String topicArn) The ARN of the subscription's topic.
-
Constructor Details
-
Subscription
public Subscription()
-
-
Method Details
-
setSubscriptionArn
The subscription's ARN.
- Parameters:
subscriptionArn
- The subscription's ARN.
-
getSubscriptionArn
The subscription's ARN.
- Returns:
- The subscription's ARN.
-
withSubscriptionArn
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
The subscription's owner.
- Parameters:
owner
- The subscription's owner.
-
getOwner
The subscription's owner.
- Returns:
- The subscription's owner.
-
withOwner
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
The subscription's protocol.
- Parameters:
protocol
- The subscription's protocol.
-
getProtocol
The subscription's protocol.
- Returns:
- The subscription's protocol.
-
withProtocol
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
The subscription's endpoint (format depends on the protocol).
- Parameters:
endpoint
- The subscription's endpoint (format depends on the protocol).
-
getEndpoint
The subscription's endpoint (format depends on the protocol).
- Returns:
- The subscription's endpoint (format depends on the protocol).
-
withEndpoint
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
The ARN of the subscription's topic.
- Parameters:
topicArn
- The ARN of the subscription's topic.
-
getTopicArn
The ARN of the subscription's topic.
- Returns:
- The ARN of the subscription's topic.
-
withTopicArn
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
Returns a string representation of this object; useful for testing and debugging. -
equals
-
hashCode
public int hashCode() -
clone
-