AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
DescribeCanariesRequest.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/core/utils/memory/stl/AWSVector.h>
11#include <utility>
12
13namespace Aws
14{
15namespace Synthetics
16{
17namespace Model
18{
19
23 {
24 public:
25 AWS_SYNTHETICS_API DescribeCanariesRequest() = 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 "DescribeCanaries"; }
32
33 AWS_SYNTHETICS_API Aws::String SerializePayload() const override;
34
35
37
41 inline const Aws::String& GetNextToken() const { return m_nextToken; }
42 inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
43 template<typename NextTokenT = Aws::String>
44 void SetNextToken(NextTokenT&& value) { m_nextTokenHasBeenSet = true; m_nextToken = std::forward<NextTokenT>(value); }
45 template<typename NextTokenT = Aws::String>
46 DescribeCanariesRequest& WithNextToken(NextTokenT&& value) { SetNextToken(std::forward<NextTokenT>(value)); return *this;}
48
50
55 inline int GetMaxResults() const { return m_maxResults; }
56 inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
57 inline void SetMaxResults(int value) { m_maxResultsHasBeenSet = true; m_maxResults = value; }
58 inline DescribeCanariesRequest& WithMaxResults(int value) { SetMaxResults(value); return *this;}
60
62
74 inline const Aws::Vector<Aws::String>& GetNames() const { return m_names; }
75 inline bool NamesHasBeenSet() const { return m_namesHasBeenSet; }
76 template<typename NamesT = Aws::Vector<Aws::String>>
77 void SetNames(NamesT&& value) { m_namesHasBeenSet = true; m_names = std::forward<NamesT>(value); }
78 template<typename NamesT = Aws::Vector<Aws::String>>
79 DescribeCanariesRequest& WithNames(NamesT&& value) { SetNames(std::forward<NamesT>(value)); return *this;}
80 template<typename NamesT = Aws::String>
81 DescribeCanariesRequest& AddNames(NamesT&& value) { m_namesHasBeenSet = true; m_names.emplace_back(std::forward<NamesT>(value)); return *this; }
83 private:
84
85 Aws::String m_nextToken;
86 bool m_nextTokenHasBeenSet = false;
87
88 int m_maxResults{0};
89 bool m_maxResultsHasBeenSet = false;
90
92 bool m_namesHasBeenSet = false;
93 };
94
95} // namespace Model
96} // namespace Synthetics
97} // 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