AWS SDK for C++

AWS SDK for C++ Version 1.11.682

Loading...
Searching...
No Matches
GetCanaryRunsRequest.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/synthetics/SyntheticsRequest.h>
9#include <aws/synthetics/Synthetics_EXPORTS.h>
10#include <aws/synthetics/model/RunType.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Synthetics {
16namespace Model {
17
21 public:
22 AWS_SYNTHETICS_API GetCanaryRunsRequest() = 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 "GetCanaryRuns"; }
29
30 AWS_SYNTHETICS_API Aws::String SerializePayload() const override;
31
33
36 inline const Aws::String& GetName() const { return m_name; }
37 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
38 template <typename NameT = Aws::String>
39 void SetName(NameT&& value) {
40 m_nameHasBeenSet = true;
41 m_name = std::forward<NameT>(value);
42 }
43 template <typename NameT = Aws::String>
45 SetName(std::forward<NameT>(value));
46 return *this;
47 }
49
51
58 inline const Aws::String& GetNextToken() const { return m_nextToken; }
59 inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
60 template <typename NextTokenT = Aws::String>
61 void SetNextToken(NextTokenT&& value) {
62 m_nextTokenHasBeenSet = true;
63 m_nextToken = std::forward<NextTokenT>(value);
64 }
65 template <typename NextTokenT = Aws::String>
66 GetCanaryRunsRequest& WithNextToken(NextTokenT&& value) {
67 SetNextToken(std::forward<NextTokenT>(value));
68 return *this;
69 }
71
73
78 inline int GetMaxResults() const { return m_maxResults; }
79 inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
80 inline void SetMaxResults(int value) {
81 m_maxResultsHasBeenSet = true;
82 m_maxResults = value;
83 }
85 SetMaxResults(value);
86 return *this;
87 }
89
91
95 inline const Aws::String& GetDryRunId() const { return m_dryRunId; }
96 inline bool DryRunIdHasBeenSet() const { return m_dryRunIdHasBeenSet; }
97 template <typename DryRunIdT = Aws::String>
98 void SetDryRunId(DryRunIdT&& value) {
99 m_dryRunIdHasBeenSet = true;
100 m_dryRunId = std::forward<DryRunIdT>(value);
101 }
102 template <typename DryRunIdT = Aws::String>
103 GetCanaryRunsRequest& WithDryRunId(DryRunIdT&& value) {
104 SetDryRunId(std::forward<DryRunIdT>(value));
105 return *this;
106 }
108
110
119 inline RunType GetRunType() const { return m_runType; }
120 inline bool RunTypeHasBeenSet() const { return m_runTypeHasBeenSet; }
121 inline void SetRunType(RunType value) {
122 m_runTypeHasBeenSet = true;
123 m_runType = value;
124 }
126 SetRunType(value);
127 return *this;
128 }
130 private:
131 Aws::String m_name;
132 bool m_nameHasBeenSet = false;
133
134 Aws::String m_nextToken;
135 bool m_nextTokenHasBeenSet = false;
136
137 int m_maxResults{0};
138 bool m_maxResultsHasBeenSet = false;
139
140 Aws::String m_dryRunId;
141 bool m_dryRunIdHasBeenSet = false;
142
143 RunType m_runType{RunType::NOT_SET};
144 bool m_runTypeHasBeenSet = false;
145};
146
147} // namespace Model
148} // namespace Synthetics
149} // namespace Aws
GetCanaryRunsRequest & WithMaxResults(int value)
AWS_SYNTHETICS_API GetCanaryRunsRequest()=default
GetCanaryRunsRequest & WithRunType(RunType value)
GetCanaryRunsRequest & WithNextToken(NextTokenT &&value)
GetCanaryRunsRequest & WithDryRunId(DryRunIdT &&value)
GetCanaryRunsRequest & WithName(NameT &&value)
AWS_SYNTHETICS_API Aws::String SerializePayload() const override
virtual const char * GetServiceRequestName() const override
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String