public class SubscribeRequest extends AmazonWebServiceRequest implements java.io.Serializable
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.
| コンストラクタと説明 |
|---|
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.
|
| 修飾子とタイプ | メソッドと説明 |
|---|---|
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 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 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 topic you want to subscribe to.
|
copyPrivateRequestParameters, getRequestClientOptions, getRequestCredentials, setRequestCredentialspublic SubscribeRequest()
public SubscribeRequest(java.lang.String topicArn,
java.lang.String protocol,
java.lang.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 queuepublic java.lang.String getTopicArn()
public void setTopicArn(java.lang.String topicArn)
topicArn - The ARN of 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 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 queuehttp -- 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(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 queueprotocol - 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(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 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 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
queuehttp 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(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
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
queuepublic 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
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 java.lang.String toString()
toString クラス内 java.lang.ObjectObject.toString()public int hashCode()
hashCode クラス内 java.lang.Objectpublic boolean equals(java.lang.Object obj)
equals クラス内 java.lang.Object