AWS SDK for C++  0.12.9
AWS SDK for C++
ImportKeyPairResponse.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 template<typename RESULT_TYPE>
23 class AmazonWebServiceResult;
24 
25 namespace Utils
26 {
27 namespace Xml
28 {
29  class XmlDocument;
30 } // namespace Xml
31 } // namespace Utils
32 namespace EC2
33 {
34 namespace Model
35 {
40  {
41  public:
45 
49  inline const Aws::String& GetKeyName() const{ return m_keyName; }
50 
54  inline void SetKeyName(const Aws::String& value) { m_keyName = value; }
55 
59  inline void SetKeyName(Aws::String&& value) { m_keyName = value; }
60 
64  inline void SetKeyName(const char* value) { m_keyName.assign(value); }
65 
69  inline ImportKeyPairResponse& WithKeyName(const Aws::String& value) { SetKeyName(value); return *this;}
70 
74  inline ImportKeyPairResponse& WithKeyName(Aws::String&& value) { SetKeyName(value); return *this;}
75 
79  inline ImportKeyPairResponse& WithKeyName(const char* value) { SetKeyName(value); return *this;}
80 
84  inline const Aws::String& GetKeyFingerprint() const{ return m_keyFingerprint; }
85 
89  inline void SetKeyFingerprint(const Aws::String& value) { m_keyFingerprint = value; }
90 
94  inline void SetKeyFingerprint(Aws::String&& value) { m_keyFingerprint = value; }
95 
99  inline void SetKeyFingerprint(const char* value) { m_keyFingerprint.assign(value); }
100 
104  inline ImportKeyPairResponse& WithKeyFingerprint(const Aws::String& value) { SetKeyFingerprint(value); return *this;}
105 
109  inline ImportKeyPairResponse& WithKeyFingerprint(Aws::String&& value) { SetKeyFingerprint(value); return *this;}
110 
114  inline ImportKeyPairResponse& WithKeyFingerprint(const char* value) { SetKeyFingerprint(value); return *this;}
115 
116 
117  inline const ResponseMetadata& GetResponseMetadata() const{ return m_responseMetadata; }
118 
119 
120  inline void SetResponseMetadata(const ResponseMetadata& value) { m_responseMetadata = value; }
121 
122 
123  inline void SetResponseMetadata(ResponseMetadata&& value) { m_responseMetadata = value; }
124 
125 
126  inline ImportKeyPairResponse& WithResponseMetadata(const ResponseMetadata& value) { SetResponseMetadata(value); return *this;}
127 
128 
129  inline ImportKeyPairResponse& WithResponseMetadata(ResponseMetadata&& value) { SetResponseMetadata(value); return *this;}
130 
131  private:
132  Aws::String m_keyName;
133  Aws::String m_keyFingerprint;
134  ResponseMetadata m_responseMetadata;
135  };
136 
137 } // namespace Model
138 } // namespace EC2
139 } // namespace Aws
ImportKeyPairResponse & WithKeyName(Aws::String &&value)
ImportKeyPairResponse & WithKeyFingerprint(const Aws::String &value)
ImportKeyPairResponse & WithKeyFingerprint(const char *value)
const ResponseMetadata & GetResponseMetadata() const
void SetKeyFingerprint(const Aws::String &value)
ImportKeyPairResponse & WithKeyName(const Aws::String &value)
ImportKeyPairResponse & WithResponseMetadata(const ResponseMetadata &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
ImportKeyPairResponse & WithKeyName(const char *value)
void SetKeyName(const Aws::String &value)
ImportKeyPairResponse & WithKeyFingerprint(Aws::String &&value)
const Aws::String & GetKeyFingerprint() const
void SetResponseMetadata(const ResponseMetadata &value)
#define AWS_EC2_API
Definition: EC2_EXPORTS.h:34
void SetResponseMetadata(ResponseMetadata &&value)
ImportKeyPairResponse & WithResponseMetadata(ResponseMetadata &&value)
const Aws::String & GetKeyName() const
JSON (JavaScript Object Notation).