AWS SDK for C++  1.8.129
AWS SDK for C++
GetFolderRequest.h
Go to the documentation of this file.
1 
6 #pragma once
10 #include <utility>
11 
12 namespace Aws
13 {
14 namespace CodeCommit
15 {
16 namespace Model
17 {
18 
22  {
23  public:
25 
26  // Service request name is the Operation name which will send this request out,
27  // each operation should has unique request name, so that we can get operation's name from this request.
28  // Note: this is not true for response, multiple operations may have the same response name,
29  // so we can not get operation's name from response.
30  inline virtual const char* GetServiceRequestName() const override { return "GetFolder"; }
31 
32  Aws::String SerializePayload() const override;
33 
35 
36 
40  inline const Aws::String& GetRepositoryName() const{ return m_repositoryName; }
41 
45  inline bool RepositoryNameHasBeenSet() const { return m_repositoryNameHasBeenSet; }
46 
50  inline void SetRepositoryName(const Aws::String& value) { m_repositoryNameHasBeenSet = true; m_repositoryName = value; }
51 
55  inline void SetRepositoryName(Aws::String&& value) { m_repositoryNameHasBeenSet = true; m_repositoryName = std::move(value); }
56 
60  inline void SetRepositoryName(const char* value) { m_repositoryNameHasBeenSet = true; m_repositoryName.assign(value); }
61 
65  inline GetFolderRequest& WithRepositoryName(const Aws::String& value) { SetRepositoryName(value); return *this;}
66 
70  inline GetFolderRequest& WithRepositoryName(Aws::String&& value) { SetRepositoryName(std::move(value)); return *this;}
71 
75  inline GetFolderRequest& WithRepositoryName(const char* value) { SetRepositoryName(value); return *this;}
76 
77 
84  inline const Aws::String& GetCommitSpecifier() const{ return m_commitSpecifier; }
85 
92  inline bool CommitSpecifierHasBeenSet() const { return m_commitSpecifierHasBeenSet; }
93 
100  inline void SetCommitSpecifier(const Aws::String& value) { m_commitSpecifierHasBeenSet = true; m_commitSpecifier = value; }
101 
108  inline void SetCommitSpecifier(Aws::String&& value) { m_commitSpecifierHasBeenSet = true; m_commitSpecifier = std::move(value); }
109 
116  inline void SetCommitSpecifier(const char* value) { m_commitSpecifierHasBeenSet = true; m_commitSpecifier.assign(value); }
117 
124  inline GetFolderRequest& WithCommitSpecifier(const Aws::String& value) { SetCommitSpecifier(value); return *this;}
125 
132  inline GetFolderRequest& WithCommitSpecifier(Aws::String&& value) { SetCommitSpecifier(std::move(value)); return *this;}
133 
140  inline GetFolderRequest& WithCommitSpecifier(const char* value) { SetCommitSpecifier(value); return *this;}
141 
142 
149  inline const Aws::String& GetFolderPath() const{ return m_folderPath; }
150 
157  inline bool FolderPathHasBeenSet() const { return m_folderPathHasBeenSet; }
158 
165  inline void SetFolderPath(const Aws::String& value) { m_folderPathHasBeenSet = true; m_folderPath = value; }
166 
173  inline void SetFolderPath(Aws::String&& value) { m_folderPathHasBeenSet = true; m_folderPath = std::move(value); }
174 
181  inline void SetFolderPath(const char* value) { m_folderPathHasBeenSet = true; m_folderPath.assign(value); }
182 
189  inline GetFolderRequest& WithFolderPath(const Aws::String& value) { SetFolderPath(value); return *this;}
190 
197  inline GetFolderRequest& WithFolderPath(Aws::String&& value) { SetFolderPath(std::move(value)); return *this;}
198 
205  inline GetFolderRequest& WithFolderPath(const char* value) { SetFolderPath(value); return *this;}
206 
207  private:
208 
209  Aws::String m_repositoryName;
210  bool m_repositoryNameHasBeenSet;
211 
212  Aws::String m_commitSpecifier;
213  bool m_commitSpecifierHasBeenSet;
214 
215  Aws::String m_folderPath;
216  bool m_folderPathHasBeenSet;
217  };
218 
219 } // namespace Model
220 } // namespace CodeCommit
221 } // namespace Aws
Aws::CodeCommit::Model::GetFolderRequest::GetRepositoryName
const Aws::String & GetRepositoryName() const
Definition: GetFolderRequest.h:40
CodeCommit_EXPORTS.h
Aws::CodeCommit::Model::GetFolderRequest::WithFolderPath
GetFolderRequest & WithFolderPath(const Aws::String &value)
Definition: GetFolderRequest.h:189
Aws::Http::HeaderValueCollection
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
Definition: HttpTypes.h:53
Aws::CodeCommit::Model::GetFolderRequest::GetCommitSpecifier
const Aws::String & GetCommitSpecifier() const
Definition: GetFolderRequest.h:84
Aws::CodeCommit::Model::GetFolderRequest::GetFolderRequest
GetFolderRequest()
Aws::CodeCommit::Model::GetFolderRequest::SetRepositoryName
void SetRepositoryName(const Aws::String &value)
Definition: GetFolderRequest.h:50
Aws::CodeCommit::Model::GetFolderRequest::SetRepositoryName
void SetRepositoryName(Aws::String &&value)
Definition: GetFolderRequest.h:55
Aws::CodeCommit::Model::GetFolderRequest::WithCommitSpecifier
GetFolderRequest & WithCommitSpecifier(const Aws::String &value)
Definition: GetFolderRequest.h:124
Aws::CodeCommit::CodeCommitRequest
Definition: CodeCommitRequest.h:17
Aws::CodeCommit::Model::GetFolderRequest::SetCommitSpecifier
void SetCommitSpecifier(Aws::String &&value)
Definition: GetFolderRequest.h:108
Aws::CodeCommit::Model::GetFolderRequest::WithFolderPath
GetFolderRequest & WithFolderPath(Aws::String &&value)
Definition: GetFolderRequest.h:197
CodeCommitRequest.h
Aws::CodeCommit::Model::GetFolderRequest::WithRepositoryName
GetFolderRequest & WithRepositoryName(const char *value)
Definition: GetFolderRequest.h:75
Aws::CodeCommit::Model::GetFolderRequest::WithCommitSpecifier
GetFolderRequest & WithCommitSpecifier(Aws::String &&value)
Definition: GetFolderRequest.h:132
Aws::CodeCommit::Model::GetFolderRequest::RepositoryNameHasBeenSet
bool RepositoryNameHasBeenSet() const
Definition: GetFolderRequest.h:45
Aws::CodeCommit::Model::GetFolderRequest::WithCommitSpecifier
GetFolderRequest & WithCommitSpecifier(const char *value)
Definition: GetFolderRequest.h:140
AWSString.h
AWS_CODECOMMIT_API
#define AWS_CODECOMMIT_API
Definition: CodeCommit_EXPORTS.h:28
Aws::CodeCommit::Model::GetFolderRequest::CommitSpecifierHasBeenSet
bool CommitSpecifierHasBeenSet() const
Definition: GetFolderRequest.h:92
Aws::CodeCommit::Model::GetFolderRequest::SetCommitSpecifier
void SetCommitSpecifier(const char *value)
Definition: GetFolderRequest.h:116
Aws::CodeCommit::Model::GetFolderRequest::WithRepositoryName
GetFolderRequest & WithRepositoryName(Aws::String &&value)
Definition: GetFolderRequest.h:70
Aws::CodeCommit::Model::GetFolderRequest::SetRepositoryName
void SetRepositoryName(const char *value)
Definition: GetFolderRequest.h:60
Aws::CodeCommit::Model::GetFolderRequest::FolderPathHasBeenSet
bool FolderPathHasBeenSet() const
Definition: GetFolderRequest.h:157
Aws::CodeCommit::Model::GetFolderRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: GetFolderRequest.h:30
Aws::CodeCommit::Model::GetFolderRequest::SetFolderPath
void SetFolderPath(const Aws::String &value)
Definition: GetFolderRequest.h:165
Aws::CodeCommit::Model::GetFolderRequest::WithFolderPath
GetFolderRequest & WithFolderPath(const char *value)
Definition: GetFolderRequest.h:205
Aws
Definition: AccessManagementClient.h:15
Aws::CodeCommit::Model::GetFolderRequest::SetCommitSpecifier
void SetCommitSpecifier(const Aws::String &value)
Definition: GetFolderRequest.h:100
Aws::CodeCommit::Model::GetFolderRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::CodeCommit::Model::GetFolderRequest
Definition: GetFolderRequest.h:22
Aws::CodeCommit::Model::GetFolderRequest::GetFolderPath
const Aws::String & GetFolderPath() const
Definition: GetFolderRequest.h:149
Aws::CodeCommit::Model::GetFolderRequest::SetFolderPath
void SetFolderPath(const char *value)
Definition: GetFolderRequest.h:181
Aws::CodeCommit::Model::GetFolderRequest::GetRequestSpecificHeaders
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
Aws::CodeCommit::Model::GetFolderRequest::SetFolderPath
void SetFolderPath(Aws::String &&value)
Definition: GetFolderRequest.h:173
Aws::CodeCommit::Model::GetFolderRequest::WithRepositoryName
GetFolderRequest & WithRepositoryName(const Aws::String &value)
Definition: GetFolderRequest.h:65