AWS SDK for C++  0.12.9
AWS SDK for C++
SSHPublicKeyMetadata.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>
21 
22 namespace Aws
23 {
24 namespace Utils
25 {
26 namespace Xml
27 {
28  class XmlNode;
29 } // namespace Xml
30 } // namespace Utils
31 namespace IAM
32 {
33 namespace Model
34 {
35 
42  {
43  public:
46  SSHPublicKeyMetadata& operator=(const Aws::Utils::Xml::XmlNode& xmlNode);
47 
48  void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
49  void OutputToStream(Aws::OStream& oStream, const char* location) const;
50 
54  inline const Aws::String& GetUserName() const{ return m_userName; }
55 
59  inline void SetUserName(const Aws::String& value) { m_userNameHasBeenSet = true; m_userName = value; }
60 
64  inline void SetUserName(Aws::String&& value) { m_userNameHasBeenSet = true; m_userName = value; }
65 
69  inline void SetUserName(const char* value) { m_userNameHasBeenSet = true; m_userName.assign(value); }
70 
74  inline SSHPublicKeyMetadata& WithUserName(const Aws::String& value) { SetUserName(value); return *this;}
75 
79  inline SSHPublicKeyMetadata& WithUserName(Aws::String&& value) { SetUserName(value); return *this;}
80 
84  inline SSHPublicKeyMetadata& WithUserName(const char* value) { SetUserName(value); return *this;}
85 
89  inline const Aws::String& GetSSHPublicKeyId() const{ return m_sSHPublicKeyId; }
90 
94  inline void SetSSHPublicKeyId(const Aws::String& value) { m_sSHPublicKeyIdHasBeenSet = true; m_sSHPublicKeyId = value; }
95 
99  inline void SetSSHPublicKeyId(Aws::String&& value) { m_sSHPublicKeyIdHasBeenSet = true; m_sSHPublicKeyId = value; }
100 
104  inline void SetSSHPublicKeyId(const char* value) { m_sSHPublicKeyIdHasBeenSet = true; m_sSHPublicKeyId.assign(value); }
105 
109  inline SSHPublicKeyMetadata& WithSSHPublicKeyId(const Aws::String& value) { SetSSHPublicKeyId(value); return *this;}
110 
114  inline SSHPublicKeyMetadata& WithSSHPublicKeyId(Aws::String&& value) { SetSSHPublicKeyId(value); return *this;}
115 
119  inline SSHPublicKeyMetadata& WithSSHPublicKeyId(const char* value) { SetSSHPublicKeyId(value); return *this;}
120 
126  inline const StatusType& GetStatus() const{ return m_status; }
127 
133  inline void SetStatus(const StatusType& value) { m_statusHasBeenSet = true; m_status = value; }
134 
140  inline void SetStatus(StatusType&& value) { m_statusHasBeenSet = true; m_status = value; }
141 
147  inline SSHPublicKeyMetadata& WithStatus(const StatusType& value) { SetStatus(value); return *this;}
148 
154  inline SSHPublicKeyMetadata& WithStatus(StatusType&& value) { SetStatus(value); return *this;}
155 
160  inline const Aws::Utils::DateTime& GetUploadDate() const{ return m_uploadDate; }
161 
166  inline void SetUploadDate(const Aws::Utils::DateTime& value) { m_uploadDateHasBeenSet = true; m_uploadDate = value; }
167 
172  inline void SetUploadDate(Aws::Utils::DateTime&& value) { m_uploadDateHasBeenSet = true; m_uploadDate = value; }
173 
178  inline SSHPublicKeyMetadata& WithUploadDate(const Aws::Utils::DateTime& value) { SetUploadDate(value); return *this;}
179 
184  inline SSHPublicKeyMetadata& WithUploadDate(Aws::Utils::DateTime&& value) { SetUploadDate(value); return *this;}
185 
186  private:
187  Aws::String m_userName;
188  bool m_userNameHasBeenSet;
189  Aws::String m_sSHPublicKeyId;
190  bool m_sSHPublicKeyIdHasBeenSet;
191  StatusType m_status;
192  bool m_statusHasBeenSet;
193  Aws::Utils::DateTime m_uploadDate;
194  bool m_uploadDateHasBeenSet;
195  };
196 
197 } // namespace Model
198 } // namespace IAM
199 } // namespace Aws
void SetUploadDate(Aws::Utils::DateTime &&value)
SSHPublicKeyMetadata & WithUploadDate(const Aws::Utils::DateTime &value)
void SetSSHPublicKeyId(const Aws::String &value)
const Aws::Utils::DateTime & GetUploadDate() const
void SetUserName(const Aws::String &value)
SSHPublicKeyMetadata & WithUploadDate(Aws::Utils::DateTime &&value)
SSHPublicKeyMetadata & WithSSHPublicKeyId(const char *value)
SSHPublicKeyMetadata & WithStatus(const StatusType &value)
const Aws::String & GetUserName() const
SSHPublicKeyMetadata & WithUserName(const Aws::String &value)
SSHPublicKeyMetadata & WithUserName(Aws::String &&value)
void SetSSHPublicKeyId(Aws::String &&value)
SSHPublicKeyMetadata & WithSSHPublicKeyId(const Aws::String &value)
std::basic_ostream< char, std::char_traits< char > > OStream
Definition: AWSStreamFwd.h:31
SSHPublicKeyMetadata & WithSSHPublicKeyId(Aws::String &&value)
SSHPublicKeyMetadata & WithStatus(StatusType &&value)
SSHPublicKeyMetadata & WithUserName(const char *value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
#define AWS_IAM_API
Definition: IAM_EXPORTS.h:34
void SetUploadDate(const Aws::Utils::DateTime &value)
const Aws::String & GetSSHPublicKeyId() const
void SetStatus(const StatusType &value)
JSON (JavaScript Object Notation).