AWS SDK for C++

AWS SDK for C++ Version 1.11.716

Loading...
Searching...
No Matches
DescribeSnapshotTierStatusRequest.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/ec2/EC2Request.h>
10#include <aws/ec2/EC2_EXPORTS.h>
11#include <aws/ec2/model/Filter.h>
12
13#include <utility>
14
15namespace Aws {
16namespace EC2 {
17namespace Model {
18
22 public:
23 AWS_EC2_API DescribeSnapshotTierStatusRequest() = 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 "DescribeSnapshotTierStatus"; }
30
31 AWS_EC2_API Aws::String SerializePayload() const override;
32
33 protected:
34 AWS_EC2_API void DumpBodyToUrl(Aws::Http::URI& uri) const override;
35
36 public:
38
50 inline const Aws::Vector<Filter>& GetFilters() const { return m_filters; }
51 inline bool FiltersHasBeenSet() const { return m_filtersHasBeenSet; }
52 template <typename FiltersT = Aws::Vector<Filter>>
53 void SetFilters(FiltersT&& value) {
54 m_filtersHasBeenSet = true;
55 m_filters = std::forward<FiltersT>(value);
56 }
57 template <typename FiltersT = Aws::Vector<Filter>>
59 SetFilters(std::forward<FiltersT>(value));
60 return *this;
61 }
62 template <typename FiltersT = Filter>
64 m_filtersHasBeenSet = true;
65 m_filters.emplace_back(std::forward<FiltersT>(value));
66 return *this;
67 }
69
71
77 inline bool GetDryRun() const { return m_dryRun; }
78 inline bool DryRunHasBeenSet() const { return m_dryRunHasBeenSet; }
79 inline void SetDryRun(bool value) {
80 m_dryRunHasBeenSet = true;
81 m_dryRun = value;
82 }
84 SetDryRun(value);
85 return *this;
86 }
88
90
94 inline const Aws::String& GetNextToken() const { return m_nextToken; }
95 inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
96 template <typename NextTokenT = Aws::String>
97 void SetNextToken(NextTokenT&& value) {
98 m_nextTokenHasBeenSet = true;
99 m_nextToken = std::forward<NextTokenT>(value);
100 }
101 template <typename NextTokenT = Aws::String>
103 SetNextToken(std::forward<NextTokenT>(value));
104 return *this;
105 }
107
109
115 inline int GetMaxResults() const { return m_maxResults; }
116 inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
117 inline void SetMaxResults(int value) {
118 m_maxResultsHasBeenSet = true;
119 m_maxResults = value;
120 }
122 SetMaxResults(value);
123 return *this;
124 }
126 private:
127 Aws::Vector<Filter> m_filters;
128
129 bool m_dryRun{false};
130
131 Aws::String m_nextToken;
132
133 int m_maxResults{0};
134 bool m_filtersHasBeenSet = false;
135 bool m_dryRunHasBeenSet = false;
136 bool m_nextTokenHasBeenSet = false;
137 bool m_maxResultsHasBeenSet = false;
138};
139
140} // namespace Model
141} // namespace EC2
142} // namespace Aws
DescribeSnapshotTierStatusRequest & WithDryRun(bool value)
DescribeSnapshotTierStatusRequest & AddFilters(FiltersT &&value)
DescribeSnapshotTierStatusRequest & WithNextToken(NextTokenT &&value)
AWS_EC2_API Aws::String SerializePayload() const override
DescribeSnapshotTierStatusRequest & WithMaxResults(int value)
DescribeSnapshotTierStatusRequest & WithFilters(FiltersT &&value)
AWS_EC2_API void DumpBodyToUrl(Aws::Http::URI &uri) const override
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector