AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
CreateTemplateSyncConfigRequest.h
1
6#pragma once
7#include <aws/proton/Proton_EXPORTS.h>
8#include <aws/proton/ProtonRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/proton/model/RepositoryProvider.h>
11#include <aws/proton/model/TemplateType.h>
12#include <utility>
13
14namespace Aws
15{
16namespace Proton
17{
18namespace Model
19{
20
24 {
25 public:
27
28 // Service request name is the Operation name which will send this request out,
29 // each operation should has unique request name, so that we can get operation's name from this request.
30 // Note: this is not true for response, multiple operations may have the same response name,
31 // so we can not get operation's name from response.
32 inline virtual const char* GetServiceRequestName() const override { return "CreateTemplateSyncConfig"; }
33
34 AWS_PROTON_API Aws::String SerializePayload() const override;
35
37
38
40
43 inline const Aws::String& GetBranch() const{ return m_branch; }
44 inline bool BranchHasBeenSet() const { return m_branchHasBeenSet; }
45 inline void SetBranch(const Aws::String& value) { m_branchHasBeenSet = true; m_branch = value; }
46 inline void SetBranch(Aws::String&& value) { m_branchHasBeenSet = true; m_branch = std::move(value); }
47 inline void SetBranch(const char* value) { m_branchHasBeenSet = true; m_branch.assign(value); }
48 inline CreateTemplateSyncConfigRequest& WithBranch(const Aws::String& value) { SetBranch(value); return *this;}
49 inline CreateTemplateSyncConfigRequest& WithBranch(Aws::String&& value) { SetBranch(std::move(value)); return *this;}
50 inline CreateTemplateSyncConfigRequest& WithBranch(const char* value) { SetBranch(value); return *this;}
52
54
57 inline const Aws::String& GetRepositoryName() const{ return m_repositoryName; }
58 inline bool RepositoryNameHasBeenSet() const { return m_repositoryNameHasBeenSet; }
59 inline void SetRepositoryName(const Aws::String& value) { m_repositoryNameHasBeenSet = true; m_repositoryName = value; }
60 inline void SetRepositoryName(Aws::String&& value) { m_repositoryNameHasBeenSet = true; m_repositoryName = std::move(value); }
61 inline void SetRepositoryName(const char* value) { m_repositoryNameHasBeenSet = true; m_repositoryName.assign(value); }
63 inline CreateTemplateSyncConfigRequest& WithRepositoryName(Aws::String&& value) { SetRepositoryName(std::move(value)); return *this;}
64 inline CreateTemplateSyncConfigRequest& WithRepositoryName(const char* value) { SetRepositoryName(value); return *this;}
66
68
71 inline const RepositoryProvider& GetRepositoryProvider() const{ return m_repositoryProvider; }
72 inline bool RepositoryProviderHasBeenSet() const { return m_repositoryProviderHasBeenSet; }
73 inline void SetRepositoryProvider(const RepositoryProvider& value) { m_repositoryProviderHasBeenSet = true; m_repositoryProvider = value; }
74 inline void SetRepositoryProvider(RepositoryProvider&& value) { m_repositoryProviderHasBeenSet = true; m_repositoryProvider = std::move(value); }
78
80
85 inline const Aws::String& GetSubdirectory() const{ return m_subdirectory; }
86 inline bool SubdirectoryHasBeenSet() const { return m_subdirectoryHasBeenSet; }
87 inline void SetSubdirectory(const Aws::String& value) { m_subdirectoryHasBeenSet = true; m_subdirectory = value; }
88 inline void SetSubdirectory(Aws::String&& value) { m_subdirectoryHasBeenSet = true; m_subdirectory = std::move(value); }
89 inline void SetSubdirectory(const char* value) { m_subdirectoryHasBeenSet = true; m_subdirectory.assign(value); }
90 inline CreateTemplateSyncConfigRequest& WithSubdirectory(const Aws::String& value) { SetSubdirectory(value); return *this;}
91 inline CreateTemplateSyncConfigRequest& WithSubdirectory(Aws::String&& value) { SetSubdirectory(std::move(value)); return *this;}
92 inline CreateTemplateSyncConfigRequest& WithSubdirectory(const char* value) { SetSubdirectory(value); return *this;}
94
96
99 inline const Aws::String& GetTemplateName() const{ return m_templateName; }
100 inline bool TemplateNameHasBeenSet() const { return m_templateNameHasBeenSet; }
101 inline void SetTemplateName(const Aws::String& value) { m_templateNameHasBeenSet = true; m_templateName = value; }
102 inline void SetTemplateName(Aws::String&& value) { m_templateNameHasBeenSet = true; m_templateName = std::move(value); }
103 inline void SetTemplateName(const char* value) { m_templateNameHasBeenSet = true; m_templateName.assign(value); }
105 inline CreateTemplateSyncConfigRequest& WithTemplateName(Aws::String&& value) { SetTemplateName(std::move(value)); return *this;}
106 inline CreateTemplateSyncConfigRequest& WithTemplateName(const char* value) { SetTemplateName(value); return *this;}
108
110
113 inline const TemplateType& GetTemplateType() const{ return m_templateType; }
114 inline bool TemplateTypeHasBeenSet() const { return m_templateTypeHasBeenSet; }
115 inline void SetTemplateType(const TemplateType& value) { m_templateTypeHasBeenSet = true; m_templateType = value; }
116 inline void SetTemplateType(TemplateType&& value) { m_templateTypeHasBeenSet = true; m_templateType = std::move(value); }
118 inline CreateTemplateSyncConfigRequest& WithTemplateType(TemplateType&& value) { SetTemplateType(std::move(value)); return *this;}
120 private:
121
122 Aws::String m_branch;
123 bool m_branchHasBeenSet = false;
124
125 Aws::String m_repositoryName;
126 bool m_repositoryNameHasBeenSet = false;
127
128 RepositoryProvider m_repositoryProvider;
129 bool m_repositoryProviderHasBeenSet = false;
130
131 Aws::String m_subdirectory;
132 bool m_subdirectoryHasBeenSet = false;
133
134 Aws::String m_templateName;
135 bool m_templateNameHasBeenSet = false;
136
137 TemplateType m_templateType;
138 bool m_templateTypeHasBeenSet = false;
139 };
140
141} // namespace Model
142} // namespace Proton
143} // namespace Aws
CreateTemplateSyncConfigRequest & WithTemplateName(const Aws::String &value)
CreateTemplateSyncConfigRequest & WithRepositoryProvider(const RepositoryProvider &value)
CreateTemplateSyncConfigRequest & WithTemplateType(TemplateType &&value)
AWS_PROTON_API Aws::String SerializePayload() const override
CreateTemplateSyncConfigRequest & WithSubdirectory(const char *value)
CreateTemplateSyncConfigRequest & WithRepositoryName(const Aws::String &value)
CreateTemplateSyncConfigRequest & WithTemplateName(const char *value)
CreateTemplateSyncConfigRequest & WithRepositoryName(Aws::String &&value)
CreateTemplateSyncConfigRequest & WithSubdirectory(const Aws::String &value)
CreateTemplateSyncConfigRequest & WithTemplateName(Aws::String &&value)
CreateTemplateSyncConfigRequest & WithRepositoryProvider(RepositoryProvider &&value)
CreateTemplateSyncConfigRequest & WithTemplateType(const TemplateType &value)
CreateTemplateSyncConfigRequest & WithBranch(const Aws::String &value)
CreateTemplateSyncConfigRequest & WithBranch(Aws::String &&value)
CreateTemplateSyncConfigRequest & WithRepositoryName(const char *value)
CreateTemplateSyncConfigRequest & WithBranch(const char *value)
AWS_PROTON_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
CreateTemplateSyncConfigRequest & WithSubdirectory(Aws::String &&value)
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String