AWS SDK for C++

AWS SDK for C++ Version 1.11.757

Loading...
Searching...
No Matches
DescribeCanariesRequest.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/synthetics/SyntheticsRequest.h>
10#include <aws/synthetics/Synthetics_EXPORTS.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Synthetics {
16namespace Model {
17
21 public:
22 AWS_SYNTHETICS_API DescribeCanariesRequest() = 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 "DescribeCanaries"; }
29
30 AWS_SYNTHETICS_API Aws::String SerializePayload() const override;
31
33
37 inline const Aws::String& GetNextToken() const { return m_nextToken; }
38 inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
39 template <typename NextTokenT = Aws::String>
40 void SetNextToken(NextTokenT&& value) {
41 m_nextTokenHasBeenSet = true;
42 m_nextToken = std::forward<NextTokenT>(value);
43 }
44 template <typename NextTokenT = Aws::String>
46 SetNextToken(std::forward<NextTokenT>(value));
47 return *this;
48 }
50
52
57 inline int GetMaxResults() const { return m_maxResults; }
58 inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
59 inline void SetMaxResults(int value) {
60 m_maxResultsHasBeenSet = true;
61 m_maxResults = value;
62 }
64 SetMaxResults(value);
65 return *this;
66 }
68
70
82 inline const Aws::Vector<Aws::String>& GetNames() const { return m_names; }
83 inline bool NamesHasBeenSet() const { return m_namesHasBeenSet; }
84 template <typename NamesT = Aws::Vector<Aws::String>>
85 void SetNames(NamesT&& value) {
86 m_namesHasBeenSet = true;
87 m_names = std::forward<NamesT>(value);
88 }
89 template <typename NamesT = Aws::Vector<Aws::String>>
91 SetNames(std::forward<NamesT>(value));
92 return *this;
93 }
94 template <typename NamesT = Aws::String>
96 m_namesHasBeenSet = true;
97 m_names.emplace_back(std::forward<NamesT>(value));
98 return *this;
99 }
101 private:
102 Aws::String m_nextToken;
103
104 int m_maxResults{0};
105
107 bool m_nextTokenHasBeenSet = false;
108 bool m_maxResultsHasBeenSet = false;
109 bool m_namesHasBeenSet = false;
110};
111
112} // namespace Model
113} // namespace Synthetics
114} // namespace Aws
AWS_SYNTHETICS_API Aws::String SerializePayload() const override
DescribeCanariesRequest & WithNextToken(NextTokenT &&value)
DescribeCanariesRequest & WithNames(NamesT &&value)
AWS_SYNTHETICS_API DescribeCanariesRequest()=default
DescribeCanariesRequest & WithMaxResults(int value)
virtual const char * GetServiceRequestName() const override
const Aws::Vector< Aws::String > & GetNames() const
DescribeCanariesRequest & AddNames(NamesT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector