AWS SDK for C++  0.14.3
AWS SDK for C++
UpdateSSHPublicKeyRequest.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/iam/IAM_EXPORTS.h>
17 #include <aws/iam/IAMRequest.h>
20 
21 namespace Aws
22 {
23 namespace IAM
24 {
25 namespace Model
26 {
27 
31  {
32  public:
34  Aws::String SerializePayload() const override;
35 
42  inline const Aws::String& GetUserName() const{ return m_userName; }
43 
50  inline void SetUserName(const Aws::String& value) { m_userNameHasBeenSet = true; m_userName = value; }
51 
58  inline void SetUserName(Aws::String&& value) { m_userNameHasBeenSet = true; m_userName = value; }
59 
66  inline void SetUserName(const char* value) { m_userNameHasBeenSet = true; m_userName.assign(value); }
67 
74  inline UpdateSSHPublicKeyRequest& WithUserName(const Aws::String& value) { SetUserName(value); return *this;}
75 
82  inline UpdateSSHPublicKeyRequest& WithUserName(Aws::String&& value) { SetUserName(value); return *this;}
83 
90  inline UpdateSSHPublicKeyRequest& WithUserName(const char* value) { SetUserName(value); return *this;}
91 
98  inline const Aws::String& GetSSHPublicKeyId() const{ return m_sSHPublicKeyId; }
99 
106  inline void SetSSHPublicKeyId(const Aws::String& value) { m_sSHPublicKeyIdHasBeenSet = true; m_sSHPublicKeyId = value; }
107 
114  inline void SetSSHPublicKeyId(Aws::String&& value) { m_sSHPublicKeyIdHasBeenSet = true; m_sSHPublicKeyId = value; }
115 
122  inline void SetSSHPublicKeyId(const char* value) { m_sSHPublicKeyIdHasBeenSet = true; m_sSHPublicKeyId.assign(value); }
123 
130  inline UpdateSSHPublicKeyRequest& WithSSHPublicKeyId(const Aws::String& value) { SetSSHPublicKeyId(value); return *this;}
131 
138  inline UpdateSSHPublicKeyRequest& WithSSHPublicKeyId(Aws::String&& value) { SetSSHPublicKeyId(value); return *this;}
139 
146  inline UpdateSSHPublicKeyRequest& WithSSHPublicKeyId(const char* value) { SetSSHPublicKeyId(value); return *this;}
147 
153  inline const StatusType& GetStatus() const{ return m_status; }
154 
160  inline void SetStatus(const StatusType& value) { m_statusHasBeenSet = true; m_status = value; }
161 
167  inline void SetStatus(StatusType&& value) { m_statusHasBeenSet = true; m_status = value; }
168 
174  inline UpdateSSHPublicKeyRequest& WithStatus(const StatusType& value) { SetStatus(value); return *this;}
175 
181  inline UpdateSSHPublicKeyRequest& WithStatus(StatusType&& value) { SetStatus(value); return *this;}
182 
183  private:
184  Aws::String m_userName;
185  bool m_userNameHasBeenSet;
186  Aws::String m_sSHPublicKeyId;
187  bool m_sSHPublicKeyIdHasBeenSet;
188  StatusType m_status;
189  bool m_statusHasBeenSet;
190  };
191 
192 } // namespace Model
193 } // namespace IAM
194 } // namespace Aws
UpdateSSHPublicKeyRequest & WithUserName(Aws::String &&value)
UpdateSSHPublicKeyRequest & WithUserName(const Aws::String &value)
UpdateSSHPublicKeyRequest & WithUserName(const char *value)
UpdateSSHPublicKeyRequest & WithStatus(StatusType &&value)
UpdateSSHPublicKeyRequest & WithStatus(const StatusType &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
UpdateSSHPublicKeyRequest & WithSSHPublicKeyId(const Aws::String &value)
#define AWS_IAM_API
Definition: IAM_EXPORTS.h:37
UpdateSSHPublicKeyRequest & WithSSHPublicKeyId(const char *value)
JSON (JavaScript Object Notation).
UpdateSSHPublicKeyRequest & WithSSHPublicKeyId(Aws::String &&value)