AWS SDK for C++

AWS SDK for C++ Version 1.11.607

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() = default;
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 SourceType GetType() const { return m_type; }
51 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
52 inline void SetType(SourceType value) { m_typeHasBeenSet = true; m_type = value; }
53 inline Source& WithType(SourceType value) { SetType(value); return *this;}
55
57
61 inline const Aws::String& GetUrl() const { return m_url; }
62 inline bool UrlHasBeenSet() const { return m_urlHasBeenSet; }
63 template<typename UrlT = Aws::String>
64 void SetUrl(UrlT&& value) { m_urlHasBeenSet = true; m_url = std::forward<UrlT>(value); }
65 template<typename UrlT = Aws::String>
66 Source& WithUrl(UrlT&& value) { SetUrl(std::forward<UrlT>(value)); return *this;}
68
70
76 inline const Aws::String& GetUsername() const { return m_username; }
77 inline bool UsernameHasBeenSet() const { return m_usernameHasBeenSet; }
78 template<typename UsernameT = Aws::String>
79 void SetUsername(UsernameT&& value) { m_usernameHasBeenSet = true; m_username = std::forward<UsernameT>(value); }
80 template<typename UsernameT = Aws::String>
81 Source& WithUsername(UsernameT&& value) { SetUsername(std::forward<UsernameT>(value)); return *this;}
83
85
95 inline const Aws::String& GetPassword() const { return m_password; }
96 inline bool PasswordHasBeenSet() const { return m_passwordHasBeenSet; }
97 template<typename PasswordT = Aws::String>
98 void SetPassword(PasswordT&& value) { m_passwordHasBeenSet = true; m_password = std::forward<PasswordT>(value); }
99 template<typename PasswordT = Aws::String>
100 Source& WithPassword(PasswordT&& value) { SetPassword(std::forward<PasswordT>(value)); return *this;}
102
104
108 inline const Aws::String& GetSshKey() const { return m_sshKey; }
109 inline bool SshKeyHasBeenSet() const { return m_sshKeyHasBeenSet; }
110 template<typename SshKeyT = Aws::String>
111 void SetSshKey(SshKeyT&& value) { m_sshKeyHasBeenSet = true; m_sshKey = std::forward<SshKeyT>(value); }
112 template<typename SshKeyT = Aws::String>
113 Source& WithSshKey(SshKeyT&& value) { SetSshKey(std::forward<SshKeyT>(value)); return *this;}
115
117
123 inline const Aws::String& GetRevision() const { return m_revision; }
124 inline bool RevisionHasBeenSet() const { return m_revisionHasBeenSet; }
125 template<typename RevisionT = Aws::String>
126 void SetRevision(RevisionT&& value) { m_revisionHasBeenSet = true; m_revision = std::forward<RevisionT>(value); }
127 template<typename RevisionT = Aws::String>
128 Source& WithRevision(RevisionT&& value) { SetRevision(std::forward<RevisionT>(value)); return *this;}
130 private:
131
133 bool m_typeHasBeenSet = false;
134
135 Aws::String m_url;
136 bool m_urlHasBeenSet = false;
137
138 Aws::String m_username;
139 bool m_usernameHasBeenSet = false;
140
141 Aws::String m_password;
142 bool m_passwordHasBeenSet = false;
143
144 Aws::String m_sshKey;
145 bool m_sshKeyHasBeenSet = false;
146
147 Aws::String m_revision;
148 bool m_revisionHasBeenSet = false;
149 };
150
151} // namespace Model
152} // namespace OpsWorks
153} // namespace Aws
bool TypeHasBeenSet() const
Definition Source.h:51
void SetPassword(PasswordT &&value)
Definition Source.h:98
const Aws::String & GetUrl() const
Definition Source.h:61
AWS_OPSWORKS_API Aws::Utils::Json::JsonValue Jsonize() const
const Aws::String & GetSshKey() const
Definition Source.h:108
const Aws::String & GetUsername() const
Definition Source.h:76
bool SshKeyHasBeenSet() const
Definition Source.h:109
AWS_OPSWORKS_API Source()=default
void SetUrl(UrlT &&value)
Definition Source.h:64
bool UrlHasBeenSet() const
Definition Source.h:62
void SetType(SourceType value)
Definition Source.h:52
SourceType GetType() const
Definition Source.h:50
Source & WithRevision(RevisionT &&value)
Definition Source.h:128
void SetRevision(RevisionT &&value)
Definition Source.h:126
AWS_OPSWORKS_API Source(Aws::Utils::Json::JsonView jsonValue)
Source & WithType(SourceType value)
Definition Source.h:53
Source & WithUrl(UrlT &&value)
Definition Source.h:66
Source & WithUsername(UsernameT &&value)
Definition Source.h:81
const Aws::String & GetPassword() const
Definition Source.h:95
bool RevisionHasBeenSet() const
Definition Source.h:124
Source & WithPassword(PasswordT &&value)
Definition Source.h:100
Source & WithSshKey(SshKeyT &&value)
Definition Source.h:113
void SetSshKey(SshKeyT &&value)
Definition Source.h:111
void SetUsername(UsernameT &&value)
Definition Source.h:79
const Aws::String & GetRevision() const
Definition Source.h:123
bool UsernameHasBeenSet() const
Definition Source.h:77
bool PasswordHasBeenSet() const
Definition Source.h:96
AWS_OPSWORKS_API Source & operator=(Aws::Utils::Json::JsonView jsonValue)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue