AWS SDK for C++

AWS SDK for C++ Version 1.11.716

Loading...
Searching...
No Matches
DescribeCanariesLastRunRequest.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#include <aws/synthetics/model/BrowserType.h>
12
13#include <utility>
14
15namespace Aws {
16namespace Synthetics {
17namespace Model {
18
22 public:
23 AWS_SYNTHETICS_API DescribeCanariesLastRunRequest() = default;
24
25 // Service request name is the Operation name which will send this request out,
26 // each operation should has unique request name, so that we can get operation's name from this request.
27 // Note: this is not true for response, multiple operations may have the same response name,
28 // so we can not get operation's name from response.
29 inline virtual const char* GetServiceRequestName() const override { return "DescribeCanariesLastRun"; }
30
31 AWS_SYNTHETICS_API Aws::String SerializePayload() const override;
32
34
39 inline const Aws::String& GetNextToken() const { return m_nextToken; }
40 inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
41 template <typename NextTokenT = Aws::String>
42 void SetNextToken(NextTokenT&& value) {
43 m_nextTokenHasBeenSet = true;
44 m_nextToken = std::forward<NextTokenT>(value);
45 }
46 template <typename NextTokenT = Aws::String>
48 SetNextToken(std::forward<NextTokenT>(value));
49 return *this;
50 }
52
54
59 inline int GetMaxResults() const { return m_maxResults; }
60 inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
61 inline void SetMaxResults(int value) {
62 m_maxResultsHasBeenSet = true;
63 m_maxResults = value;
64 }
66 SetMaxResults(value);
67 return *this;
68 }
70
72
84 inline const Aws::Vector<Aws::String>& GetNames() const { return m_names; }
85 inline bool NamesHasBeenSet() const { return m_namesHasBeenSet; }
86 template <typename NamesT = Aws::Vector<Aws::String>>
87 void SetNames(NamesT&& value) {
88 m_namesHasBeenSet = true;
89 m_names = std::forward<NamesT>(value);
90 }
91 template <typename NamesT = Aws::Vector<Aws::String>>
93 SetNames(std::forward<NamesT>(value));
94 return *this;
95 }
96 template <typename NamesT = Aws::String>
98 m_namesHasBeenSet = true;
99 m_names.emplace_back(std::forward<NamesT>(value));
100 return *this;
101 }
103
105
108 inline BrowserType GetBrowserType() const { return m_browserType; }
109 inline bool BrowserTypeHasBeenSet() const { return m_browserTypeHasBeenSet; }
110 inline void SetBrowserType(BrowserType value) {
111 m_browserTypeHasBeenSet = true;
112 m_browserType = value;
113 }
115 SetBrowserType(value);
116 return *this;
117 }
119 private:
120 Aws::String m_nextToken;
121
122 int m_maxResults{0};
123
125
126 BrowserType m_browserType{BrowserType::NOT_SET};
127 bool m_nextTokenHasBeenSet = false;
128 bool m_maxResultsHasBeenSet = false;
129 bool m_namesHasBeenSet = false;
130 bool m_browserTypeHasBeenSet = false;
131};
132
133} // namespace Model
134} // namespace Synthetics
135} // namespace Aws
AWS_SYNTHETICS_API Aws::String SerializePayload() const override
DescribeCanariesLastRunRequest & WithBrowserType(BrowserType value)
DescribeCanariesLastRunRequest & WithNames(NamesT &&value)
DescribeCanariesLastRunRequest & AddNames(NamesT &&value)
DescribeCanariesLastRunRequest & WithNextToken(NextTokenT &&value)
AWS_SYNTHETICS_API DescribeCanariesLastRunRequest()=default
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector