AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
TemplateSyncConfig.h
1
6#pragma once
7#include <aws/proton/Proton_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/proton/model/RepositoryProvider.h>
10#include <aws/proton/model/TemplateType.h>
11#include <utility>
12
13namespace Aws
14{
15namespace Utils
16{
17namespace Json
18{
19 class JsonValue;
20 class JsonView;
21} // namespace Json
22} // namespace Utils
23namespace Proton
24{
25namespace Model
26{
27
35 {
36 public:
37 AWS_PROTON_API TemplateSyncConfig();
40 AWS_PROTON_API Aws::Utils::Json::JsonValue Jsonize() const;
41
42
44
47 inline const Aws::String& GetBranch() const{ return m_branch; }
48 inline bool BranchHasBeenSet() const { return m_branchHasBeenSet; }
49 inline void SetBranch(const Aws::String& value) { m_branchHasBeenSet = true; m_branch = value; }
50 inline void SetBranch(Aws::String&& value) { m_branchHasBeenSet = true; m_branch = std::move(value); }
51 inline void SetBranch(const char* value) { m_branchHasBeenSet = true; m_branch.assign(value); }
52 inline TemplateSyncConfig& WithBranch(const Aws::String& value) { SetBranch(value); return *this;}
53 inline TemplateSyncConfig& WithBranch(Aws::String&& value) { SetBranch(std::move(value)); return *this;}
54 inline TemplateSyncConfig& WithBranch(const char* value) { SetBranch(value); return *this;}
56
58
61 inline const Aws::String& GetRepositoryName() const{ return m_repositoryName; }
62 inline bool RepositoryNameHasBeenSet() const { return m_repositoryNameHasBeenSet; }
63 inline void SetRepositoryName(const Aws::String& value) { m_repositoryNameHasBeenSet = true; m_repositoryName = value; }
64 inline void SetRepositoryName(Aws::String&& value) { m_repositoryNameHasBeenSet = true; m_repositoryName = std::move(value); }
65 inline void SetRepositoryName(const char* value) { m_repositoryNameHasBeenSet = true; m_repositoryName.assign(value); }
66 inline TemplateSyncConfig& WithRepositoryName(const Aws::String& value) { SetRepositoryName(value); return *this;}
67 inline TemplateSyncConfig& WithRepositoryName(Aws::String&& value) { SetRepositoryName(std::move(value)); return *this;}
68 inline TemplateSyncConfig& WithRepositoryName(const char* value) { SetRepositoryName(value); return *this;}
70
72
75 inline const RepositoryProvider& GetRepositoryProvider() const{ return m_repositoryProvider; }
76 inline bool RepositoryProviderHasBeenSet() const { return m_repositoryProviderHasBeenSet; }
77 inline void SetRepositoryProvider(const RepositoryProvider& value) { m_repositoryProviderHasBeenSet = true; m_repositoryProvider = value; }
78 inline void SetRepositoryProvider(RepositoryProvider&& value) { m_repositoryProviderHasBeenSet = true; m_repositoryProvider = std::move(value); }
80 inline TemplateSyncConfig& WithRepositoryProvider(RepositoryProvider&& value) { SetRepositoryProvider(std::move(value)); return *this;}
82
84
87 inline const Aws::String& GetSubdirectory() const{ return m_subdirectory; }
88 inline bool SubdirectoryHasBeenSet() const { return m_subdirectoryHasBeenSet; }
89 inline void SetSubdirectory(const Aws::String& value) { m_subdirectoryHasBeenSet = true; m_subdirectory = value; }
90 inline void SetSubdirectory(Aws::String&& value) { m_subdirectoryHasBeenSet = true; m_subdirectory = std::move(value); }
91 inline void SetSubdirectory(const char* value) { m_subdirectoryHasBeenSet = true; m_subdirectory.assign(value); }
92 inline TemplateSyncConfig& WithSubdirectory(const Aws::String& value) { SetSubdirectory(value); return *this;}
93 inline TemplateSyncConfig& WithSubdirectory(Aws::String&& value) { SetSubdirectory(std::move(value)); return *this;}
94 inline TemplateSyncConfig& WithSubdirectory(const char* value) { SetSubdirectory(value); return *this;}
96
98
101 inline const Aws::String& GetTemplateName() const{ return m_templateName; }
102 inline bool TemplateNameHasBeenSet() const { return m_templateNameHasBeenSet; }
103 inline void SetTemplateName(const Aws::String& value) { m_templateNameHasBeenSet = true; m_templateName = value; }
104 inline void SetTemplateName(Aws::String&& value) { m_templateNameHasBeenSet = true; m_templateName = std::move(value); }
105 inline void SetTemplateName(const char* value) { m_templateNameHasBeenSet = true; m_templateName.assign(value); }
106 inline TemplateSyncConfig& WithTemplateName(const Aws::String& value) { SetTemplateName(value); return *this;}
107 inline TemplateSyncConfig& WithTemplateName(Aws::String&& value) { SetTemplateName(std::move(value)); return *this;}
108 inline TemplateSyncConfig& WithTemplateName(const char* value) { SetTemplateName(value); return *this;}
110
112
115 inline const TemplateType& GetTemplateType() const{ return m_templateType; }
116 inline bool TemplateTypeHasBeenSet() const { return m_templateTypeHasBeenSet; }
117 inline void SetTemplateType(const TemplateType& value) { m_templateTypeHasBeenSet = true; m_templateType = value; }
118 inline void SetTemplateType(TemplateType&& value) { m_templateTypeHasBeenSet = true; m_templateType = std::move(value); }
119 inline TemplateSyncConfig& WithTemplateType(const TemplateType& value) { SetTemplateType(value); return *this;}
120 inline TemplateSyncConfig& WithTemplateType(TemplateType&& value) { SetTemplateType(std::move(value)); return *this;}
122 private:
123
124 Aws::String m_branch;
125 bool m_branchHasBeenSet = false;
126
127 Aws::String m_repositoryName;
128 bool m_repositoryNameHasBeenSet = false;
129
130 RepositoryProvider m_repositoryProvider;
131 bool m_repositoryProviderHasBeenSet = false;
132
133 Aws::String m_subdirectory;
134 bool m_subdirectoryHasBeenSet = false;
135
136 Aws::String m_templateName;
137 bool m_templateNameHasBeenSet = false;
138
139 TemplateType m_templateType;
140 bool m_templateTypeHasBeenSet = false;
141 };
142
143} // namespace Model
144} // namespace Proton
145} // namespace Aws
void SetRepositoryProvider(RepositoryProvider &&value)
TemplateSyncConfig & WithTemplateName(Aws::String &&value)
TemplateSyncConfig & WithTemplateName(const Aws::String &value)
TemplateSyncConfig & WithRepositoryName(const Aws::String &value)
TemplateSyncConfig & WithBranch(Aws::String &&value)
TemplateSyncConfig & WithTemplateType(const TemplateType &value)
const Aws::String & GetRepositoryName() const
const TemplateType & GetTemplateType() const
TemplateSyncConfig & WithTemplateName(const char *value)
void SetRepositoryName(Aws::String &&value)
const RepositoryProvider & GetRepositoryProvider() const
const Aws::String & GetTemplateName() const
void SetTemplateName(const Aws::String &value)
void SetTemplateType(TemplateType &&value)
TemplateSyncConfig & WithSubdirectory(Aws::String &&value)
TemplateSyncConfig & WithTemplateType(TemplateType &&value)
TemplateSyncConfig & WithRepositoryProvider(const RepositoryProvider &value)
TemplateSyncConfig & WithRepositoryName(const char *value)
AWS_PROTON_API TemplateSyncConfig & operator=(Aws::Utils::Json::JsonView jsonValue)
TemplateSyncConfig & WithSubdirectory(const Aws::String &value)
TemplateSyncConfig & WithBranch(const char *value)
TemplateSyncConfig & WithBranch(const Aws::String &value)
const Aws::String & GetBranch() const
AWS_PROTON_API Aws::Utils::Json::JsonValue Jsonize() const
void SetSubdirectory(Aws::String &&value)
TemplateSyncConfig & WithRepositoryName(Aws::String &&value)
void SetTemplateType(const TemplateType &value)
void SetBranch(const Aws::String &value)
TemplateSyncConfig & WithRepositoryProvider(RepositoryProvider &&value)
TemplateSyncConfig & WithSubdirectory(const char *value)
void SetRepositoryName(const Aws::String &value)
void SetSubdirectory(const Aws::String &value)
AWS_PROTON_API TemplateSyncConfig(Aws::Utils::Json::JsonView jsonValue)
void SetRepositoryProvider(const RepositoryProvider &value)
const Aws::String & GetSubdirectory() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue