AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
GetCanaryRunsRequest.h
1
6#pragma once
7#include <aws/synthetics/Synthetics_EXPORTS.h>
8#include <aws/synthetics/SyntheticsRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/synthetics/model/RunType.h>
11#include <utility>
12
13namespace Aws
14{
15namespace Synthetics
16{
17namespace Model
18{
19
23 {
24 public:
25 AWS_SYNTHETICS_API GetCanaryRunsRequest() = default;
26
27 // Service request name is the Operation name which will send this request out,
28 // each operation should has unique request name, so that we can get operation's name from this request.
29 // Note: this is not true for response, multiple operations may have the same response name,
30 // so we can not get operation's name from response.
31 inline virtual const char* GetServiceRequestName() const override { return "GetCanaryRuns"; }
32
33 AWS_SYNTHETICS_API Aws::String SerializePayload() const override;
34
35
37
40 inline const Aws::String& GetName() const { return m_name; }
41 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
42 template<typename NameT = Aws::String>
43 void SetName(NameT&& value) { m_nameHasBeenSet = true; m_name = std::forward<NameT>(value); }
44 template<typename NameT = Aws::String>
45 GetCanaryRunsRequest& WithName(NameT&& value) { SetName(std::forward<NameT>(value)); return *this;}
47
49
56 inline const Aws::String& GetNextToken() const { return m_nextToken; }
57 inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
58 template<typename NextTokenT = Aws::String>
59 void SetNextToken(NextTokenT&& value) { m_nextTokenHasBeenSet = true; m_nextToken = std::forward<NextTokenT>(value); }
60 template<typename NextTokenT = Aws::String>
61 GetCanaryRunsRequest& WithNextToken(NextTokenT&& value) { SetNextToken(std::forward<NextTokenT>(value)); return *this;}
63
65
70 inline int GetMaxResults() const { return m_maxResults; }
71 inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
72 inline void SetMaxResults(int value) { m_maxResultsHasBeenSet = true; m_maxResults = value; }
73 inline GetCanaryRunsRequest& WithMaxResults(int value) { SetMaxResults(value); return *this;}
75
77
81 inline const Aws::String& GetDryRunId() const { return m_dryRunId; }
82 inline bool DryRunIdHasBeenSet() const { return m_dryRunIdHasBeenSet; }
83 template<typename DryRunIdT = Aws::String>
84 void SetDryRunId(DryRunIdT&& value) { m_dryRunIdHasBeenSet = true; m_dryRunId = std::forward<DryRunIdT>(value); }
85 template<typename DryRunIdT = Aws::String>
86 GetCanaryRunsRequest& WithDryRunId(DryRunIdT&& value) { SetDryRunId(std::forward<DryRunIdT>(value)); return *this;}
88
90
99 inline RunType GetRunType() const { return m_runType; }
100 inline bool RunTypeHasBeenSet() const { return m_runTypeHasBeenSet; }
101 inline void SetRunType(RunType value) { m_runTypeHasBeenSet = true; m_runType = value; }
102 inline GetCanaryRunsRequest& WithRunType(RunType value) { SetRunType(value); return *this;}
104 private:
105
106 Aws::String m_name;
107 bool m_nameHasBeenSet = false;
108
109 Aws::String m_nextToken;
110 bool m_nextTokenHasBeenSet = false;
111
112 int m_maxResults{0};
113 bool m_maxResultsHasBeenSet = false;
114
115 Aws::String m_dryRunId;
116 bool m_dryRunIdHasBeenSet = false;
117
118 RunType m_runType{RunType::NOT_SET};
119 bool m_runTypeHasBeenSet = false;
120 };
121
122} // namespace Model
123} // namespace Synthetics
124} // 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