AWS SDK for C++  0.14.3
AWS SDK for C++
ConfirmSubscriptionRequest.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 ConfirmSubscriptionRequest& WithTopicArn(const Aws::String& value) { SetTopicArn(value); return *this;}
60 
64  inline ConfirmSubscriptionRequest& WithTopicArn(Aws::String&& value) { SetTopicArn(value); return *this;}
65 
69  inline ConfirmSubscriptionRequest& WithTopicArn(const char* value) { SetTopicArn(value); return *this;}
70 
75  inline const Aws::String& GetToken() const{ return m_token; }
76 
81  inline void SetToken(const Aws::String& value) { m_tokenHasBeenSet = true; m_token = value; }
82 
87  inline void SetToken(Aws::String&& value) { m_tokenHasBeenSet = true; m_token = value; }
88 
93  inline void SetToken(const char* value) { m_tokenHasBeenSet = true; m_token.assign(value); }
94 
99  inline ConfirmSubscriptionRequest& WithToken(const Aws::String& value) { SetToken(value); return *this;}
100 
105  inline ConfirmSubscriptionRequest& WithToken(Aws::String&& value) { SetToken(value); return *this;}
106 
111  inline ConfirmSubscriptionRequest& WithToken(const char* value) { SetToken(value); return *this;}
112 
119  inline const Aws::String& GetAuthenticateOnUnsubscribe() const{ return m_authenticateOnUnsubscribe; }
120 
127  inline void SetAuthenticateOnUnsubscribe(const Aws::String& value) { m_authenticateOnUnsubscribeHasBeenSet = true; m_authenticateOnUnsubscribe = value; }
128 
135  inline void SetAuthenticateOnUnsubscribe(Aws::String&& value) { m_authenticateOnUnsubscribeHasBeenSet = true; m_authenticateOnUnsubscribe = value; }
136 
143  inline void SetAuthenticateOnUnsubscribe(const char* value) { m_authenticateOnUnsubscribeHasBeenSet = true; m_authenticateOnUnsubscribe.assign(value); }
144 
151  inline ConfirmSubscriptionRequest& WithAuthenticateOnUnsubscribe(const Aws::String& value) { SetAuthenticateOnUnsubscribe(value); return *this;}
152 
159  inline ConfirmSubscriptionRequest& WithAuthenticateOnUnsubscribe(Aws::String&& value) { SetAuthenticateOnUnsubscribe(value); return *this;}
160 
167  inline ConfirmSubscriptionRequest& WithAuthenticateOnUnsubscribe(const char* value) { SetAuthenticateOnUnsubscribe(value); return *this;}
168 
169  private:
170  Aws::String m_topicArn;
171  bool m_topicArnHasBeenSet;
172  Aws::String m_token;
173  bool m_tokenHasBeenSet;
174  Aws::String m_authenticateOnUnsubscribe;
175  bool m_authenticateOnUnsubscribeHasBeenSet;
176  };
177 
178 } // namespace Model
179 } // namespace SNS
180 } // namespace Aws
ConfirmSubscriptionRequest & WithToken(Aws::String &&value)
ConfirmSubscriptionRequest & WithTopicArn(const char *value)
ConfirmSubscriptionRequest & WithTopicArn(const Aws::String &value)
ConfirmSubscriptionRequest & WithAuthenticateOnUnsubscribe(const char *value)
ConfirmSubscriptionRequest & WithAuthenticateOnUnsubscribe(const Aws::String &value)
ConfirmSubscriptionRequest & WithAuthenticateOnUnsubscribe(Aws::String &&value)
ConfirmSubscriptionRequest & WithToken(const Aws::String &value)
ConfirmSubscriptionRequest & WithTopicArn(Aws::String &&value)
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
ConfirmSubscriptionRequest & WithToken(const char *value)
JSON (JavaScript Object Notation).
void SetAuthenticateOnUnsubscribe(const Aws::String &value)