AWS SDK for C++  0.14.3
AWS SDK for C++
AdminUpdateDeviceStatusRequest.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& GetUserPoolId() const{ return m_userPoolId; }
43 
47  inline void SetUserPoolId(const Aws::String& value) { m_userPoolIdHasBeenSet = true; m_userPoolId = value; }
48 
52  inline void SetUserPoolId(Aws::String&& value) { m_userPoolIdHasBeenSet = true; m_userPoolId = value; }
53 
57  inline void SetUserPoolId(const char* value) { m_userPoolIdHasBeenSet = true; m_userPoolId.assign(value); }
58 
62  inline AdminUpdateDeviceStatusRequest& WithUserPoolId(const Aws::String& value) { SetUserPoolId(value); return *this;}
63 
67  inline AdminUpdateDeviceStatusRequest& WithUserPoolId(Aws::String&& value) { SetUserPoolId(value); return *this;}
68 
72  inline AdminUpdateDeviceStatusRequest& WithUserPoolId(const char* value) { SetUserPoolId(value); return *this;}
73 
77  inline const Aws::String& GetUsername() const{ return m_username; }
78 
82  inline void SetUsername(const Aws::String& value) { m_usernameHasBeenSet = true; m_username = value; }
83 
87  inline void SetUsername(Aws::String&& value) { m_usernameHasBeenSet = true; m_username = value; }
88 
92  inline void SetUsername(const char* value) { m_usernameHasBeenSet = true; m_username.assign(value); }
93 
97  inline AdminUpdateDeviceStatusRequest& WithUsername(const Aws::String& value) { SetUsername(value); return *this;}
98 
102  inline AdminUpdateDeviceStatusRequest& WithUsername(Aws::String&& value) { SetUsername(value); return *this;}
103 
107  inline AdminUpdateDeviceStatusRequest& WithUsername(const char* value) { SetUsername(value); return *this;}
108 
112  inline const Aws::String& GetDeviceKey() const{ return m_deviceKey; }
113 
117  inline void SetDeviceKey(const Aws::String& value) { m_deviceKeyHasBeenSet = true; m_deviceKey = value; }
118 
122  inline void SetDeviceKey(Aws::String&& value) { m_deviceKeyHasBeenSet = true; m_deviceKey = value; }
123 
127  inline void SetDeviceKey(const char* value) { m_deviceKeyHasBeenSet = true; m_deviceKey.assign(value); }
128 
132  inline AdminUpdateDeviceStatusRequest& WithDeviceKey(const Aws::String& value) { SetDeviceKey(value); return *this;}
133 
137  inline AdminUpdateDeviceStatusRequest& WithDeviceKey(Aws::String&& value) { SetDeviceKey(value); return *this;}
138 
142  inline AdminUpdateDeviceStatusRequest& WithDeviceKey(const char* value) { SetDeviceKey(value); return *this;}
143 
147  inline const DeviceRememberedStatusType& GetDeviceRememberedStatus() const{ return m_deviceRememberedStatus; }
148 
152  inline void SetDeviceRememberedStatus(const DeviceRememberedStatusType& value) { m_deviceRememberedStatusHasBeenSet = true; m_deviceRememberedStatus = value; }
153 
157  inline void SetDeviceRememberedStatus(DeviceRememberedStatusType&& value) { m_deviceRememberedStatusHasBeenSet = true; m_deviceRememberedStatus = value; }
158 
162  inline AdminUpdateDeviceStatusRequest& WithDeviceRememberedStatus(const DeviceRememberedStatusType& value) { SetDeviceRememberedStatus(value); return *this;}
163 
167  inline AdminUpdateDeviceStatusRequest& WithDeviceRememberedStatus(DeviceRememberedStatusType&& value) { SetDeviceRememberedStatus(value); return *this;}
168 
169  private:
170  Aws::String m_userPoolId;
171  bool m_userPoolIdHasBeenSet;
172  Aws::String m_username;
173  bool m_usernameHasBeenSet;
174  Aws::String m_deviceKey;
175  bool m_deviceKeyHasBeenSet;
176  DeviceRememberedStatusType m_deviceRememberedStatus;
177  bool m_deviceRememberedStatusHasBeenSet;
178  };
179 
180 } // namespace Model
181 } // namespace CognitoIdentityProvider
182 } // namespace Aws
AdminUpdateDeviceStatusRequest & WithDeviceKey(Aws::String &&value)
AdminUpdateDeviceStatusRequest & WithUserPoolId(Aws::String &&value)
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
Definition: HttpTypes.h:63
AdminUpdateDeviceStatusRequest & WithUsername(Aws::String &&value)
AdminUpdateDeviceStatusRequest & WithUserPoolId(const Aws::String &value)
#define AWS_COGNITOIDENTITYPROVIDER_API
AdminUpdateDeviceStatusRequest & WithDeviceRememberedStatus(const DeviceRememberedStatusType &value)
AdminUpdateDeviceStatusRequest & WithDeviceRememberedStatus(DeviceRememberedStatusType &&value)
AdminUpdateDeviceStatusRequest & WithUsername(const Aws::String &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
AdminUpdateDeviceStatusRequest & WithDeviceKey(const Aws::String &value)
JSON (JavaScript Object Notation).