AWS SDK for C++

AWS SDK for C++ Version 1.11.695

Loading...
Searching...
No Matches
ListSandboxesRequest.h
1
6#pragma once
7#include <aws/codebuild/CodeBuildRequest.h>
8#include <aws/codebuild/CodeBuild_EXPORTS.h>
9#include <aws/codebuild/model/SortOrderType.h>
10#include <aws/core/utils/memory/stl/AWSString.h>
11
12#include <utility>
13
14namespace Aws {
15namespace CodeBuild {
16namespace Model {
17
21 public:
22 AWS_CODEBUILD_API ListSandboxesRequest() = default;
23
24 // Service request name is the Operation name which will send this request out,
25 // each operation should has unique request name, so that we can get operation's name from this request.
26 // Note: this is not true for response, multiple operations may have the same response name,
27 // so we can not get operation's name from response.
28 inline virtual const char* GetServiceRequestName() const override { return "ListSandboxes"; }
29
30 AWS_CODEBUILD_API Aws::String SerializePayload() const override;
31
33
35
38 inline int GetMaxResults() const { return m_maxResults; }
39 inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
40 inline void SetMaxResults(int value) {
41 m_maxResultsHasBeenSet = true;
42 m_maxResults = value;
43 }
45 SetMaxResults(value);
46 return *this;
47 }
49
51
54 inline SortOrderType GetSortOrder() const { return m_sortOrder; }
55 inline bool SortOrderHasBeenSet() const { return m_sortOrderHasBeenSet; }
56 inline void SetSortOrder(SortOrderType value) {
57 m_sortOrderHasBeenSet = true;
58 m_sortOrder = value;
59 }
61 SetSortOrder(value);
62 return *this;
63 }
65
67
71 inline const Aws::String& GetNextToken() const { return m_nextToken; }
72 inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
73 template <typename NextTokenT = Aws::String>
74 void SetNextToken(NextTokenT&& value) {
75 m_nextTokenHasBeenSet = true;
76 m_nextToken = std::forward<NextTokenT>(value);
77 }
78 template <typename NextTokenT = Aws::String>
79 ListSandboxesRequest& WithNextToken(NextTokenT&& value) {
80 SetNextToken(std::forward<NextTokenT>(value));
81 return *this;
82 }
84 private:
85 int m_maxResults{0};
86 bool m_maxResultsHasBeenSet = false;
87
89 bool m_sortOrderHasBeenSet = false;
90
91 Aws::String m_nextToken;
92 bool m_nextTokenHasBeenSet = false;
93};
94
95} // namespace Model
96} // namespace CodeBuild
97} // namespace Aws
AWS_CODEBUILD_API ListSandboxesRequest()=default
virtual const char * GetServiceRequestName() const override
AWS_CODEBUILD_API Aws::String SerializePayload() const override
ListSandboxesRequest & WithMaxResults(int value)
ListSandboxesRequest & WithSortOrder(SortOrderType value)
AWS_CODEBUILD_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
ListSandboxesRequest & WithNextToken(NextTokenT &&value)
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String