AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetRepositoryName(const Aws::String& value) { m_repositoryNameHasBeenSet = true; m_repositoryName = value; }
44 inline void SetRepositoryName(Aws::String&& value) { m_repositoryNameHasBeenSet = true; m_repositoryName = std::move(value); }
45 inline void SetRepositoryName(const char* value) { m_repositoryNameHasBeenSet = true; m_repositoryName.assign(value); }
46 inline GetDifferencesRequest& WithRepositoryName(const Aws::String& value) { SetRepositoryName(value); return *this;}
47 inline GetDifferencesRequest& WithRepositoryName(Aws::String&& value) { SetRepositoryName(std::move(value)); return *this;}
48 inline GetDifferencesRequest& WithRepositoryName(const char* value) { SetRepositoryName(value); return *this;}
50
52
59 inline const Aws::String& GetBeforeCommitSpecifier() const{ return m_beforeCommitSpecifier; }
60 inline bool BeforeCommitSpecifierHasBeenSet() const { return m_beforeCommitSpecifierHasBeenSet; }
61 inline void SetBeforeCommitSpecifier(const Aws::String& value) { m_beforeCommitSpecifierHasBeenSet = true; m_beforeCommitSpecifier = value; }
62 inline void SetBeforeCommitSpecifier(Aws::String&& value) { m_beforeCommitSpecifierHasBeenSet = true; m_beforeCommitSpecifier = std::move(value); }
63 inline void SetBeforeCommitSpecifier(const char* value) { m_beforeCommitSpecifierHasBeenSet = true; m_beforeCommitSpecifier.assign(value); }
65 inline GetDifferencesRequest& WithBeforeCommitSpecifier(Aws::String&& value) { SetBeforeCommitSpecifier(std::move(value)); return *this;}
66 inline GetDifferencesRequest& WithBeforeCommitSpecifier(const char* value) { SetBeforeCommitSpecifier(value); return *this;}
68
70
74 inline const Aws::String& GetAfterCommitSpecifier() const{ return m_afterCommitSpecifier; }
75 inline bool AfterCommitSpecifierHasBeenSet() const { return m_afterCommitSpecifierHasBeenSet; }
76 inline void SetAfterCommitSpecifier(const Aws::String& value) { m_afterCommitSpecifierHasBeenSet = true; m_afterCommitSpecifier = value; }
77 inline void SetAfterCommitSpecifier(Aws::String&& value) { m_afterCommitSpecifierHasBeenSet = true; m_afterCommitSpecifier = std::move(value); }
78 inline void SetAfterCommitSpecifier(const char* value) { m_afterCommitSpecifierHasBeenSet = true; m_afterCommitSpecifier.assign(value); }
80 inline GetDifferencesRequest& WithAfterCommitSpecifier(Aws::String&& value) { SetAfterCommitSpecifier(std::move(value)); return *this;}
81 inline GetDifferencesRequest& WithAfterCommitSpecifier(const char* value) { SetAfterCommitSpecifier(value); return *this;}
83
85
91 inline const Aws::String& GetBeforePath() const{ return m_beforePath; }
92 inline bool BeforePathHasBeenSet() const { return m_beforePathHasBeenSet; }
93 inline void SetBeforePath(const Aws::String& value) { m_beforePathHasBeenSet = true; m_beforePath = value; }
94 inline void SetBeforePath(Aws::String&& value) { m_beforePathHasBeenSet = true; m_beforePath = std::move(value); }
95 inline void SetBeforePath(const char* value) { m_beforePathHasBeenSet = true; m_beforePath.assign(value); }
96 inline GetDifferencesRequest& WithBeforePath(const Aws::String& value) { SetBeforePath(value); return *this;}
97 inline GetDifferencesRequest& WithBeforePath(Aws::String&& value) { SetBeforePath(std::move(value)); return *this;}
98 inline GetDifferencesRequest& WithBeforePath(const char* value) { SetBeforePath(value); return *this;}
100
102
107 inline const Aws::String& GetAfterPath() const{ return m_afterPath; }
108 inline bool AfterPathHasBeenSet() const { return m_afterPathHasBeenSet; }
109 inline void SetAfterPath(const Aws::String& value) { m_afterPathHasBeenSet = true; m_afterPath = value; }
110 inline void SetAfterPath(Aws::String&& value) { m_afterPathHasBeenSet = true; m_afterPath = std::move(value); }
111 inline void SetAfterPath(const char* value) { m_afterPathHasBeenSet = true; m_afterPath.assign(value); }
112 inline GetDifferencesRequest& WithAfterPath(const Aws::String& value) { SetAfterPath(value); return *this;}
113 inline GetDifferencesRequest& WithAfterPath(Aws::String&& value) { SetAfterPath(std::move(value)); return *this;}
114 inline GetDifferencesRequest& WithAfterPath(const char* value) { SetAfterPath(value); return *this;}
116
118
122 inline int GetMaxResults() const{ return m_maxResults; }
123 inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
124 inline void SetMaxResults(int value) { m_maxResultsHasBeenSet = true; m_maxResults = value; }
125 inline GetDifferencesRequest& WithMaxResults(int value) { SetMaxResults(value); return *this;}
127
129
133 inline const Aws::String& GetNextToken() const{ return m_nextToken; }
134 inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
135 inline void SetNextToken(const Aws::String& value) { m_nextTokenHasBeenSet = true; m_nextToken = value; }
136 inline void SetNextToken(Aws::String&& value) { m_nextTokenHasBeenSet = true; m_nextToken = std::move(value); }
137 inline void SetNextToken(const char* value) { m_nextTokenHasBeenSet = true; m_nextToken.assign(value); }
138 inline GetDifferencesRequest& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;}
139 inline GetDifferencesRequest& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;}
140 inline GetDifferencesRequest& WithNextToken(const char* value) { SetNextToken(value); return *this;}
142 private:
143
144 Aws::String m_repositoryName;
145 bool m_repositoryNameHasBeenSet = false;
146
147 Aws::String m_beforeCommitSpecifier;
148 bool m_beforeCommitSpecifierHasBeenSet = false;
149
150 Aws::String m_afterCommitSpecifier;
151 bool m_afterCommitSpecifierHasBeenSet = false;
152
153 Aws::String m_beforePath;
154 bool m_beforePathHasBeenSet = false;
155
156 Aws::String m_afterPath;
157 bool m_afterPathHasBeenSet = false;
158
159 int m_maxResults;
160 bool m_maxResultsHasBeenSet = false;
161
162 Aws::String m_nextToken;
163 bool m_nextTokenHasBeenSet = false;
164 };
165
166} // namespace Model
167} // namespace CodeCommit
168} // namespace Aws
GetDifferencesRequest & WithAfterPath(const char *value)
GetDifferencesRequest & WithAfterCommitSpecifier(const Aws::String &value)
GetDifferencesRequest & WithBeforePath(const Aws::String &value)
GetDifferencesRequest & WithBeforeCommitSpecifier(const Aws::String &value)
void SetBeforeCommitSpecifier(const Aws::String &value)
GetDifferencesRequest & WithMaxResults(int value)
GetDifferencesRequest & WithBeforePath(Aws::String &&value)
GetDifferencesRequest & WithBeforeCommitSpecifier(Aws::String &&value)
GetDifferencesRequest & WithNextToken(const Aws::String &value)
GetDifferencesRequest & WithRepositoryName(Aws::String &&value)
void SetAfterCommitSpecifier(const Aws::String &value)
AWS_CODECOMMIT_API Aws::String SerializePayload() const override
GetDifferencesRequest & WithNextToken(Aws::String &&value)
AWS_CODECOMMIT_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
GetDifferencesRequest & WithAfterPath(Aws::String &&value)
GetDifferencesRequest & WithBeforeCommitSpecifier(const char *value)
GetDifferencesRequest & WithNextToken(const char *value)
GetDifferencesRequest & WithAfterCommitSpecifier(const char *value)
GetDifferencesRequest & WithBeforePath(const char *value)
GetDifferencesRequest & WithRepositoryName(const char *value)
GetDifferencesRequest & WithRepositoryName(const Aws::String &value)
virtual const char * GetServiceRequestName() const override
GetDifferencesRequest & WithAfterPath(const Aws::String &value)
GetDifferencesRequest & WithAfterCommitSpecifier(Aws::String &&value)
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String