AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
GetLifecyclePoliciesRequest.h
1
6#pragma once
7#include <aws/dlm/DLM_EXPORTS.h>
8#include <aws/dlm/DLMRequest.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/dlm/model/GettablePolicyStateValues.h>
11#include <aws/dlm/model/DefaultPoliciesTypeValues.h>
12#include <aws/core/utils/memory/stl/AWSString.h>
13#include <aws/dlm/model/ResourceTypeValues.h>
14#include <utility>
15
16namespace Aws
17{
18namespace Http
19{
20 class URI;
21} //namespace Http
22namespace DLM
23{
24namespace Model
25{
26
30 {
31 public:
32 AWS_DLM_API GetLifecyclePoliciesRequest() = default;
33
34 // Service request name is the Operation name which will send this request out,
35 // each operation should has unique request name, so that we can get operation's name from this request.
36 // Note: this is not true for response, multiple operations may have the same response name,
37 // so we can not get operation's name from response.
38 inline virtual const char* GetServiceRequestName() const override { return "GetLifecyclePolicies"; }
39
40 AWS_DLM_API Aws::String SerializePayload() const override;
41
42 AWS_DLM_API void AddQueryStringParameters(Aws::Http::URI& uri) const override;
43
44
46
49 inline const Aws::Vector<Aws::String>& GetPolicyIds() const { return m_policyIds; }
50 inline bool PolicyIdsHasBeenSet() const { return m_policyIdsHasBeenSet; }
51 template<typename PolicyIdsT = Aws::Vector<Aws::String>>
52 void SetPolicyIds(PolicyIdsT&& value) { m_policyIdsHasBeenSet = true; m_policyIds = std::forward<PolicyIdsT>(value); }
53 template<typename PolicyIdsT = Aws::Vector<Aws::String>>
54 GetLifecyclePoliciesRequest& WithPolicyIds(PolicyIdsT&& value) { SetPolicyIds(std::forward<PolicyIdsT>(value)); return *this;}
55 template<typename PolicyIdsT = Aws::String>
56 GetLifecyclePoliciesRequest& AddPolicyIds(PolicyIdsT&& value) { m_policyIdsHasBeenSet = true; m_policyIds.emplace_back(std::forward<PolicyIdsT>(value)); return *this; }
58
60
63 inline GettablePolicyStateValues GetState() const { return m_state; }
64 inline bool StateHasBeenSet() const { return m_stateHasBeenSet; }
65 inline void SetState(GettablePolicyStateValues value) { m_stateHasBeenSet = true; m_state = value; }
68
70
73 inline const Aws::Vector<ResourceTypeValues>& GetResourceTypes() const { return m_resourceTypes; }
74 inline bool ResourceTypesHasBeenSet() const { return m_resourceTypesHasBeenSet; }
75 template<typename ResourceTypesT = Aws::Vector<ResourceTypeValues>>
76 void SetResourceTypes(ResourceTypesT&& value) { m_resourceTypesHasBeenSet = true; m_resourceTypes = std::forward<ResourceTypesT>(value); }
77 template<typename ResourceTypesT = Aws::Vector<ResourceTypeValues>>
78 GetLifecyclePoliciesRequest& WithResourceTypes(ResourceTypesT&& value) { SetResourceTypes(std::forward<ResourceTypesT>(value)); return *this;}
79 inline GetLifecyclePoliciesRequest& AddResourceTypes(ResourceTypeValues value) { m_resourceTypesHasBeenSet = true; m_resourceTypes.push_back(value); return *this; }
81
83
87 inline const Aws::Vector<Aws::String>& GetTargetTags() const { return m_targetTags; }
88 inline bool TargetTagsHasBeenSet() const { return m_targetTagsHasBeenSet; }
89 template<typename TargetTagsT = Aws::Vector<Aws::String>>
90 void SetTargetTags(TargetTagsT&& value) { m_targetTagsHasBeenSet = true; m_targetTags = std::forward<TargetTagsT>(value); }
91 template<typename TargetTagsT = Aws::Vector<Aws::String>>
92 GetLifecyclePoliciesRequest& WithTargetTags(TargetTagsT&& value) { SetTargetTags(std::forward<TargetTagsT>(value)); return *this;}
93 template<typename TargetTagsT = Aws::String>
94 GetLifecyclePoliciesRequest& AddTargetTags(TargetTagsT&& value) { m_targetTagsHasBeenSet = true; m_targetTags.emplace_back(std::forward<TargetTagsT>(value)); return *this; }
96
98
103 inline const Aws::Vector<Aws::String>& GetTagsToAdd() const { return m_tagsToAdd; }
104 inline bool TagsToAddHasBeenSet() const { return m_tagsToAddHasBeenSet; }
105 template<typename TagsToAddT = Aws::Vector<Aws::String>>
106 void SetTagsToAdd(TagsToAddT&& value) { m_tagsToAddHasBeenSet = true; m_tagsToAdd = std::forward<TagsToAddT>(value); }
107 template<typename TagsToAddT = Aws::Vector<Aws::String>>
108 GetLifecyclePoliciesRequest& WithTagsToAdd(TagsToAddT&& value) { SetTagsToAdd(std::forward<TagsToAddT>(value)); return *this;}
109 template<typename TagsToAddT = Aws::String>
110 GetLifecyclePoliciesRequest& AddTagsToAdd(TagsToAddT&& value) { m_tagsToAddHasBeenSet = true; m_tagsToAdd.emplace_back(std::forward<TagsToAddT>(value)); return *this; }
112
114
121 inline DefaultPoliciesTypeValues GetDefaultPolicyType() const { return m_defaultPolicyType; }
122 inline bool DefaultPolicyTypeHasBeenSet() const { return m_defaultPolicyTypeHasBeenSet; }
123 inline void SetDefaultPolicyType(DefaultPoliciesTypeValues value) { m_defaultPolicyTypeHasBeenSet = true; m_defaultPolicyType = value; }
126 private:
127
128 Aws::Vector<Aws::String> m_policyIds;
129 bool m_policyIdsHasBeenSet = false;
130
132 bool m_stateHasBeenSet = false;
133
134 Aws::Vector<ResourceTypeValues> m_resourceTypes;
135 bool m_resourceTypesHasBeenSet = false;
136
137 Aws::Vector<Aws::String> m_targetTags;
138 bool m_targetTagsHasBeenSet = false;
139
140 Aws::Vector<Aws::String> m_tagsToAdd;
141 bool m_tagsToAddHasBeenSet = false;
142
144 bool m_defaultPolicyTypeHasBeenSet = false;
145 };
146
147} // namespace Model
148} // namespace DLM
149} // 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