AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
GetDifferencesRequest.h
1
6#pragma once
7#include <aws/codecommit/CodeCommit_EXPORTS.h>
8#include <aws/codecommit/CodeCommitRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <utility>
11
12namespace Aws
13{
14namespace CodeCommit
15{
16namespace Model
17{
18
22 {
23 public:
24 AWS_CODECOMMIT_API GetDifferencesRequest() = default;
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 "GetDifferences"; }
31
32 AWS_CODECOMMIT_API Aws::String SerializePayload() const override;
33
35
36
38
41 inline const Aws::String& GetRepositoryName() const { return m_repositoryName; }
42 inline bool RepositoryNameHasBeenSet() const { return m_repositoryNameHasBeenSet; }
43 template<typename RepositoryNameT = Aws::String>
44 void SetRepositoryName(RepositoryNameT&& value) { m_repositoryNameHasBeenSet = true; m_repositoryName = std::forward<RepositoryNameT>(value); }
45 template<typename RepositoryNameT = Aws::String>
46 GetDifferencesRequest& WithRepositoryName(RepositoryNameT&& value) { SetRepositoryName(std::forward<RepositoryNameT>(value)); return *this;}
48
50
57 inline const Aws::String& GetBeforeCommitSpecifier() const { return m_beforeCommitSpecifier; }
58 inline bool BeforeCommitSpecifierHasBeenSet() const { return m_beforeCommitSpecifierHasBeenSet; }
59 template<typename BeforeCommitSpecifierT = Aws::String>
60 void SetBeforeCommitSpecifier(BeforeCommitSpecifierT&& value) { m_beforeCommitSpecifierHasBeenSet = true; m_beforeCommitSpecifier = std::forward<BeforeCommitSpecifierT>(value); }
61 template<typename BeforeCommitSpecifierT = Aws::String>
62 GetDifferencesRequest& WithBeforeCommitSpecifier(BeforeCommitSpecifierT&& value) { SetBeforeCommitSpecifier(std::forward<BeforeCommitSpecifierT>(value)); return *this;}
64
66
70 inline const Aws::String& GetAfterCommitSpecifier() const { return m_afterCommitSpecifier; }
71 inline bool AfterCommitSpecifierHasBeenSet() const { return m_afterCommitSpecifierHasBeenSet; }
72 template<typename AfterCommitSpecifierT = Aws::String>
73 void SetAfterCommitSpecifier(AfterCommitSpecifierT&& value) { m_afterCommitSpecifierHasBeenSet = true; m_afterCommitSpecifier = std::forward<AfterCommitSpecifierT>(value); }
74 template<typename AfterCommitSpecifierT = Aws::String>
75 GetDifferencesRequest& WithAfterCommitSpecifier(AfterCommitSpecifierT&& value) { SetAfterCommitSpecifier(std::forward<AfterCommitSpecifierT>(value)); return *this;}
77
79
85 inline const Aws::String& GetBeforePath() const { return m_beforePath; }
86 inline bool BeforePathHasBeenSet() const { return m_beforePathHasBeenSet; }
87 template<typename BeforePathT = Aws::String>
88 void SetBeforePath(BeforePathT&& value) { m_beforePathHasBeenSet = true; m_beforePath = std::forward<BeforePathT>(value); }
89 template<typename BeforePathT = Aws::String>
90 GetDifferencesRequest& WithBeforePath(BeforePathT&& value) { SetBeforePath(std::forward<BeforePathT>(value)); return *this;}
92
94
99 inline const Aws::String& GetAfterPath() const { return m_afterPath; }
100 inline bool AfterPathHasBeenSet() const { return m_afterPathHasBeenSet; }
101 template<typename AfterPathT = Aws::String>
102 void SetAfterPath(AfterPathT&& value) { m_afterPathHasBeenSet = true; m_afterPath = std::forward<AfterPathT>(value); }
103 template<typename AfterPathT = Aws::String>
104 GetDifferencesRequest& WithAfterPath(AfterPathT&& value) { SetAfterPath(std::forward<AfterPathT>(value)); return *this;}
106
108
112 inline int GetMaxResults() const { return m_maxResults; }
113 inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
114 inline void SetMaxResults(int value) { m_maxResultsHasBeenSet = true; m_maxResults = value; }
115 inline GetDifferencesRequest& WithMaxResults(int value) { SetMaxResults(value); return *this;}
117
119
123 inline const Aws::String& GetNextToken() const { return m_nextToken; }
124 inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
125 template<typename NextTokenT = Aws::String>
126 void SetNextToken(NextTokenT&& value) { m_nextTokenHasBeenSet = true; m_nextToken = std::forward<NextTokenT>(value); }
127 template<typename NextTokenT = Aws::String>
128 GetDifferencesRequest& WithNextToken(NextTokenT&& value) { SetNextToken(std::forward<NextTokenT>(value)); return *this;}
130 private:
131
132 Aws::String m_repositoryName;
133 bool m_repositoryNameHasBeenSet = false;
134
135 Aws::String m_beforeCommitSpecifier;
136 bool m_beforeCommitSpecifierHasBeenSet = false;
137
138 Aws::String m_afterCommitSpecifier;
139 bool m_afterCommitSpecifierHasBeenSet = false;
140
141 Aws::String m_beforePath;
142 bool m_beforePathHasBeenSet = false;
143
144 Aws::String m_afterPath;
145 bool m_afterPathHasBeenSet = false;
146
147 int m_maxResults{0};
148 bool m_maxResultsHasBeenSet = false;
149
150 Aws::String m_nextToken;
151 bool m_nextTokenHasBeenSet = false;
152 };
153
154} // namespace Model
155} // namespace CodeCommit
156} // namespace Aws
GetDifferencesRequest & WithAfterPath(AfterPathT &&value)
GetDifferencesRequest & WithMaxResults(int value)
AWS_CODECOMMIT_API GetDifferencesRequest()=default
GetDifferencesRequest & WithNextToken(NextTokenT &&value)
AWS_CODECOMMIT_API Aws::String SerializePayload() const override
GetDifferencesRequest & WithAfterCommitSpecifier(AfterCommitSpecifierT &&value)
AWS_CODECOMMIT_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
GetDifferencesRequest & WithBeforePath(BeforePathT &&value)
void SetBeforeCommitSpecifier(BeforeCommitSpecifierT &&value)
GetDifferencesRequest & WithBeforeCommitSpecifier(BeforeCommitSpecifierT &&value)
virtual const char * GetServiceRequestName() const override
void SetAfterCommitSpecifier(AfterCommitSpecifierT &&value)
GetDifferencesRequest & WithRepositoryName(RepositoryNameT &&value)
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String