AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
Source.h
1
6#pragma once
7#include <aws/opsworks/OpsWorks_EXPORTS.h>
8#include <aws/opsworks/model/SourceType.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <utility>
11
12namespace Aws
13{
14namespace Utils
15{
16namespace Json
17{
18 class JsonValue;
19 class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace OpsWorks
23{
24namespace Model
25{
26
37 class Source
38 {
39 public:
40 AWS_OPSWORKS_API Source();
41 AWS_OPSWORKS_API Source(Aws::Utils::Json::JsonView jsonValue);
42 AWS_OPSWORKS_API Source& operator=(Aws::Utils::Json::JsonView jsonValue);
43 AWS_OPSWORKS_API Aws::Utils::Json::JsonValue Jsonize() const;
44
45
47
50 inline const SourceType& GetType() const{ return m_type; }
51 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
52 inline void SetType(const SourceType& value) { m_typeHasBeenSet = true; m_type = value; }
53 inline void SetType(SourceType&& value) { m_typeHasBeenSet = true; m_type = std::move(value); }
54 inline Source& WithType(const SourceType& value) { SetType(value); return *this;}
55 inline Source& WithType(SourceType&& value) { SetType(std::move(value)); return *this;}
57
59
63 inline const Aws::String& GetUrl() const{ return m_url; }
64 inline bool UrlHasBeenSet() const { return m_urlHasBeenSet; }
65 inline void SetUrl(const Aws::String& value) { m_urlHasBeenSet = true; m_url = value; }
66 inline void SetUrl(Aws::String&& value) { m_urlHasBeenSet = true; m_url = std::move(value); }
67 inline void SetUrl(const char* value) { m_urlHasBeenSet = true; m_url.assign(value); }
68 inline Source& WithUrl(const Aws::String& value) { SetUrl(value); return *this;}
69 inline Source& WithUrl(Aws::String&& value) { SetUrl(std::move(value)); return *this;}
70 inline Source& WithUrl(const char* value) { SetUrl(value); return *this;}
72
74
80 inline const Aws::String& GetUsername() const{ return m_username; }
81 inline bool UsernameHasBeenSet() const { return m_usernameHasBeenSet; }
82 inline void SetUsername(const Aws::String& value) { m_usernameHasBeenSet = true; m_username = value; }
83 inline void SetUsername(Aws::String&& value) { m_usernameHasBeenSet = true; m_username = std::move(value); }
84 inline void SetUsername(const char* value) { m_usernameHasBeenSet = true; m_username.assign(value); }
85 inline Source& WithUsername(const Aws::String& value) { SetUsername(value); return *this;}
86 inline Source& WithUsername(Aws::String&& value) { SetUsername(std::move(value)); return *this;}
87 inline Source& WithUsername(const char* value) { SetUsername(value); return *this;}
89
91
101 inline const Aws::String& GetPassword() const{ return m_password; }
102 inline bool PasswordHasBeenSet() const { return m_passwordHasBeenSet; }
103 inline void SetPassword(const Aws::String& value) { m_passwordHasBeenSet = true; m_password = value; }
104 inline void SetPassword(Aws::String&& value) { m_passwordHasBeenSet = true; m_password = std::move(value); }
105 inline void SetPassword(const char* value) { m_passwordHasBeenSet = true; m_password.assign(value); }
106 inline Source& WithPassword(const Aws::String& value) { SetPassword(value); return *this;}
107 inline Source& WithPassword(Aws::String&& value) { SetPassword(std::move(value)); return *this;}
108 inline Source& WithPassword(const char* value) { SetPassword(value); return *this;}
110
112
116 inline const Aws::String& GetSshKey() const{ return m_sshKey; }
117 inline bool SshKeyHasBeenSet() const { return m_sshKeyHasBeenSet; }
118 inline void SetSshKey(const Aws::String& value) { m_sshKeyHasBeenSet = true; m_sshKey = value; }
119 inline void SetSshKey(Aws::String&& value) { m_sshKeyHasBeenSet = true; m_sshKey = std::move(value); }
120 inline void SetSshKey(const char* value) { m_sshKeyHasBeenSet = true; m_sshKey.assign(value); }
121 inline Source& WithSshKey(const Aws::String& value) { SetSshKey(value); return *this;}
122 inline Source& WithSshKey(Aws::String&& value) { SetSshKey(std::move(value)); return *this;}
123 inline Source& WithSshKey(const char* value) { SetSshKey(value); return *this;}
125
127
133 inline const Aws::String& GetRevision() const{ return m_revision; }
134 inline bool RevisionHasBeenSet() const { return m_revisionHasBeenSet; }
135 inline void SetRevision(const Aws::String& value) { m_revisionHasBeenSet = true; m_revision = value; }
136 inline void SetRevision(Aws::String&& value) { m_revisionHasBeenSet = true; m_revision = std::move(value); }
137 inline void SetRevision(const char* value) { m_revisionHasBeenSet = true; m_revision.assign(value); }
138 inline Source& WithRevision(const Aws::String& value) { SetRevision(value); return *this;}
139 inline Source& WithRevision(Aws::String&& value) { SetRevision(std::move(value)); return *this;}
140 inline Source& WithRevision(const char* value) { SetRevision(value); return *this;}
142 private:
143
144 SourceType m_type;
145 bool m_typeHasBeenSet = false;
146
147 Aws::String m_url;
148 bool m_urlHasBeenSet = false;
149
150 Aws::String m_username;
151 bool m_usernameHasBeenSet = false;
152
153 Aws::String m_password;
154 bool m_passwordHasBeenSet = false;
155
156 Aws::String m_sshKey;
157 bool m_sshKeyHasBeenSet = false;
158
159 Aws::String m_revision;
160 bool m_revisionHasBeenSet = false;
161 };
162
163} // namespace Model
164} // namespace OpsWorks
165} // namespace Aws
void SetUsername(const char *value)
Definition Source.h:84
Source & WithPassword(const Aws::String &value)
Definition Source.h:106
bool TypeHasBeenSet() const
Definition Source.h:51
Source & WithUsername(Aws::String &&value)
Definition Source.h:86
void SetPassword(const char *value)
Definition Source.h:105
void SetUsername(const Aws::String &value)
Definition Source.h:82
void SetUrl(const Aws::String &value)
Definition Source.h:65
const Aws::String & GetUrl() const
Definition Source.h:63
AWS_OPSWORKS_API Aws::Utils::Json::JsonValue Jsonize() const
Source & WithRevision(const char *value)
Definition Source.h:140
const Aws::String & GetSshKey() const
Definition Source.h:116
const Aws::String & GetUsername() const
Definition Source.h:80
Source & WithUrl(Aws::String &&value)
Definition Source.h:69
void SetSshKey(const char *value)
Definition Source.h:120
Source & WithSshKey(Aws::String &&value)
Definition Source.h:122
bool SshKeyHasBeenSet() const
Definition Source.h:117
void SetRevision(const char *value)
Definition Source.h:137
void SetRevision(const Aws::String &value)
Definition Source.h:135
Source & WithRevision(const Aws::String &value)
Definition Source.h:138
void SetType(const SourceType &value)
Definition Source.h:52
bool UrlHasBeenSet() const
Definition Source.h:64
Source & WithUrl(const char *value)
Definition Source.h:70
void SetPassword(const Aws::String &value)
Definition Source.h:103
void SetPassword(Aws::String &&value)
Definition Source.h:104
void SetUrl(Aws::String &&value)
Definition Source.h:66
void SetSshKey(const Aws::String &value)
Definition Source.h:118
Source & WithUsername(const Aws::String &value)
Definition Source.h:85
AWS_OPSWORKS_API Source(Aws::Utils::Json::JsonView jsonValue)
Source & WithType(const SourceType &value)
Definition Source.h:54
Source & WithRevision(Aws::String &&value)
Definition Source.h:139
void SetUrl(const char *value)
Definition Source.h:67
Source & WithType(SourceType &&value)
Definition Source.h:55
void SetType(SourceType &&value)
Definition Source.h:53
const SourceType & GetType() const
Definition Source.h:50
void SetRevision(Aws::String &&value)
Definition Source.h:136
void SetSshKey(Aws::String &&value)
Definition Source.h:119
Source & WithPassword(const char *value)
Definition Source.h:108
Source & WithUrl(const Aws::String &value)
Definition Source.h:68
Source & WithUsername(const char *value)
Definition Source.h:87
Source & WithSshKey(const Aws::String &value)
Definition Source.h:121
const Aws::String & GetPassword() const
Definition Source.h:101
bool RevisionHasBeenSet() const
Definition Source.h:134
AWS_OPSWORKS_API Source()
void SetUsername(Aws::String &&value)
Definition Source.h:83
const Aws::String & GetRevision() const
Definition Source.h:133
bool UsernameHasBeenSet() const
Definition Source.h:81
bool PasswordHasBeenSet() const
Definition Source.h:102
AWS_OPSWORKS_API Source & operator=(Aws::Utils::Json::JsonView jsonValue)
Source & WithSshKey(const char *value)
Definition Source.h:123
Source & WithPassword(Aws::String &&value)
Definition Source.h:107
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue