AWS SDK for C++

AWS SDK for C++ Version 1.11.717

Loading...
Searching...
No Matches
ListBranchesRequest.h
1
6#pragma once
7#include <aws/amplify/AmplifyRequest.h>
8#include <aws/amplify/Amplify_EXPORTS.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Http {
15class URI;
16} // namespace Http
17namespace Amplify {
18namespace Model {
19
27 public:
28 AWS_AMPLIFY_API ListBranchesRequest() = default;
29
30 // Service request name is the Operation name which will send this request out,
31 // each operation should has unique request name, so that we can get operation's name from this request.
32 // Note: this is not true for response, multiple operations may have the same response name,
33 // so we can not get operation's name from response.
34 inline virtual const char* GetServiceRequestName() const override { return "ListBranches"; }
35
36 AWS_AMPLIFY_API Aws::String SerializePayload() const override;
37
38 AWS_AMPLIFY_API void AddQueryStringParameters(Aws::Http::URI& uri) const override;
39
41
44 inline const Aws::String& GetAppId() const { return m_appId; }
45 inline bool AppIdHasBeenSet() const { return m_appIdHasBeenSet; }
46 template <typename AppIdT = Aws::String>
47 void SetAppId(AppIdT&& value) {
48 m_appIdHasBeenSet = true;
49 m_appId = std::forward<AppIdT>(value);
50 }
51 template <typename AppIdT = Aws::String>
52 ListBranchesRequest& WithAppId(AppIdT&& value) {
53 SetAppId(std::forward<AppIdT>(value));
54 return *this;
55 }
57
59
64 inline const Aws::String& GetNextToken() const { return m_nextToken; }
65 inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
66 template <typename NextTokenT = Aws::String>
67 void SetNextToken(NextTokenT&& value) {
68 m_nextTokenHasBeenSet = true;
69 m_nextToken = std::forward<NextTokenT>(value);
70 }
71 template <typename NextTokenT = Aws::String>
72 ListBranchesRequest& WithNextToken(NextTokenT&& value) {
73 SetNextToken(std::forward<NextTokenT>(value));
74 return *this;
75 }
77
79
82 inline int GetMaxResults() const { return m_maxResults; }
83 inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
84 inline void SetMaxResults(int value) {
85 m_maxResultsHasBeenSet = true;
86 m_maxResults = value;
87 }
89 SetMaxResults(value);
90 return *this;
91 }
93 private:
94 Aws::String m_appId;
95
96 Aws::String m_nextToken;
97
98 int m_maxResults{0};
99 bool m_appIdHasBeenSet = false;
100 bool m_nextTokenHasBeenSet = false;
101 bool m_maxResultsHasBeenSet = false;
102};
103
104} // namespace Model
105} // namespace Amplify
106} // namespace Aws
ListBranchesRequest & WithNextToken(NextTokenT &&value)
AWS_AMPLIFY_API ListBranchesRequest()=default
AWS_AMPLIFY_API void AddQueryStringParameters(Aws::Http::URI &uri) const override
AWS_AMPLIFY_API Aws::String SerializePayload() const override
ListBranchesRequest & WithMaxResults(int value)
virtual const char * GetServiceRequestName() const override
ListBranchesRequest & WithAppId(AppIdT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String