AWS SDK for C++

AWS SDK for C++ Version 1.11.719

Loading...
Searching...
No Matches
GetLifecyclePoliciesRequest.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/dlm/DLMRequest.h>
10#include <aws/dlm/DLM_EXPORTS.h>
11#include <aws/dlm/model/DefaultPoliciesTypeValues.h>
12#include <aws/dlm/model/GettablePolicyStateValues.h>
13#include <aws/dlm/model/ResourceTypeValues.h>
14
15#include <utility>
16
17namespace Aws {
18namespace Http {
19class URI;
20} // namespace Http
21namespace DLM {
22namespace Model {
23
27 public:
28 AWS_DLM_API GetLifecyclePoliciesRequest() = default;
29
30 // Service request name is the Operation name which will send this request out,
31 // each operation should has unique request name, so that we can get operation's name from this request.
32 // Note: this is not true for response, multiple operations may have the same response name,
33 // so we can not get operation's name from response.
34 inline virtual const char* GetServiceRequestName() const override { return "GetLifecyclePolicies"; }
35
36 AWS_DLM_API Aws::String SerializePayload() const override;
37
38 AWS_DLM_API void AddQueryStringParameters(Aws::Http::URI& uri) const override;
39
41
44 inline const Aws::Vector<Aws::String>& GetPolicyIds() const { return m_policyIds; }
45 inline bool PolicyIdsHasBeenSet() const { return m_policyIdsHasBeenSet; }
46 template <typename PolicyIdsT = Aws::Vector<Aws::String>>
47 void SetPolicyIds(PolicyIdsT&& value) {
48 m_policyIdsHasBeenSet = true;
49 m_policyIds = std::forward<PolicyIdsT>(value);
50 }
51 template <typename PolicyIdsT = Aws::Vector<Aws::String>>
53 SetPolicyIds(std::forward<PolicyIdsT>(value));
54 return *this;
55 }
56 template <typename PolicyIdsT = Aws::String>
58 m_policyIdsHasBeenSet = true;
59 m_policyIds.emplace_back(std::forward<PolicyIdsT>(value));
60 return *this;
61 }
63
65
68 inline GettablePolicyStateValues GetState() const { return m_state; }
69 inline bool StateHasBeenSet() const { return m_stateHasBeenSet; }
71 m_stateHasBeenSet = true;
72 m_state = value;
73 }
75 SetState(value);
76 return *this;
77 }
79
81
84 inline const Aws::Vector<ResourceTypeValues>& GetResourceTypes() const { return m_resourceTypes; }
85 inline bool ResourceTypesHasBeenSet() const { return m_resourceTypesHasBeenSet; }
86 template <typename ResourceTypesT = Aws::Vector<ResourceTypeValues>>
87 void SetResourceTypes(ResourceTypesT&& value) {
88 m_resourceTypesHasBeenSet = true;
89 m_resourceTypes = std::forward<ResourceTypesT>(value);
90 }
91 template <typename ResourceTypesT = Aws::Vector<ResourceTypeValues>>
93 SetResourceTypes(std::forward<ResourceTypesT>(value));
94 return *this;
95 }
97 m_resourceTypesHasBeenSet = true;
98 m_resourceTypes.push_back(value);
99 return *this;
100 }
102
104
108 inline const Aws::Vector<Aws::String>& GetTargetTags() const { return m_targetTags; }
109 inline bool TargetTagsHasBeenSet() const { return m_targetTagsHasBeenSet; }
110 template <typename TargetTagsT = Aws::Vector<Aws::String>>
111 void SetTargetTags(TargetTagsT&& value) {
112 m_targetTagsHasBeenSet = true;
113 m_targetTags = std::forward<TargetTagsT>(value);
114 }
115 template <typename TargetTagsT = Aws::Vector<Aws::String>>
117 SetTargetTags(std::forward<TargetTagsT>(value));
118 return *this;
119 }
120 template <typename TargetTagsT = Aws::String>
122 m_targetTagsHasBeenSet = true;
123 m_targetTags.emplace_back(std::forward<TargetTagsT>(value));
124 return *this;
125 }
127
129
134 inline const Aws::Vector<Aws::String>& GetTagsToAdd() const { return m_tagsToAdd; }
135 inline bool TagsToAddHasBeenSet() const { return m_tagsToAddHasBeenSet; }
136 template <typename TagsToAddT = Aws::Vector<Aws::String>>
137 void SetTagsToAdd(TagsToAddT&& value) {
138 m_tagsToAddHasBeenSet = true;
139 m_tagsToAdd = std::forward<TagsToAddT>(value);
140 }
141 template <typename TagsToAddT = Aws::Vector<Aws::String>>
143 SetTagsToAdd(std::forward<TagsToAddT>(value));
144 return *this;
145 }
146 template <typename TagsToAddT = Aws::String>
148 m_tagsToAddHasBeenSet = true;
149 m_tagsToAdd.emplace_back(std::forward<TagsToAddT>(value));
150 return *this;
151 }
153
155
162 inline DefaultPoliciesTypeValues GetDefaultPolicyType() const { return m_defaultPolicyType; }
163 inline bool DefaultPolicyTypeHasBeenSet() const { return m_defaultPolicyTypeHasBeenSet; }
165 m_defaultPolicyTypeHasBeenSet = true;
166 m_defaultPolicyType = value;
167 }
170 return *this;
171 }
173 private:
174 Aws::Vector<Aws::String> m_policyIds;
175
177
178 Aws::Vector<ResourceTypeValues> m_resourceTypes;
179
180 Aws::Vector<Aws::String> m_targetTags;
181
182 Aws::Vector<Aws::String> m_tagsToAdd;
183
185 bool m_policyIdsHasBeenSet = false;
186 bool m_stateHasBeenSet = false;
187 bool m_resourceTypesHasBeenSet = false;
188 bool m_targetTagsHasBeenSet = false;
189 bool m_tagsToAddHasBeenSet = false;
190 bool m_defaultPolicyTypeHasBeenSet = false;
191};
192
193} // namespace Model
194} // namespace DLM
195} // namespace Aws
GetLifecyclePoliciesRequest & WithTargetTags(TargetTagsT &&value)
GetLifecyclePoliciesRequest & WithResourceTypes(ResourceTypesT &&value)
AWS_DLM_API void AddQueryStringParameters(Aws::Http::URI &uri) const override
const Aws::Vector< Aws::String > & GetTargetTags() const
GetLifecyclePoliciesRequest & WithDefaultPolicyType(DefaultPoliciesTypeValues value)
void SetDefaultPolicyType(DefaultPoliciesTypeValues value)
GetLifecyclePoliciesRequest & AddResourceTypes(ResourceTypeValues value)
AWS_DLM_API Aws::String SerializePayload() const override
GetLifecyclePoliciesRequest & WithTagsToAdd(TagsToAddT &&value)
GetLifecyclePoliciesRequest & AddTargetTags(TargetTagsT &&value)
GetLifecyclePoliciesRequest & WithPolicyIds(PolicyIdsT &&value)
GetLifecyclePoliciesRequest & WithState(GettablePolicyStateValues value)
GetLifecyclePoliciesRequest & AddPolicyIds(PolicyIdsT &&value)
virtual const char * GetServiceRequestName() const override
GetLifecyclePoliciesRequest & AddTagsToAdd(TagsToAddT &&value)
AWS_DLM_API GetLifecyclePoliciesRequest()=default
const Aws::Vector< Aws::String > & GetPolicyIds() const
const Aws::Vector< Aws::String > & GetTagsToAdd() const
const Aws::Vector< ResourceTypeValues > & GetResourceTypes() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector