AWS SDK for C++  0.14.3
AWS SDK for C++
GetPasswordDataResponse.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>
20 
21 namespace Aws
22 {
23 template<typename RESULT_TYPE>
24 class AmazonWebServiceResult;
25 
26 namespace Utils
27 {
28 namespace Xml
29 {
30  class XmlDocument;
31 } // namespace Xml
32 } // namespace Utils
33 namespace EC2
34 {
35 namespace Model
36 {
41  {
42  public:
46 
50  inline const Aws::String& GetInstanceId() const{ return m_instanceId; }
51 
55  inline void SetInstanceId(const Aws::String& value) { m_instanceId = value; }
56 
60  inline void SetInstanceId(Aws::String&& value) { m_instanceId = value; }
61 
65  inline void SetInstanceId(const char* value) { m_instanceId.assign(value); }
66 
70  inline GetPasswordDataResponse& WithInstanceId(const Aws::String& value) { SetInstanceId(value); return *this;}
71 
75  inline GetPasswordDataResponse& WithInstanceId(Aws::String&& value) { SetInstanceId(value); return *this;}
76 
80  inline GetPasswordDataResponse& WithInstanceId(const char* value) { SetInstanceId(value); return *this;}
81 
85  inline const Aws::Utils::DateTime& GetTimestamp() const{ return m_timestamp; }
86 
90  inline void SetTimestamp(const Aws::Utils::DateTime& value) { m_timestamp = value; }
91 
95  inline void SetTimestamp(Aws::Utils::DateTime&& value) { m_timestamp = value; }
96 
100  inline GetPasswordDataResponse& WithTimestamp(const Aws::Utils::DateTime& value) { SetTimestamp(value); return *this;}
101 
105  inline GetPasswordDataResponse& WithTimestamp(Aws::Utils::DateTime&& value) { SetTimestamp(value); return *this;}
106 
110  inline const Aws::String& GetPasswordData() const{ return m_passwordData; }
111 
115  inline void SetPasswordData(const Aws::String& value) { m_passwordData = value; }
116 
120  inline void SetPasswordData(Aws::String&& value) { m_passwordData = value; }
121 
125  inline void SetPasswordData(const char* value) { m_passwordData.assign(value); }
126 
130  inline GetPasswordDataResponse& WithPasswordData(const Aws::String& value) { SetPasswordData(value); return *this;}
131 
135  inline GetPasswordDataResponse& WithPasswordData(Aws::String&& value) { SetPasswordData(value); return *this;}
136 
140  inline GetPasswordDataResponse& WithPasswordData(const char* value) { SetPasswordData(value); return *this;}
141 
142 
143  inline const ResponseMetadata& GetResponseMetadata() const{ return m_responseMetadata; }
144 
145 
146  inline void SetResponseMetadata(const ResponseMetadata& value) { m_responseMetadata = value; }
147 
148 
149  inline void SetResponseMetadata(ResponseMetadata&& value) { m_responseMetadata = value; }
150 
151 
152  inline GetPasswordDataResponse& WithResponseMetadata(const ResponseMetadata& value) { SetResponseMetadata(value); return *this;}
153 
154 
155  inline GetPasswordDataResponse& WithResponseMetadata(ResponseMetadata&& value) { SetResponseMetadata(value); return *this;}
156 
157  private:
158  Aws::String m_instanceId;
159  Aws::Utils::DateTime m_timestamp;
160  Aws::String m_passwordData;
161  ResponseMetadata m_responseMetadata;
162  };
163 
164 } // namespace Model
165 } // namespace EC2
166 } // namespace Aws
GetPasswordDataResponse & WithTimestamp(const Aws::Utils::DateTime &value)
GetPasswordDataResponse & WithInstanceId(const Aws::String &value)
GetPasswordDataResponse & WithResponseMetadata(const ResponseMetadata &value)
void SetPasswordData(const Aws::String &value)
void SetResponseMetadata(ResponseMetadata &&value)
GetPasswordDataResponse & WithInstanceId(const char *value)
GetPasswordDataResponse & WithPasswordData(Aws::String &&value)
GetPasswordDataResponse & WithInstanceId(Aws::String &&value)
const ResponseMetadata & GetResponseMetadata() const
void SetTimestamp(const Aws::Utils::DateTime &value)
GetPasswordDataResponse & WithResponseMetadata(ResponseMetadata &&value)
GetPasswordDataResponse & WithPasswordData(const char *value)
const Aws::Utils::DateTime & GetTimestamp() const
GetPasswordDataResponse & WithTimestamp(Aws::Utils::DateTime &&value)
void SetTimestamp(Aws::Utils::DateTime &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
void SetResponseMetadata(const ResponseMetadata &value)
#define AWS_EC2_API
Definition: EC2_EXPORTS.h:37
void SetInstanceId(const Aws::String &value)
GetPasswordDataResponse & WithPasswordData(const Aws::String &value)
JSON (JavaScript Object Notation).