AWS SDK for C++  1.9.132
AWS SDK for C++
Source.h
Go to the documentation of this file.
1 
6 #pragma once
10 #include <utility>
11 
12 namespace Aws
13 {
14 namespace Utils
15 {
16 namespace Json
17 {
18  class JsonValue;
19  class JsonView;
20 } // namespace Json
21 } // namespace Utils
22 namespace OpsWorks
23 {
24 namespace Model
25 {
26 
38  {
39  public:
40  Source();
44 
45 
49  inline const SourceType& GetType() const{ return m_type; }
50 
54  inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
55 
59  inline void SetType(const SourceType& value) { m_typeHasBeenSet = true; m_type = value; }
60 
64  inline void SetType(SourceType&& value) { m_typeHasBeenSet = true; m_type = std::move(value); }
65 
69  inline Source& WithType(const SourceType& value) { SetType(value); return *this;}
70 
74  inline Source& WithType(SourceType&& value) { SetType(std::move(value)); return *this;}
75 
76 
81  inline const Aws::String& GetUrl() const{ return m_url; }
82 
87  inline bool UrlHasBeenSet() const { return m_urlHasBeenSet; }
88 
93  inline void SetUrl(const Aws::String& value) { m_urlHasBeenSet = true; m_url = value; }
94 
99  inline void SetUrl(Aws::String&& value) { m_urlHasBeenSet = true; m_url = std::move(value); }
100 
105  inline void SetUrl(const char* value) { m_urlHasBeenSet = true; m_url.assign(value); }
106 
111  inline Source& WithUrl(const Aws::String& value) { SetUrl(value); return *this;}
112 
117  inline Source& WithUrl(Aws::String&& value) { SetUrl(std::move(value)); return *this;}
118 
123  inline Source& WithUrl(const char* value) { SetUrl(value); return *this;}
124 
125 
132  inline const Aws::String& GetUsername() const{ return m_username; }
133 
140  inline bool UsernameHasBeenSet() const { return m_usernameHasBeenSet; }
141 
148  inline void SetUsername(const Aws::String& value) { m_usernameHasBeenSet = true; m_username = value; }
149 
156  inline void SetUsername(Aws::String&& value) { m_usernameHasBeenSet = true; m_username = std::move(value); }
157 
164  inline void SetUsername(const char* value) { m_usernameHasBeenSet = true; m_username.assign(value); }
165 
172  inline Source& WithUsername(const Aws::String& value) { SetUsername(value); return *this;}
173 
180  inline Source& WithUsername(Aws::String&& value) { SetUsername(std::move(value)); return *this;}
181 
188  inline Source& WithUsername(const char* value) { SetUsername(value); return *this;}
189 
190 
201  inline const Aws::String& GetPassword() const{ return m_password; }
202 
213  inline bool PasswordHasBeenSet() const { return m_passwordHasBeenSet; }
214 
225  inline void SetPassword(const Aws::String& value) { m_passwordHasBeenSet = true; m_password = value; }
226 
237  inline void SetPassword(Aws::String&& value) { m_passwordHasBeenSet = true; m_password = std::move(value); }
238 
249  inline void SetPassword(const char* value) { m_passwordHasBeenSet = true; m_password.assign(value); }
250 
261  inline Source& WithPassword(const Aws::String& value) { SetPassword(value); return *this;}
262 
273  inline Source& WithPassword(Aws::String&& value) { SetPassword(std::move(value)); return *this;}
274 
285  inline Source& WithPassword(const char* value) { SetPassword(value); return *this;}
286 
287 
292  inline const Aws::String& GetSshKey() const{ return m_sshKey; }
293 
298  inline bool SshKeyHasBeenSet() const { return m_sshKeyHasBeenSet; }
299 
304  inline void SetSshKey(const Aws::String& value) { m_sshKeyHasBeenSet = true; m_sshKey = value; }
305 
310  inline void SetSshKey(Aws::String&& value) { m_sshKeyHasBeenSet = true; m_sshKey = std::move(value); }
311 
316  inline void SetSshKey(const char* value) { m_sshKeyHasBeenSet = true; m_sshKey.assign(value); }
317 
322  inline Source& WithSshKey(const Aws::String& value) { SetSshKey(value); return *this;}
323 
328  inline Source& WithSshKey(Aws::String&& value) { SetSshKey(std::move(value)); return *this;}
329 
334  inline Source& WithSshKey(const char* value) { SetSshKey(value); return *this;}
335 
336 
343  inline const Aws::String& GetRevision() const{ return m_revision; }
344 
351  inline bool RevisionHasBeenSet() const { return m_revisionHasBeenSet; }
352 
359  inline void SetRevision(const Aws::String& value) { m_revisionHasBeenSet = true; m_revision = value; }
360 
367  inline void SetRevision(Aws::String&& value) { m_revisionHasBeenSet = true; m_revision = std::move(value); }
368 
375  inline void SetRevision(const char* value) { m_revisionHasBeenSet = true; m_revision.assign(value); }
376 
383  inline Source& WithRevision(const Aws::String& value) { SetRevision(value); return *this;}
384 
391  inline Source& WithRevision(Aws::String&& value) { SetRevision(std::move(value)); return *this;}
392 
399  inline Source& WithRevision(const char* value) { SetRevision(value); return *this;}
400 
401  private:
402 
403  SourceType m_type;
404  bool m_typeHasBeenSet;
405 
406  Aws::String m_url;
407  bool m_urlHasBeenSet;
408 
409  Aws::String m_username;
410  bool m_usernameHasBeenSet;
411 
412  Aws::String m_password;
413  bool m_passwordHasBeenSet;
414 
415  Aws::String m_sshKey;
416  bool m_sshKeyHasBeenSet;
417 
418  Aws::String m_revision;
419  bool m_revisionHasBeenSet;
420  };
421 
422 } // namespace Model
423 } // namespace OpsWorks
424 } // namespace Aws
Aws::OpsWorks::Model::Source
Definition: Source.h:38
Aws::OpsWorks::Model::Source::WithSshKey
Source & WithSshKey(Aws::String &&value)
Definition: Source.h:328
Aws::OpsWorks::Model::Source::WithUsername
Source & WithUsername(Aws::String &&value)
Definition: Source.h:180
Aws::OpsWorks::Model::Source::WithUsername
Source & WithUsername(const Aws::String &value)
Definition: Source.h:172
Aws::OpsWorks::Model::Source::WithUrl
Source & WithUrl(const Aws::String &value)
Definition: Source.h:111
Aws::OpsWorks::Model::Source::WithRevision
Source & WithRevision(const char *value)
Definition: Source.h:399
OpsWorks_EXPORTS.h
Aws::OpsWorks::Model::Source::WithUrl
Source & WithUrl(Aws::String &&value)
Definition: Source.h:117
Aws::OpsWorks::Model::Source::UrlHasBeenSet
bool UrlHasBeenSet() const
Definition: Source.h:87
Aws::OpsWorks::Model::Source::GetSshKey
const Aws::String & GetSshKey() const
Definition: Source.h:292
Aws::OpsWorks::Model::Source::SetPassword
void SetPassword(const Aws::String &value)
Definition: Source.h:225
Aws::OpsWorks::Model::Source::UsernameHasBeenSet
bool UsernameHasBeenSet() const
Definition: Source.h:140
Aws::OpsWorks::Model::Source::SetUrl
void SetUrl(const Aws::String &value)
Definition: Source.h:93
Aws::OpsWorks::Model::Source::SetUsername
void SetUsername(const char *value)
Definition: Source.h:164
Aws::OpsWorks::Model::Source::SetUsername
void SetUsername(const Aws::String &value)
Definition: Source.h:148
Aws::OpsWorks::Model::Source::SetType
void SetType(SourceType &&value)
Definition: Source.h:64
Aws::OpsWorks::Model::Source::SetSshKey
void SetSshKey(const Aws::String &value)
Definition: Source.h:304
Aws::OpsWorks::Model::Source::GetUrl
const Aws::String & GetUrl() const
Definition: Source.h:81
Aws::OpsWorks::Model::Source::SetPassword
void SetPassword(Aws::String &&value)
Definition: Source.h:237
Aws::OpsWorks::Model::Source::WithRevision
Source & WithRevision(Aws::String &&value)
Definition: Source.h:391
Aws::OpsWorks::Model::Source::SetRevision
void SetRevision(const Aws::String &value)
Definition: Source.h:359
Aws::OpsWorks::Model::Source::Source
Source()
Aws::OpsWorks::Model::Source::SshKeyHasBeenSet
bool SshKeyHasBeenSet() const
Definition: Source.h:298
AWS_OPSWORKS_API
#define AWS_OPSWORKS_API
Definition: OpsWorks_EXPORTS.h:28
Aws::OpsWorks::Model::Source::operator=
Source & operator=(Aws::Utils::Json::JsonView jsonValue)
Aws::OpsWorks::Model::Source::Source
Source(Aws::Utils::Json::JsonView jsonValue)
Aws::OpsWorks::Model::Source::SetUrl
void SetUrl(Aws::String &&value)
Definition: Source.h:99
Aws::OpsWorks::Model::Source::GetPassword
const Aws::String & GetPassword() const
Definition: Source.h:201
Aws::OpsWorks::Model::Source::GetType
const SourceType & GetType() const
Definition: Source.h:49
Aws::OpsWorks::Model::Source::WithType
Source & WithType(const SourceType &value)
Definition: Source.h:69
Aws::OpsWorks::Model::Source::SetSshKey
void SetSshKey(const char *value)
Definition: Source.h:316
Aws::OpsWorks::Model::Source::TypeHasBeenSet
bool TypeHasBeenSet() const
Definition: Source.h:54
Aws::OpsWorks::Model::Source::GetUsername
const Aws::String & GetUsername() const
Definition: Source.h:132
Aws::OpsWorks::Model::Source::WithPassword
Source & WithPassword(const char *value)
Definition: Source.h:285
Aws::OpsWorks::Model::Source::GetRevision
const Aws::String & GetRevision() const
Definition: Source.h:343
Aws::OpsWorks::Model::Source::PasswordHasBeenSet
bool PasswordHasBeenSet() const
Definition: Source.h:213
Aws::OpsWorks::Model::Source::SetType
void SetType(const SourceType &value)
Definition: Source.h:59
Aws::OpsWorks::Model::SourceType
SourceType
Definition: SourceType.h:17
Aws::OpsWorks::Model::Source::SetRevision
void SetRevision(const char *value)
Definition: Source.h:375
Aws::OpsWorks::Model::Source::SetRevision
void SetRevision(Aws::String &&value)
Definition: Source.h:367
Aws::Utils::Json::JsonView
Definition: JsonSerializer.h:235
AWSString.h
Aws::Utils::Json::JsonValue
Definition: JsonSerializer.h:33
Aws::OpsWorks::Model::Source::RevisionHasBeenSet
bool RevisionHasBeenSet() const
Definition: Source.h:351
Aws::OpsWorks::Model::Source::WithUsername
Source & WithUsername(const char *value)
Definition: Source.h:188
Aws::OpsWorks::Model::Source::WithSshKey
Source & WithSshKey(const Aws::String &value)
Definition: Source.h:322
Aws::OpsWorks::Model::Source::WithUrl
Source & WithUrl(const char *value)
Definition: Source.h:123
Aws::OpsWorks::Model::Source::SetUsername
void SetUsername(Aws::String &&value)
Definition: Source.h:156
Aws::OpsWorks::Model::Source::WithType
Source & WithType(SourceType &&value)
Definition: Source.h:74
SourceType.h
Aws
Definition: AccessManagementClient.h:15
Aws::OpsWorks::Model::Source::SetPassword
void SetPassword(const char *value)
Definition: Source.h:249
Aws::OpsWorks::Model::Source::SetUrl
void SetUrl(const char *value)
Definition: Source.h:105
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::OpsWorks::Model::Source::WithRevision
Source & WithRevision(const Aws::String &value)
Definition: Source.h:383
Aws::OpsWorks::Model::Source::Jsonize
Aws::Utils::Json::JsonValue Jsonize() const
Aws::OpsWorks::Model::Source::WithPassword
Source & WithPassword(Aws::String &&value)
Definition: Source.h:273
Aws::OpsWorks::Model::Source::SetSshKey
void SetSshKey(Aws::String &&value)
Definition: Source.h:310
Aws::OpsWorks::Model::Source::WithPassword
Source & WithPassword(const Aws::String &value)
Definition: Source.h:261
Aws::OpsWorks::Model::Source::WithSshKey
Source & WithSshKey(const char *value)
Definition: Source.h:334