|
Did this page help you?Yes No Tell us about it... |
||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.amazonaws.AmazonWebServiceRequest
com.amazonaws.services.sns.model.SubscribeRequest
public class SubscribeRequest
Container for the parameters to the Subscribe operation
.
The Subscribe
action prepares to subscribe an endpoint by sending the endpoint a confirmation message. To actually create a subscription,
the endpoint owner must call the ConfirmSubscription
action with the token from the confirmation message. Confirmation tokens are valid
for three days.
AmazonSNS.subscribe(SubscribeRequest)
,
Serialized FormConstructor Summary | |
---|---|
SubscribeRequest()
Default constructor for a new SubscribeRequest object. |
|
SubscribeRequest(String topicArn,
String protocol,
String endpoint)
Constructs a new SubscribeRequest object. |
Method Summary | |
---|---|
boolean |
equals(Object obj)
|
String |
getEndpoint()
The endpoint that you want to receive notifications. |
String |
getProtocol()
The protocol you want to use. |
String |
getTopicArn()
The ARN of topic you want to subscribe to. |
int |
hashCode()
|
void |
setEndpoint(String endpoint)
The endpoint that you want to receive notifications. |
void |
setProtocol(String protocol)
The protocol you want to use. |
void |
setTopicArn(String topicArn)
The ARN of topic you want to subscribe to. |
String |
toString()
Returns a string representation of this object; useful for testing and debugging. |
SubscribeRequest |
withEndpoint(String endpoint)
The endpoint that you want to receive notifications. |
SubscribeRequest |
withProtocol(String protocol)
The protocol you want to use. |
SubscribeRequest |
withTopicArn(String topicArn)
The ARN of topic you want to subscribe to. |
Methods inherited from class com.amazonaws.AmazonWebServiceRequest |
---|
copyPrivateRequestParameters, getRequestClientOptions, getRequestCredentials, setRequestCredentials |
Methods inherited from class java.lang.Object |
---|
getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public SubscribeRequest()
public SubscribeRequest(String topicArn, String protocol, String endpoint)
topicArn
- The ARN of topic you want to subscribe to.protocol
- The protocol you want to use. Supported protocols
include: http
-- delivery of JSON-encoded
message via HTTP POSThttps
-- delivery of
JSON-encoded message via HTTPS POSTemail
--
delivery of message via SMTPemail-json
--
delivery of JSON-encoded message via SMTPsms
--
delivery of message via SMSsqs
-- delivery of
JSON-encoded message to an Amazon SQS queueendpoint
- The endpoint that you want to receive notifications.
Endpoints vary by protocol: http
protocol, the endpoint is an URL beginning with "http://"https
protocol, the endpoint is a URL beginning with
"https://"email
protocol, the endpoint
is an email addressemail-json
protocol,
the endpoint is an email addresssms
protocol, the endpoint is a phone number of an SMS-enabled devicesqs
protocol, the endpoint is the ARN of an
Amazon SQS queueMethod Detail |
---|
public String getTopicArn()
public void setTopicArn(String topicArn)
topicArn
- The ARN of topic you want to subscribe to.public SubscribeRequest withTopicArn(String topicArn)
Returns a reference to this object so that method calls can be chained together.
topicArn
- The ARN of topic you want to subscribe to.
public String getProtocol()
http
-- delivery of JSON-encoded message via HTTP
POSThttps
-- delivery of JSON-encoded message
via HTTPS POSTemail
-- delivery of message via
SMTPemail-json
-- delivery of JSON-encoded
message via SMTPsms
-- delivery of message via
SMSsqs
-- delivery of JSON-encoded message to
an Amazon SQS queue
http
-- delivery of JSON-encoded message via HTTP
POSThttps
-- delivery of JSON-encoded message
via HTTPS POSTemail
-- delivery of message via
SMTPemail-json
-- delivery of JSON-encoded
message via SMTPsms
-- delivery of message via
SMSsqs
-- delivery of JSON-encoded message to
an Amazon SQS queuepublic void setProtocol(String protocol)
http
-- delivery of JSON-encoded message via HTTP
POSThttps
-- delivery of JSON-encoded message
via HTTPS POSTemail
-- delivery of message via
SMTPemail-json
-- delivery of JSON-encoded
message via SMTPsms
-- delivery of message via
SMSsqs
-- delivery of JSON-encoded message to
an Amazon SQS queue
protocol
- The protocol you want to use. Supported protocols include: http
-- delivery of JSON-encoded message via HTTP
POSThttps
-- delivery of JSON-encoded message
via HTTPS POSTemail
-- delivery of message via
SMTPemail-json
-- delivery of JSON-encoded
message via SMTPsms
-- delivery of message via
SMSsqs
-- delivery of JSON-encoded message to
an Amazon SQS queuepublic SubscribeRequest withProtocol(String protocol)
http
-- delivery of JSON-encoded message via HTTP
POSThttps
-- delivery of JSON-encoded message
via HTTPS POSTemail
-- delivery of message via
SMTPemail-json
-- delivery of JSON-encoded
message via SMTPsms
-- delivery of message via
SMSsqs
-- delivery of JSON-encoded message to
an Amazon SQS queueReturns a reference to this object so that method calls can be chained together.
protocol
- The protocol you want to use. Supported protocols include: http
-- delivery of JSON-encoded message via HTTP
POSThttps
-- delivery of JSON-encoded message
via HTTPS POSTemail
-- delivery of message via
SMTPemail-json
-- delivery of JSON-encoded
message via SMTPsms
-- delivery of message via
SMSsqs
-- delivery of JSON-encoded message to
an Amazon SQS queuepublic String getEndpoint()
http
protocol, the endpoint is
an URL beginning with "http://"https
protocol, the endpoint is a URL beginning with "https://"email
protocol, the endpoint is an email addressemail-json
protocol, the endpoint is an email
addresssms
protocol, the endpoint is a
phone number of an SMS-enabled devicesqs
protocol, the endpoint is the ARN of an Amazon SQS
queue
http
protocol, the endpoint is
an URL beginning with "http://"https
protocol, the endpoint is a URL beginning with "https://"email
protocol, the endpoint is an email addressemail-json
protocol, the endpoint is an email
addresssms
protocol, the endpoint is a
phone number of an SMS-enabled devicesqs
protocol, the endpoint is the ARN of an Amazon SQS
queuepublic void setEndpoint(String endpoint)
http
protocol, the endpoint is
an URL beginning with "http://"https
protocol, the endpoint is a URL beginning with "https://"email
protocol, the endpoint is an email addressemail-json
protocol, the endpoint is an email
addresssms
protocol, the endpoint is a
phone number of an SMS-enabled devicesqs
protocol, the endpoint is the ARN of an Amazon SQS
queue
endpoint
- The endpoint that you want to receive notifications. Endpoints vary by
protocol: http
protocol, the endpoint is
an URL beginning with "http://"https
protocol, the endpoint is a URL beginning with "https://"email
protocol, the endpoint is an email addressemail-json
protocol, the endpoint is an email
addresssms
protocol, the endpoint is a
phone number of an SMS-enabled devicesqs
protocol, the endpoint is the ARN of an Amazon SQS
queuepublic SubscribeRequest withEndpoint(String endpoint)
http
protocol, the endpoint is
an URL beginning with "http://"https
protocol, the endpoint is a URL beginning with "https://"email
protocol, the endpoint is an email addressemail-json
protocol, the endpoint is an email
addresssms
protocol, the endpoint is a
phone number of an SMS-enabled devicesqs
protocol, the endpoint is the ARN of an Amazon SQS
queueReturns a reference to this object so that method calls can be chained together.
endpoint
- The endpoint that you want to receive notifications. Endpoints vary by
protocol: http
protocol, the endpoint is
an URL beginning with "http://"https
protocol, the endpoint is a URL beginning with "https://"email
protocol, the endpoint is an email addressemail-json
protocol, the endpoint is an email
addresssms
protocol, the endpoint is a
phone number of an SMS-enabled devicesqs
protocol, the endpoint is the ARN of an Amazon SQS
queuepublic String toString()
toString
in class Object
Object.toString()
public int hashCode()
hashCode
in class Object
public boolean equals(Object obj)
equals
in class Object
|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |