AWS SDK for C++  0.14.3
AWS SDK for C++
ConfirmDeviceRequest.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
20 
21 namespace Aws
22 {
23 namespace CognitoIdentityProvider
24 {
25 namespace Model
26 {
27 
32  {
33  public:
35  Aws::String SerializePayload() const override;
36 
37  Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
38 
42  inline const Aws::String& GetAccessToken() const{ return m_accessToken; }
43 
47  inline void SetAccessToken(const Aws::String& value) { m_accessTokenHasBeenSet = true; m_accessToken = value; }
48 
52  inline void SetAccessToken(Aws::String&& value) { m_accessTokenHasBeenSet = true; m_accessToken = value; }
53 
57  inline void SetAccessToken(const char* value) { m_accessTokenHasBeenSet = true; m_accessToken.assign(value); }
58 
62  inline ConfirmDeviceRequest& WithAccessToken(const Aws::String& value) { SetAccessToken(value); return *this;}
63 
67  inline ConfirmDeviceRequest& WithAccessToken(Aws::String&& value) { SetAccessToken(value); return *this;}
68 
72  inline ConfirmDeviceRequest& WithAccessToken(const char* value) { SetAccessToken(value); return *this;}
73 
77  inline const Aws::String& GetDeviceKey() const{ return m_deviceKey; }
78 
82  inline void SetDeviceKey(const Aws::String& value) { m_deviceKeyHasBeenSet = true; m_deviceKey = value; }
83 
87  inline void SetDeviceKey(Aws::String&& value) { m_deviceKeyHasBeenSet = true; m_deviceKey = value; }
88 
92  inline void SetDeviceKey(const char* value) { m_deviceKeyHasBeenSet = true; m_deviceKey.assign(value); }
93 
97  inline ConfirmDeviceRequest& WithDeviceKey(const Aws::String& value) { SetDeviceKey(value); return *this;}
98 
102  inline ConfirmDeviceRequest& WithDeviceKey(Aws::String&& value) { SetDeviceKey(value); return *this;}
103 
107  inline ConfirmDeviceRequest& WithDeviceKey(const char* value) { SetDeviceKey(value); return *this;}
108 
112  inline const DeviceSecretVerifierConfigType& GetDeviceSecretVerifierConfig() const{ return m_deviceSecretVerifierConfig; }
113 
117  inline void SetDeviceSecretVerifierConfig(const DeviceSecretVerifierConfigType& value) { m_deviceSecretVerifierConfigHasBeenSet = true; m_deviceSecretVerifierConfig = value; }
118 
122  inline void SetDeviceSecretVerifierConfig(DeviceSecretVerifierConfigType&& value) { m_deviceSecretVerifierConfigHasBeenSet = true; m_deviceSecretVerifierConfig = value; }
123 
127  inline ConfirmDeviceRequest& WithDeviceSecretVerifierConfig(const DeviceSecretVerifierConfigType& value) { SetDeviceSecretVerifierConfig(value); return *this;}
128 
132  inline ConfirmDeviceRequest& WithDeviceSecretVerifierConfig(DeviceSecretVerifierConfigType&& value) { SetDeviceSecretVerifierConfig(value); return *this;}
133 
137  inline const Aws::String& GetDeviceName() const{ return m_deviceName; }
138 
142  inline void SetDeviceName(const Aws::String& value) { m_deviceNameHasBeenSet = true; m_deviceName = value; }
143 
147  inline void SetDeviceName(Aws::String&& value) { m_deviceNameHasBeenSet = true; m_deviceName = value; }
148 
152  inline void SetDeviceName(const char* value) { m_deviceNameHasBeenSet = true; m_deviceName.assign(value); }
153 
157  inline ConfirmDeviceRequest& WithDeviceName(const Aws::String& value) { SetDeviceName(value); return *this;}
158 
162  inline ConfirmDeviceRequest& WithDeviceName(Aws::String&& value) { SetDeviceName(value); return *this;}
163 
167  inline ConfirmDeviceRequest& WithDeviceName(const char* value) { SetDeviceName(value); return *this;}
168 
169  private:
170  Aws::String m_accessToken;
171  bool m_accessTokenHasBeenSet;
172  Aws::String m_deviceKey;
173  bool m_deviceKeyHasBeenSet;
174  DeviceSecretVerifierConfigType m_deviceSecretVerifierConfig;
175  bool m_deviceSecretVerifierConfigHasBeenSet;
176  Aws::String m_deviceName;
177  bool m_deviceNameHasBeenSet;
178  };
179 
180 } // namespace Model
181 } // namespace CognitoIdentityProvider
182 } // namespace Aws
ConfirmDeviceRequest & WithDeviceName(const Aws::String &value)
const DeviceSecretVerifierConfigType & GetDeviceSecretVerifierConfig() const
ConfirmDeviceRequest & WithDeviceKey(const char *value)
ConfirmDeviceRequest & WithDeviceSecretVerifierConfig(DeviceSecretVerifierConfigType &&value)
ConfirmDeviceRequest & WithDeviceSecretVerifierConfig(const DeviceSecretVerifierConfigType &value)
ConfirmDeviceRequest & WithDeviceKey(const Aws::String &value)
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
Definition: HttpTypes.h:63
ConfirmDeviceRequest & WithAccessToken(const char *value)
void SetDeviceSecretVerifierConfig(DeviceSecretVerifierConfigType &&value)
#define AWS_COGNITOIDENTITYPROVIDER_API
void SetDeviceSecretVerifierConfig(const DeviceSecretVerifierConfigType &value)
ConfirmDeviceRequest & WithDeviceName(const char *value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
ConfirmDeviceRequest & WithDeviceKey(Aws::String &&value)
ConfirmDeviceRequest & WithAccessToken(const Aws::String &value)
ConfirmDeviceRequest & WithDeviceName(Aws::String &&value)
ConfirmDeviceRequest & WithAccessToken(Aws::String &&value)
JSON (JavaScript Object Notation).