AWS SDK for C++  0.14.3
AWS SDK for C++
SubscribeRequest.h
Go to the documentation of this file.
1 /*
2 * Copyright 2010-2016 Amazon.com, Inc. or its affiliates. All Rights Reserved.
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License").
5 * You may not use this file except in compliance with the License.
6 * A copy of the License is located at
7 *
8 * http://aws.amazon.com/apache2.0
9 *
10 * or in the "license" file accompanying this file. This file is distributed
11 * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
12 * express or implied. See the License for the specific language governing
13 * permissions and limitations under the License.
14 */
15 #pragma once
16 #include <aws/sns/SNS_EXPORTS.h>
17 #include <aws/sns/SNSRequest.h>
19 
20 namespace Aws
21 {
22 namespace SNS
23 {
24 namespace Model
25 {
26 
31  {
32  public:
34  Aws::String SerializePayload() const override;
35 
39  inline const Aws::String& GetTopicArn() const{ return m_topicArn; }
40 
44  inline void SetTopicArn(const Aws::String& value) { m_topicArnHasBeenSet = true; m_topicArn = value; }
45 
49  inline void SetTopicArn(Aws::String&& value) { m_topicArnHasBeenSet = true; m_topicArn = value; }
50 
54  inline void SetTopicArn(const char* value) { m_topicArnHasBeenSet = true; m_topicArn.assign(value); }
55 
59  inline SubscribeRequest& WithTopicArn(const Aws::String& value) { SetTopicArn(value); return *this;}
60 
64  inline SubscribeRequest& WithTopicArn(Aws::String&& value) { SetTopicArn(value); return *this;}
65 
69  inline SubscribeRequest& WithTopicArn(const char* value) { SetTopicArn(value); return *this;}
70 
84  inline const Aws::String& GetProtocol() const{ return m_protocol; }
85 
99  inline void SetProtocol(const Aws::String& value) { m_protocolHasBeenSet = true; m_protocol = value; }
100 
114  inline void SetProtocol(Aws::String&& value) { m_protocolHasBeenSet = true; m_protocol = value; }
115 
129  inline void SetProtocol(const char* value) { m_protocolHasBeenSet = true; m_protocol.assign(value); }
130 
144  inline SubscribeRequest& WithProtocol(const Aws::String& value) { SetProtocol(value); return *this;}
145 
159  inline SubscribeRequest& WithProtocol(Aws::String&& value) { SetProtocol(value); return *this;}
160 
174  inline SubscribeRequest& WithProtocol(const char* value) { SetProtocol(value); return *this;}
175 
190  inline const Aws::String& GetEndpoint() const{ return m_endpoint; }
191 
206  inline void SetEndpoint(const Aws::String& value) { m_endpointHasBeenSet = true; m_endpoint = value; }
207 
222  inline void SetEndpoint(Aws::String&& value) { m_endpointHasBeenSet = true; m_endpoint = value; }
223 
238  inline void SetEndpoint(const char* value) { m_endpointHasBeenSet = true; m_endpoint.assign(value); }
239 
254  inline SubscribeRequest& WithEndpoint(const Aws::String& value) { SetEndpoint(value); return *this;}
255 
270  inline SubscribeRequest& WithEndpoint(Aws::String&& value) { SetEndpoint(value); return *this;}
271 
286  inline SubscribeRequest& WithEndpoint(const char* value) { SetEndpoint(value); return *this;}
287 
288  private:
289  Aws::String m_topicArn;
290  bool m_topicArnHasBeenSet;
291  Aws::String m_protocol;
292  bool m_protocolHasBeenSet;
293  Aws::String m_endpoint;
294  bool m_endpointHasBeenSet;
295  };
296 
297 } // namespace Model
298 } // namespace SNS
299 } // namespace Aws
void SetProtocol(const Aws::String &value)
SubscribeRequest & WithProtocol(Aws::String &&value)
SubscribeRequest & WithEndpoint(const Aws::String &value)
void SetProtocol(const char *value)
SubscribeRequest & WithEndpoint(const char *value)
SubscribeRequest & WithTopicArn(const Aws::String &value)
SubscribeRequest & WithTopicArn(Aws::String &&value)
SubscribeRequest & WithProtocol(const char *value)
void SetTopicArn(const Aws::String &value)
SubscribeRequest & WithTopicArn(const char *value)
SubscribeRequest & WithProtocol(const Aws::String &value)
void SetTopicArn(const char *value)
void SetProtocol(Aws::String &&value)
const Aws::String & GetTopicArn() const
void SetEndpoint(Aws::String &&value)
const Aws::String & GetProtocol() const
void SetTopicArn(Aws::String &&value)
const Aws::String & GetEndpoint() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
#define AWS_SNS_API
Definition: SNS_EXPORTS.h:37
void SetEndpoint(const char *value)
SubscribeRequest & WithEndpoint(Aws::String &&value)
JSON (JavaScript Object Notation).
void SetEndpoint(const Aws::String &value)