AWS SDK for C++

AWS SDK for C++ Version 1.11.942

Loading...
Searching...
No Matches
GetFolderRequest.h
1
6#pragma once
7#include <aws/amplifygen3/AmplifyGen3Request.h>
8#include <aws/amplifygen3/AmplifyGen3_EXPORTS.h>
9#include <aws/amplifygen3/model/GitProvider.h>
10#include <aws/core/utils/memory/stl/AWSString.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Http {
16class URI;
17} // namespace Http
18namespace AmplifyGen3 {
19namespace Model {
20
24 public:
25 AWS_AMPLIFYGEN3_API GetFolderRequest() = default;
26
27 // Service request name is the Operation name which will send this request out,
28 // each operation should has unique request name, so that we can get operation's name from this request.
29 // Note: this is not true for response, multiple operations may have the same response name,
30 // so we can not get operation's name from response.
31 inline virtual const char* GetServiceRequestName() const override { return "GetFolder"; }
32
33 AWS_AMPLIFYGEN3_API Aws::String SerializePayload() const override;
34
35 AWS_AMPLIFYGEN3_API void AddQueryStringParameters(Aws::Http::URI& uri) const override;
36
38
41 inline GitProvider GetProvider() const { return m_provider; }
42 inline bool ProviderHasBeenSet() const { return m_providerHasBeenSet; }
43 inline void SetProvider(GitProvider value) {
44 m_providerHasBeenSet = true;
45 m_provider = value;
46 }
48 SetProvider(value);
49 return *this;
50 }
52
54
60 inline const Aws::String& GetOwner() const { return m_owner; }
61 inline bool OwnerHasBeenSet() const { return m_ownerHasBeenSet; }
62 template <typename OwnerT = Aws::String>
63 void SetOwner(OwnerT&& value) {
64 m_ownerHasBeenSet = true;
65 m_owner = std::forward<OwnerT>(value);
66 }
67 template <typename OwnerT = Aws::String>
68 GetFolderRequest& WithOwner(OwnerT&& value) {
69 SetOwner(std::forward<OwnerT>(value));
70 return *this;
71 }
73
75
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 GetFolderRequest& WithRepositoryName(RepositoryNameT&& value) {
87 SetRepositoryName(std::forward<RepositoryNameT>(value));
88 return *this;
89 }
91
93
98 inline const Aws::String& GetRepositoryPath() const { return m_repositoryPath; }
99 inline bool RepositoryPathHasBeenSet() const { return m_repositoryPathHasBeenSet; }
100 template <typename RepositoryPathT = Aws::String>
101 void SetRepositoryPath(RepositoryPathT&& value) {
102 m_repositoryPathHasBeenSet = true;
103 m_repositoryPath = std::forward<RepositoryPathT>(value);
104 }
105 template <typename RepositoryPathT = Aws::String>
106 GetFolderRequest& WithRepositoryPath(RepositoryPathT&& value) {
107 SetRepositoryPath(std::forward<RepositoryPathT>(value));
108 return *this;
109 }
111
113
117 inline const Aws::String& GetFolderPath() const { return m_folderPath; }
118 inline bool FolderPathHasBeenSet() const { return m_folderPathHasBeenSet; }
119 template <typename FolderPathT = Aws::String>
120 void SetFolderPath(FolderPathT&& value) {
121 m_folderPathHasBeenSet = true;
122 m_folderPath = std::forward<FolderPathT>(value);
123 }
124 template <typename FolderPathT = Aws::String>
125 GetFolderRequest& WithFolderPath(FolderPathT&& value) {
126 SetFolderPath(std::forward<FolderPathT>(value));
127 return *this;
128 }
130
132
135 inline const Aws::String& GetBranch() const { return m_branch; }
136 inline bool BranchHasBeenSet() const { return m_branchHasBeenSet; }
137 template <typename BranchT = Aws::String>
138 void SetBranch(BranchT&& value) {
139 m_branchHasBeenSet = true;
140 m_branch = std::forward<BranchT>(value);
141 }
142 template <typename BranchT = Aws::String>
143 GetFolderRequest& WithBranch(BranchT&& value) {
144 SetBranch(std::forward<BranchT>(value));
145 return *this;
146 }
148 private:
150
151 Aws::String m_owner;
152
153 Aws::String m_repositoryName;
154
155 Aws::String m_repositoryPath;
156
157 Aws::String m_folderPath;
158
159 Aws::String m_branch;
160 bool m_providerHasBeenSet = false;
161 bool m_ownerHasBeenSet = false;
162 bool m_repositoryNameHasBeenSet = false;
163 bool m_repositoryPathHasBeenSet = false;
164 bool m_folderPathHasBeenSet = false;
165 bool m_branchHasBeenSet = false;
166};
167
168} // namespace Model
169} // namespace AmplifyGen3
170} // namespace Aws
virtual const char * GetServiceRequestName() const override
GetFolderRequest & WithRepositoryName(RepositoryNameT &&value)
const Aws::String & GetRepositoryName() const
GetFolderRequest & WithFolderPath(FolderPathT &&value)
void SetRepositoryName(RepositoryNameT &&value)
const Aws::String & GetRepositoryPath() const
const Aws::String & GetFolderPath() const
GetFolderRequest & WithProvider(GitProvider value)
void SetRepositoryPath(RepositoryPathT &&value)
AWS_AMPLIFYGEN3_API void AddQueryStringParameters(Aws::Http::URI &uri) const override
GetFolderRequest & WithRepositoryPath(RepositoryPathT &&value)
AWS_AMPLIFYGEN3_API GetFolderRequest()=default
GetFolderRequest & WithBranch(BranchT &&value)
GetFolderRequest & WithOwner(OwnerT &&value)
AWS_AMPLIFYGEN3_API Aws::String SerializePayload() const override
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String