|
|||||||
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
.
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(java.lang.String topicArn,
java.lang.String protocol,
java.lang.String endpoint)
Constructs a new SubscribeRequest object. |
Method Summary | |
---|---|
boolean |
equals(java.lang.Object obj)
|
java.lang.String |
getEndpoint()
The endpoint that you want to receive notifications. |
java.lang.String |
getProtocol()
The protocol you want to use. |
java.lang.String |
getTopicArn()
The ARN of the topic you want to subscribe to. |
int |
hashCode()
|
void |
setEndpoint(java.lang.String endpoint)
The endpoint that you want to receive notifications. |
void |
setProtocol(java.lang.String protocol)
The protocol you want to use. |
void |
setTopicArn(java.lang.String topicArn)
The ARN of the topic you want to subscribe to. |
java.lang.String |
toString()
Returns a string representation of this object; useful for testing and debugging. |
SubscribeRequest |
withEndpoint(java.lang.String endpoint)
The endpoint that you want to receive notifications. |
SubscribeRequest |
withProtocol(java.lang.String protocol)
The protocol you want to use. |
SubscribeRequest |
withTopicArn(java.lang.String topicArn)
The ARN of the topic you want to subscribe to. |
Methods inherited from class com.amazonaws.AmazonWebServiceRequest |
---|
copyPrivateRequestParameters, getDelegationToken, getRequestClientOptions, getRequestCredentials, getRequestMetricCollector, setDelegationToken, setRequestCredentials, setRequestMetricCollector, withRequestMetricCollector |
Methods inherited from class java.lang.Object |
---|
getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public SubscribeRequest()
public SubscribeRequest(java.lang.String topicArn, java.lang.String protocol, java.lang.String endpoint)
topicArn
- The ARN of the 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 queueapplication
-- delivery of JSON-encoded message to an
EndpointArn for a mobile app and device.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 queueapplication
protocol,
the endpoint is the EndpointArn of a mobile app and device.Method Detail |
---|
public java.lang.String getTopicArn()
public void setTopicArn(java.lang.String topicArn)
topicArn
- The ARN of the topic you want to subscribe to.public SubscribeRequest withTopicArn(java.lang.String topicArn)
Returns a reference to this object so that method calls can be chained together.
topicArn
- The ARN of the topic you want to subscribe to.
public java.lang.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 queueapplication
-- delivery of
JSON-encoded message to an EndpointArn for a mobile app and
device.
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 queueapplication
-- delivery of
JSON-encoded message to an EndpointArn for a mobile app and
device.public void setProtocol(java.lang.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 queueapplication
-- delivery of
JSON-encoded message to an EndpointArn for a mobile app and
device.
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 queueapplication
-- delivery of
JSON-encoded message to an EndpointArn for a mobile app and
device.public SubscribeRequest withProtocol(java.lang.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 queueapplication
-- delivery of
JSON-encoded message to an EndpointArn for a mobile app and
device.Returns 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 queueapplication
-- delivery of
JSON-encoded message to an EndpointArn for a mobile app and
device.public java.lang.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
queueapplication
protocol, the endpoint
is the EndpointArn of a mobile app and device.
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
queueapplication
protocol, the endpoint
is the EndpointArn of a mobile app and device.public void setEndpoint(java.lang.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
queueapplication
protocol, the endpoint
is the EndpointArn of a mobile app and device.
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
queueapplication
protocol, the endpoint
is the EndpointArn of a mobile app and device.public SubscribeRequest withEndpoint(java.lang.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
queueapplication
protocol, the endpoint
is the EndpointArn of a mobile app and device.Returns 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
queueapplication
protocol, the endpoint
is the EndpointArn of a mobile app and device.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
|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |