AWS SDK for C++

AWS SDK for C++ Version 1.11.746

Loading...
Searching...
No Matches
ServiceSyncConfig.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/proton/Proton_EXPORTS.h>
9#include <aws/proton/model/RepositoryProvider.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace Proton {
21namespace Model {
22
30 public:
31 AWS_PROTON_API ServiceSyncConfig() = default;
34 AWS_PROTON_API Aws::Utils::Json::JsonValue Jsonize() const;
35
37
41 inline const Aws::String& GetBranch() const { return m_branch; }
42 inline bool BranchHasBeenSet() const { return m_branchHasBeenSet; }
43 template <typename BranchT = Aws::String>
44 void SetBranch(BranchT&& value) {
45 m_branchHasBeenSet = true;
46 m_branch = std::forward<BranchT>(value);
47 }
48 template <typename BranchT = Aws::String>
49 ServiceSyncConfig& WithBranch(BranchT&& value) {
50 SetBranch(std::forward<BranchT>(value));
51 return *this;
52 }
54
56
59 inline const Aws::String& GetFilePath() const { return m_filePath; }
60 inline bool FilePathHasBeenSet() const { return m_filePathHasBeenSet; }
61 template <typename FilePathT = Aws::String>
62 void SetFilePath(FilePathT&& value) {
63 m_filePathHasBeenSet = true;
64 m_filePath = std::forward<FilePathT>(value);
65 }
66 template <typename FilePathT = Aws::String>
67 ServiceSyncConfig& WithFilePath(FilePathT&& value) {
68 SetFilePath(std::forward<FilePathT>(value));
69 return *this;
70 }
72
74
78 inline const Aws::String& GetRepositoryName() const { return m_repositoryName; }
79 inline bool RepositoryNameHasBeenSet() const { return m_repositoryNameHasBeenSet; }
80 template <typename RepositoryNameT = Aws::String>
81 void SetRepositoryName(RepositoryNameT&& value) {
82 m_repositoryNameHasBeenSet = true;
83 m_repositoryName = std::forward<RepositoryNameT>(value);
84 }
85 template <typename RepositoryNameT = Aws::String>
86 ServiceSyncConfig& WithRepositoryName(RepositoryNameT&& value) {
87 SetRepositoryName(std::forward<RepositoryNameT>(value));
88 return *this;
89 }
91
93
97 inline RepositoryProvider GetRepositoryProvider() const { return m_repositoryProvider; }
98 inline bool RepositoryProviderHasBeenSet() const { return m_repositoryProviderHasBeenSet; }
100 m_repositoryProviderHasBeenSet = true;
101 m_repositoryProvider = value;
102 }
105 return *this;
106 }
108
110
113 inline const Aws::String& GetServiceName() const { return m_serviceName; }
114 inline bool ServiceNameHasBeenSet() const { return m_serviceNameHasBeenSet; }
115 template <typename ServiceNameT = Aws::String>
116 void SetServiceName(ServiceNameT&& value) {
117 m_serviceNameHasBeenSet = true;
118 m_serviceName = std::forward<ServiceNameT>(value);
119 }
120 template <typename ServiceNameT = Aws::String>
121 ServiceSyncConfig& WithServiceName(ServiceNameT&& value) {
122 SetServiceName(std::forward<ServiceNameT>(value));
123 return *this;
124 }
126 private:
127 Aws::String m_branch;
128
129 Aws::String m_filePath;
130
131 Aws::String m_repositoryName;
132
134
135 Aws::String m_serviceName;
136 bool m_branchHasBeenSet = false;
137 bool m_filePathHasBeenSet = false;
138 bool m_repositoryNameHasBeenSet = false;
139 bool m_repositoryProviderHasBeenSet = false;
140 bool m_serviceNameHasBeenSet = false;
141};
142
143} // namespace Model
144} // namespace Proton
145} // namespace Aws
AWS_PROTON_API ServiceSyncConfig & operator=(Aws::Utils::Json::JsonView jsonValue)
const Aws::String & GetFilePath() const
ServiceSyncConfig & WithServiceName(ServiceNameT &&value)
AWS_PROTON_API ServiceSyncConfig()=default
void SetServiceName(ServiceNameT &&value)
ServiceSyncConfig & WithRepositoryProvider(RepositoryProvider value)
const Aws::String & GetBranch() const
RepositoryProvider GetRepositoryProvider() const
ServiceSyncConfig & WithFilePath(FilePathT &&value)
const Aws::String & GetServiceName() const
AWS_PROTON_API ServiceSyncConfig(Aws::Utils::Json::JsonView jsonValue)
void SetRepositoryName(RepositoryNameT &&value)
void SetRepositoryProvider(RepositoryProvider value)
ServiceSyncConfig & WithBranch(BranchT &&value)
AWS_PROTON_API Aws::Utils::Json::JsonValue Jsonize() const
ServiceSyncConfig & WithRepositoryName(RepositoryNameT &&value)
const Aws::String & GetRepositoryName() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue