AWS SDK for C++  1.9.108
AWS SDK for C++
TemporaryCredential.h
Go to the documentation of this file.
1 
6 #pragma once
9 #include <utility>
10 
11 namespace Aws
12 {
13 namespace Utils
14 {
15 namespace Json
16 {
17  class JsonValue;
18  class JsonView;
19 } // namespace Json
20 } // namespace Utils
21 namespace OpsWorks
22 {
23 namespace Model
24 {
25 
33  {
34  public:
39 
40 
44  inline const Aws::String& GetUsername() const{ return m_username; }
45 
49  inline bool UsernameHasBeenSet() const { return m_usernameHasBeenSet; }
50 
54  inline void SetUsername(const Aws::String& value) { m_usernameHasBeenSet = true; m_username = value; }
55 
59  inline void SetUsername(Aws::String&& value) { m_usernameHasBeenSet = true; m_username = std::move(value); }
60 
64  inline void SetUsername(const char* value) { m_usernameHasBeenSet = true; m_username.assign(value); }
65 
69  inline TemporaryCredential& WithUsername(const Aws::String& value) { SetUsername(value); return *this;}
70 
74  inline TemporaryCredential& WithUsername(Aws::String&& value) { SetUsername(std::move(value)); return *this;}
75 
79  inline TemporaryCredential& WithUsername(const char* value) { SetUsername(value); return *this;}
80 
81 
85  inline const Aws::String& GetPassword() const{ return m_password; }
86 
90  inline bool PasswordHasBeenSet() const { return m_passwordHasBeenSet; }
91 
95  inline void SetPassword(const Aws::String& value) { m_passwordHasBeenSet = true; m_password = value; }
96 
100  inline void SetPassword(Aws::String&& value) { m_passwordHasBeenSet = true; m_password = std::move(value); }
101 
105  inline void SetPassword(const char* value) { m_passwordHasBeenSet = true; m_password.assign(value); }
106 
110  inline TemporaryCredential& WithPassword(const Aws::String& value) { SetPassword(value); return *this;}
111 
115  inline TemporaryCredential& WithPassword(Aws::String&& value) { SetPassword(std::move(value)); return *this;}
116 
120  inline TemporaryCredential& WithPassword(const char* value) { SetPassword(value); return *this;}
121 
122 
129  inline int GetValidForInMinutes() const{ return m_validForInMinutes; }
130 
137  inline bool ValidForInMinutesHasBeenSet() const { return m_validForInMinutesHasBeenSet; }
138 
145  inline void SetValidForInMinutes(int value) { m_validForInMinutesHasBeenSet = true; m_validForInMinutes = value; }
146 
153  inline TemporaryCredential& WithValidForInMinutes(int value) { SetValidForInMinutes(value); return *this;}
154 
155 
159  inline const Aws::String& GetInstanceId() const{ return m_instanceId; }
160 
164  inline bool InstanceIdHasBeenSet() const { return m_instanceIdHasBeenSet; }
165 
169  inline void SetInstanceId(const Aws::String& value) { m_instanceIdHasBeenSet = true; m_instanceId = value; }
170 
174  inline void SetInstanceId(Aws::String&& value) { m_instanceIdHasBeenSet = true; m_instanceId = std::move(value); }
175 
179  inline void SetInstanceId(const char* value) { m_instanceIdHasBeenSet = true; m_instanceId.assign(value); }
180 
184  inline TemporaryCredential& WithInstanceId(const Aws::String& value) { SetInstanceId(value); return *this;}
185 
189  inline TemporaryCredential& WithInstanceId(Aws::String&& value) { SetInstanceId(std::move(value)); return *this;}
190 
194  inline TemporaryCredential& WithInstanceId(const char* value) { SetInstanceId(value); return *this;}
195 
196  private:
197 
198  Aws::String m_username;
199  bool m_usernameHasBeenSet;
200 
201  Aws::String m_password;
202  bool m_passwordHasBeenSet;
203 
204  int m_validForInMinutes;
205  bool m_validForInMinutesHasBeenSet;
206 
207  Aws::String m_instanceId;
208  bool m_instanceIdHasBeenSet;
209  };
210 
211 } // namespace Model
212 } // namespace OpsWorks
213 } // namespace Aws
Aws::OpsWorks::Model::TemporaryCredential::InstanceIdHasBeenSet
bool InstanceIdHasBeenSet() const
Definition: TemporaryCredential.h:164
Aws::OpsWorks::Model::TemporaryCredential::WithInstanceId
TemporaryCredential & WithInstanceId(const char *value)
Definition: TemporaryCredential.h:194
Aws::OpsWorks::Model::TemporaryCredential::WithUsername
TemporaryCredential & WithUsername(const Aws::String &value)
Definition: TemporaryCredential.h:69
Aws::OpsWorks::Model::TemporaryCredential::UsernameHasBeenSet
bool UsernameHasBeenSet() const
Definition: TemporaryCredential.h:49
OpsWorks_EXPORTS.h
Aws::OpsWorks::Model::TemporaryCredential::GetValidForInMinutes
int GetValidForInMinutes() const
Definition: TemporaryCredential.h:129
Aws::OpsWorks::Model::TemporaryCredential::PasswordHasBeenSet
bool PasswordHasBeenSet() const
Definition: TemporaryCredential.h:90
Aws::OpsWorks::Model::TemporaryCredential::operator=
TemporaryCredential & operator=(Aws::Utils::Json::JsonView jsonValue)
Aws::OpsWorks::Model::TemporaryCredential::WithInstanceId
TemporaryCredential & WithInstanceId(const Aws::String &value)
Definition: TemporaryCredential.h:184
Aws::OpsWorks::Model::TemporaryCredential::GetPassword
const Aws::String & GetPassword() const
Definition: TemporaryCredential.h:85
Aws::OpsWorks::Model::TemporaryCredential::TemporaryCredential
TemporaryCredential()
Aws::OpsWorks::Model::TemporaryCredential::SetInstanceId
void SetInstanceId(const char *value)
Definition: TemporaryCredential.h:179
Aws::OpsWorks::Model::TemporaryCredential::SetUsername
void SetUsername(const Aws::String &value)
Definition: TemporaryCredential.h:54
AWS_OPSWORKS_API
#define AWS_OPSWORKS_API
Definition: OpsWorks_EXPORTS.h:28
Aws::OpsWorks::Model::TemporaryCredential::TemporaryCredential
TemporaryCredential(Aws::Utils::Json::JsonView jsonValue)
Aws::OpsWorks::Model::TemporaryCredential::Jsonize
Aws::Utils::Json::JsonValue Jsonize() const
Aws::OpsWorks::Model::TemporaryCredential::WithValidForInMinutes
TemporaryCredential & WithValidForInMinutes(int value)
Definition: TemporaryCredential.h:153
Aws::OpsWorks::Model::TemporaryCredential::WithPassword
TemporaryCredential & WithPassword(const char *value)
Definition: TemporaryCredential.h:120
Aws::OpsWorks::Model::TemporaryCredential::SetPassword
void SetPassword(const Aws::String &value)
Definition: TemporaryCredential.h:95
Aws::OpsWorks::Model::TemporaryCredential::SetValidForInMinutes
void SetValidForInMinutes(int value)
Definition: TemporaryCredential.h:145
Aws::OpsWorks::Model::TemporaryCredential::SetInstanceId
void SetInstanceId(Aws::String &&value)
Definition: TemporaryCredential.h:174
Aws::OpsWorks::Model::TemporaryCredential::WithInstanceId
TemporaryCredential & WithInstanceId(Aws::String &&value)
Definition: TemporaryCredential.h:189
Aws::OpsWorks::Model::TemporaryCredential::SetUsername
void SetUsername(const char *value)
Definition: TemporaryCredential.h:64
Aws::OpsWorks::Model::TemporaryCredential::WithUsername
TemporaryCredential & WithUsername(Aws::String &&value)
Definition: TemporaryCredential.h:74
Aws::OpsWorks::Model::TemporaryCredential::GetUsername
const Aws::String & GetUsername() const
Definition: TemporaryCredential.h:44
Aws::Utils::Json::JsonView
Definition: JsonSerializer.h:235
AWSString.h
Aws::Utils::Json::JsonValue
Definition: JsonSerializer.h:33
Aws::OpsWorks::Model::TemporaryCredential::WithUsername
TemporaryCredential & WithUsername(const char *value)
Definition: TemporaryCredential.h:79
Aws::OpsWorks::Model::TemporaryCredential::WithPassword
TemporaryCredential & WithPassword(const Aws::String &value)
Definition: TemporaryCredential.h:110
Aws::OpsWorks::Model::TemporaryCredential::SetInstanceId
void SetInstanceId(const Aws::String &value)
Definition: TemporaryCredential.h:169
Aws
Definition: AccessManagementClient.h:15
Aws::OpsWorks::Model::TemporaryCredential
Definition: TemporaryCredential.h:33
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::OpsWorks::Model::TemporaryCredential::WithPassword
TemporaryCredential & WithPassword(Aws::String &&value)
Definition: TemporaryCredential.h:115
Aws::OpsWorks::Model::TemporaryCredential::ValidForInMinutesHasBeenSet
bool ValidForInMinutesHasBeenSet() const
Definition: TemporaryCredential.h:137
Aws::OpsWorks::Model::TemporaryCredential::SetUsername
void SetUsername(Aws::String &&value)
Definition: TemporaryCredential.h:59
Aws::OpsWorks::Model::TemporaryCredential::GetInstanceId
const Aws::String & GetInstanceId() const
Definition: TemporaryCredential.h:159
Aws::OpsWorks::Model::TemporaryCredential::SetPassword
void SetPassword(Aws::String &&value)
Definition: TemporaryCredential.h:100
Aws::OpsWorks::Model::TemporaryCredential::SetPassword
void SetPassword(const char *value)
Definition: TemporaryCredential.h:105