AWS SDK for C++

AWS SDK for C++ Version 1.11.716

Loading...
Searching...
No Matches
DescribePlacementGroupsRequest.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 DescribePlacementGroupsRequest() = 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 "DescribePlacementGroups"; }
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
41 inline const Aws::Vector<Aws::String>& GetGroupIds() const { return m_groupIds; }
42 inline bool GroupIdsHasBeenSet() const { return m_groupIdsHasBeenSet; }
43 template <typename GroupIdsT = Aws::Vector<Aws::String>>
44 void SetGroupIds(GroupIdsT&& value) {
45 m_groupIdsHasBeenSet = true;
46 m_groupIds = std::forward<GroupIdsT>(value);
47 }
48 template <typename GroupIdsT = Aws::Vector<Aws::String>>
50 SetGroupIds(std::forward<GroupIdsT>(value));
51 return *this;
52 }
53 template <typename GroupIdsT = Aws::String>
55 m_groupIdsHasBeenSet = true;
56 m_groupIds.emplace_back(std::forward<GroupIdsT>(value));
57 return *this;
58 }
60
62
68 inline bool GetDryRun() const { return m_dryRun; }
69 inline bool DryRunHasBeenSet() const { return m_dryRunHasBeenSet; }
70 inline void SetDryRun(bool value) {
71 m_dryRunHasBeenSet = true;
72 m_dryRun = value;
73 }
75 SetDryRun(value);
76 return *this;
77 }
79
81
88 inline const Aws::Vector<Aws::String>& GetGroupNames() const { return m_groupNames; }
89 inline bool GroupNamesHasBeenSet() const { return m_groupNamesHasBeenSet; }
90 template <typename GroupNamesT = Aws::Vector<Aws::String>>
91 void SetGroupNames(GroupNamesT&& value) {
92 m_groupNamesHasBeenSet = true;
93 m_groupNames = std::forward<GroupNamesT>(value);
94 }
95 template <typename GroupNamesT = Aws::Vector<Aws::String>>
97 SetGroupNames(std::forward<GroupNamesT>(value));
98 return *this;
99 }
100 template <typename GroupNamesT = Aws::String>
102 m_groupNamesHasBeenSet = true;
103 m_groupNames.emplace_back(std::forward<GroupNamesT>(value));
104 return *this;
105 }
107
109
128 inline const Aws::Vector<Filter>& GetFilters() const { return m_filters; }
129 inline bool FiltersHasBeenSet() const { return m_filtersHasBeenSet; }
130 template <typename FiltersT = Aws::Vector<Filter>>
131 void SetFilters(FiltersT&& value) {
132 m_filtersHasBeenSet = true;
133 m_filters = std::forward<FiltersT>(value);
134 }
135 template <typename FiltersT = Aws::Vector<Filter>>
137 SetFilters(std::forward<FiltersT>(value));
138 return *this;
139 }
140 template <typename FiltersT = Filter>
142 m_filtersHasBeenSet = true;
143 m_filters.emplace_back(std::forward<FiltersT>(value));
144 return *this;
145 }
147 private:
148 Aws::Vector<Aws::String> m_groupIds;
149
150 bool m_dryRun{false};
151
152 Aws::Vector<Aws::String> m_groupNames;
153
154 Aws::Vector<Filter> m_filters;
155 bool m_groupIdsHasBeenSet = false;
156 bool m_dryRunHasBeenSet = false;
157 bool m_groupNamesHasBeenSet = false;
158 bool m_filtersHasBeenSet = false;
159};
160
161} // namespace Model
162} // namespace EC2
163} // namespace Aws
DescribePlacementGroupsRequest & AddGroupIds(GroupIdsT &&value)
DescribePlacementGroupsRequest & WithGroupIds(GroupIdsT &&value)
DescribePlacementGroupsRequest & AddFilters(FiltersT &&value)
DescribePlacementGroupsRequest & WithFilters(FiltersT &&value)
const Aws::Vector< Aws::String > & GetGroupNames() const
DescribePlacementGroupsRequest & AddGroupNames(GroupNamesT &&value)
const Aws::Vector< Aws::String > & GetGroupIds() const
DescribePlacementGroupsRequest & WithDryRun(bool value)
DescribePlacementGroupsRequest & WithGroupNames(GroupNamesT &&value)
virtual const char * GetServiceRequestName() const override
AWS_EC2_API Aws::String SerializePayload() const override
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