public class Subscription
extends java.lang.Object
implements java.io.Serializable
A wrapper type for the attributes of an Amazon SNS subscription.
Constructor and Description |
---|
Subscription() |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object obj) |
java.lang.String |
getEndpoint()
The subscription's endpoint (format depends on the protocol).
|
java.lang.String |
getOwner()
The subscription's owner.
|
java.lang.String |
getProtocol()
The subscription's protocol.
|
java.lang.String |
getSubscriptionArn()
The subscription's ARN.
|
java.lang.String |
getTopicArn()
The ARN of the subscription's topic.
|
int |
hashCode() |
void |
setEndpoint(java.lang.String endpoint)
The subscription's endpoint (format depends on the protocol).
|
void |
setOwner(java.lang.String owner)
The subscription's owner.
|
void |
setProtocol(java.lang.String protocol)
The subscription's protocol.
|
void |
setSubscriptionArn(java.lang.String subscriptionArn)
The subscription's ARN.
|
void |
setTopicArn(java.lang.String topicArn)
The ARN of the subscription's topic.
|
java.lang.String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
Subscription |
withEndpoint(java.lang.String endpoint)
The subscription's endpoint (format depends on the protocol).
|
Subscription |
withOwner(java.lang.String owner)
The subscription's owner.
|
Subscription |
withProtocol(java.lang.String protocol)
The subscription's protocol.
|
Subscription |
withSubscriptionArn(java.lang.String subscriptionArn)
The subscription's ARN.
|
Subscription |
withTopicArn(java.lang.String topicArn)
The ARN of the subscription's topic.
|
public java.lang.String getSubscriptionArn()
The subscription's ARN.
The subscription's ARN.
public void setSubscriptionArn(java.lang.String subscriptionArn)
The subscription's ARN.
subscriptionArn
- The subscription's ARN.
public Subscription withSubscriptionArn(java.lang.String subscriptionArn)
The subscription's ARN.
Returns a reference to this object so that method calls can be chained together.
subscriptionArn
- The subscription's ARN.
public java.lang.String getOwner()
The subscription's owner.
The subscription's owner.
public void setOwner(java.lang.String owner)
The subscription's owner.
owner
- The subscription's owner.
public Subscription withOwner(java.lang.String owner)
The subscription's owner.
Returns a reference to this object so that method calls can be chained together.
owner
- The subscription's owner.
public java.lang.String getProtocol()
The subscription's protocol.
The subscription's protocol.
public void setProtocol(java.lang.String protocol)
The subscription's protocol.
protocol
- The subscription's protocol.
public Subscription withProtocol(java.lang.String protocol)
The subscription's protocol.
Returns a reference to this object so that method calls can be chained together.
protocol
- The subscription's protocol.
public java.lang.String getEndpoint()
The subscription's endpoint (format depends on the protocol).
The subscription's endpoint (format depends on the protocol).
public void setEndpoint(java.lang.String endpoint)
The subscription's endpoint (format depends on the protocol).
endpoint
- The subscription's endpoint (format depends on the protocol).
public Subscription withEndpoint(java.lang.String endpoint)
The subscription's endpoint (format depends on the protocol).
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 java.lang.String getTopicArn()
The ARN of the subscription's topic.
The ARN of the subscription's topic.
public void setTopicArn(java.lang.String topicArn)
The ARN of the subscription's topic.
topicArn
- The ARN of the subscription's topic.
public Subscription withTopicArn(java.lang.String topicArn)
The ARN of the subscription's topic.
Returns a reference to this object so that method calls can be chained together.
topicArn
- The ARN of the subscription's topic.
public java.lang.String toString()
toString
in class java.lang.Object
Object.toString()
public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
Copyright © 2018 Amazon Web Services, Inc. All Rights Reserved.