AWS SDK for C++

AWS SDK for C++ Version 1.11.740

Loading...
Searching...
No Matches
GetFolderRequest.h
1
6#pragma once
7#include <aws/codecommit/CodeCommitRequest.h>
8#include <aws/codecommit/CodeCommit_EXPORTS.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10
11#include <utility>
12
13namespace Aws {
14namespace CodeCommit {
15namespace Model {
16
20 public:
21 AWS_CODECOMMIT_API GetFolderRequest() = default;
22
23 // Service request name is the Operation name which will send this request out,
24 // each operation should has unique request name, so that we can get operation's name from this request.
25 // Note: this is not true for response, multiple operations may have the same response name,
26 // so we can not get operation's name from response.
27 inline virtual const char* GetServiceRequestName() const override { return "GetFolder"; }
28
29 AWS_CODECOMMIT_API Aws::String SerializePayload() const override;
30
32
34
37 inline const Aws::String& GetRepositoryName() const { return m_repositoryName; }
38 inline bool RepositoryNameHasBeenSet() const { return m_repositoryNameHasBeenSet; }
39 template <typename RepositoryNameT = Aws::String>
40 void SetRepositoryName(RepositoryNameT&& value) {
41 m_repositoryNameHasBeenSet = true;
42 m_repositoryName = std::forward<RepositoryNameT>(value);
43 }
44 template <typename RepositoryNameT = Aws::String>
45 GetFolderRequest& WithRepositoryName(RepositoryNameT&& value) {
46 SetRepositoryName(std::forward<RepositoryNameT>(value));
47 return *this;
48 }
50
52
58 inline const Aws::String& GetCommitSpecifier() const { return m_commitSpecifier; }
59 inline bool CommitSpecifierHasBeenSet() const { return m_commitSpecifierHasBeenSet; }
60 template <typename CommitSpecifierT = Aws::String>
61 void SetCommitSpecifier(CommitSpecifierT&& value) {
62 m_commitSpecifierHasBeenSet = true;
63 m_commitSpecifier = std::forward<CommitSpecifierT>(value);
64 }
65 template <typename CommitSpecifierT = Aws::String>
66 GetFolderRequest& WithCommitSpecifier(CommitSpecifierT&& value) {
67 SetCommitSpecifier(std::forward<CommitSpecifierT>(value));
68 return *this;
69 }
71
73
79 inline const Aws::String& GetFolderPath() const { return m_folderPath; }
80 inline bool FolderPathHasBeenSet() const { return m_folderPathHasBeenSet; }
81 template <typename FolderPathT = Aws::String>
82 void SetFolderPath(FolderPathT&& value) {
83 m_folderPathHasBeenSet = true;
84 m_folderPath = std::forward<FolderPathT>(value);
85 }
86 template <typename FolderPathT = Aws::String>
87 GetFolderRequest& WithFolderPath(FolderPathT&& value) {
88 SetFolderPath(std::forward<FolderPathT>(value));
89 return *this;
90 }
92 private:
93 Aws::String m_repositoryName;
94
95 Aws::String m_commitSpecifier;
96
97 Aws::String m_folderPath;
98 bool m_repositoryNameHasBeenSet = false;
99 bool m_commitSpecifierHasBeenSet = false;
100 bool m_folderPathHasBeenSet = false;
101};
102
103} // namespace Model
104} // namespace CodeCommit
105} // namespace Aws
GetFolderRequest & WithRepositoryName(RepositoryNameT &&value)
GetFolderRequest & WithCommitSpecifier(CommitSpecifierT &&value)
const Aws::String & GetFolderPath() const
virtual const char * GetServiceRequestName() const override
AWS_CODECOMMIT_API Aws::String SerializePayload() const override
AWS_CODECOMMIT_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
const Aws::String & GetCommitSpecifier() const
void SetCommitSpecifier(CommitSpecifierT &&value)
AWS_CODECOMMIT_API GetFolderRequest()=default
void SetRepositoryName(RepositoryNameT &&value)
const Aws::String & GetRepositoryName() const
GetFolderRequest & WithFolderPath(FolderPathT &&value)
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String