AWS SDK for C++  0.14.3
AWS SDK for C++
GetSSHPublicKeyRequest.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 GetSSHPublicKeyRequest& WithUserName(const Aws::String& value) { SetUserName(value); return *this;}
75 
82  inline GetSSHPublicKeyRequest& WithUserName(Aws::String&& value) { SetUserName(value); return *this;}
83 
90  inline GetSSHPublicKeyRequest& 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 GetSSHPublicKeyRequest& WithSSHPublicKeyId(const Aws::String& value) { SetSSHPublicKeyId(value); return *this;}
131 
138  inline GetSSHPublicKeyRequest& WithSSHPublicKeyId(Aws::String&& value) { SetSSHPublicKeyId(value); return *this;}
139 
146  inline GetSSHPublicKeyRequest& WithSSHPublicKeyId(const char* value) { SetSSHPublicKeyId(value); return *this;}
147 
153  inline const EncodingType& GetEncoding() const{ return m_encoding; }
154 
160  inline void SetEncoding(const EncodingType& value) { m_encodingHasBeenSet = true; m_encoding = value; }
161 
167  inline void SetEncoding(EncodingType&& value) { m_encodingHasBeenSet = true; m_encoding = value; }
168 
174  inline GetSSHPublicKeyRequest& WithEncoding(const EncodingType& value) { SetEncoding(value); return *this;}
175 
181  inline GetSSHPublicKeyRequest& WithEncoding(EncodingType&& value) { SetEncoding(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  EncodingType m_encoding;
189  bool m_encodingHasBeenSet;
190  };
191 
192 } // namespace Model
193 } // namespace IAM
194 } // namespace Aws
GetSSHPublicKeyRequest & WithSSHPublicKeyId(Aws::String &&value)
const Aws::String & GetSSHPublicKeyId() const
GetSSHPublicKeyRequest & WithSSHPublicKeyId(const char *value)
GetSSHPublicKeyRequest & WithEncoding(EncodingType &&value)
void SetUserName(const Aws::String &value)
GetSSHPublicKeyRequest & WithUserName(const Aws::String &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
void SetSSHPublicKeyId(const Aws::String &value)
GetSSHPublicKeyRequest & WithUserName(Aws::String &&value)
#define AWS_IAM_API
Definition: IAM_EXPORTS.h:37
GetSSHPublicKeyRequest & WithEncoding(const EncodingType &value)
GetSSHPublicKeyRequest & WithUserName(const char *value)
GetSSHPublicKeyRequest & WithSSHPublicKeyId(const Aws::String &value)
JSON (JavaScript Object Notation).
void SetEncoding(const EncodingType &value)