AWS SDK for C++  0.14.3
AWS SDK for C++
KeyPairInfo.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/ec2/EC2_EXPORTS.h>
19 
20 namespace Aws
21 {
22 namespace Utils
23 {
24 namespace Xml
25 {
26  class XmlNode;
27 } // namespace Xml
28 } // namespace Utils
29 namespace EC2
30 {
31 namespace Model
32 {
33 
38  {
39  public:
40  KeyPairInfo();
41  KeyPairInfo(const Aws::Utils::Xml::XmlNode& xmlNode);
42  KeyPairInfo& operator=(const Aws::Utils::Xml::XmlNode& xmlNode);
43 
44  void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
45  void OutputToStream(Aws::OStream& oStream, const char* location) const;
46 
50  inline const Aws::String& GetKeyName() const{ return m_keyName; }
51 
55  inline void SetKeyName(const Aws::String& value) { m_keyNameHasBeenSet = true; m_keyName = value; }
56 
60  inline void SetKeyName(Aws::String&& value) { m_keyNameHasBeenSet = true; m_keyName = value; }
61 
65  inline void SetKeyName(const char* value) { m_keyNameHasBeenSet = true; m_keyName.assign(value); }
66 
70  inline KeyPairInfo& WithKeyName(const Aws::String& value) { SetKeyName(value); return *this;}
71 
75  inline KeyPairInfo& WithKeyName(Aws::String&& value) { SetKeyName(value); return *this;}
76 
80  inline KeyPairInfo& WithKeyName(const char* value) { SetKeyName(value); return *this;}
81 
88  inline const Aws::String& GetKeyFingerprint() const{ return m_keyFingerprint; }
89 
96  inline void SetKeyFingerprint(const Aws::String& value) { m_keyFingerprintHasBeenSet = true; m_keyFingerprint = value; }
97 
104  inline void SetKeyFingerprint(Aws::String&& value) { m_keyFingerprintHasBeenSet = true; m_keyFingerprint = value; }
105 
112  inline void SetKeyFingerprint(const char* value) { m_keyFingerprintHasBeenSet = true; m_keyFingerprint.assign(value); }
113 
120  inline KeyPairInfo& WithKeyFingerprint(const Aws::String& value) { SetKeyFingerprint(value); return *this;}
121 
128  inline KeyPairInfo& WithKeyFingerprint(Aws::String&& value) { SetKeyFingerprint(value); return *this;}
129 
136  inline KeyPairInfo& WithKeyFingerprint(const char* value) { SetKeyFingerprint(value); return *this;}
137 
138  private:
139  Aws::String m_keyName;
140  bool m_keyNameHasBeenSet;
141  Aws::String m_keyFingerprint;
142  bool m_keyFingerprintHasBeenSet;
143  };
144 
145 } // namespace Model
146 } // namespace EC2
147 } // namespace Aws
const Aws::String & GetKeyName() const
Definition: KeyPairInfo.h:50
void SetKeyName(const Aws::String &value)
Definition: KeyPairInfo.h:55
void SetKeyName(const char *value)
Definition: KeyPairInfo.h:65
KeyPairInfo & WithKeyName(const Aws::String &value)
Definition: KeyPairInfo.h:70
std::basic_ostream< char, std::char_traits< char > > OStream
Definition: AWSStreamFwd.h:31
KeyPairInfo & WithKeyFingerprint(const Aws::String &value)
Definition: KeyPairInfo.h:120
KeyPairInfo & WithKeyName(const char *value)
Definition: KeyPairInfo.h:80
void SetKeyFingerprint(const Aws::String &value)
Definition: KeyPairInfo.h:96
KeyPairInfo & WithKeyName(Aws::String &&value)
Definition: KeyPairInfo.h:75
KeyPairInfo & WithKeyFingerprint(const char *value)
Definition: KeyPairInfo.h:136
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
const Aws::String & GetKeyFingerprint() const
Definition: KeyPairInfo.h:88
void SetKeyFingerprint(Aws::String &&value)
Definition: KeyPairInfo.h:104
KeyPairInfo & WithKeyFingerprint(Aws::String &&value)
Definition: KeyPairInfo.h:128
void SetKeyName(Aws::String &&value)
Definition: KeyPairInfo.h:60
#define AWS_EC2_API
Definition: EC2_EXPORTS.h:37
void SetKeyFingerprint(const char *value)
Definition: KeyPairInfo.h:112
JSON (JavaScript Object Notation).