AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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:
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 inline void SetPolicyIds(const Aws::Vector<Aws::String>& value) { m_policyIdsHasBeenSet = true; m_policyIds = value; }
52 inline void SetPolicyIds(Aws::Vector<Aws::String>&& value) { m_policyIdsHasBeenSet = true; m_policyIds = std::move(value); }
54 inline GetLifecyclePoliciesRequest& WithPolicyIds(Aws::Vector<Aws::String>&& value) { SetPolicyIds(std::move(value)); return *this;}
55 inline GetLifecyclePoliciesRequest& AddPolicyIds(const Aws::String& value) { m_policyIdsHasBeenSet = true; m_policyIds.push_back(value); return *this; }
56 inline GetLifecyclePoliciesRequest& AddPolicyIds(Aws::String&& value) { m_policyIdsHasBeenSet = true; m_policyIds.push_back(std::move(value)); return *this; }
57 inline GetLifecyclePoliciesRequest& AddPolicyIds(const char* value) { m_policyIdsHasBeenSet = true; m_policyIds.push_back(value); return *this; }
59
61
64 inline const GettablePolicyStateValues& GetState() const{ return m_state; }
65 inline bool StateHasBeenSet() const { return m_stateHasBeenSet; }
66 inline void SetState(const GettablePolicyStateValues& value) { m_stateHasBeenSet = true; m_state = value; }
67 inline void SetState(GettablePolicyStateValues&& value) { m_stateHasBeenSet = true; m_state = std::move(value); }
68 inline GetLifecyclePoliciesRequest& WithState(const GettablePolicyStateValues& value) { SetState(value); return *this;}
69 inline GetLifecyclePoliciesRequest& WithState(GettablePolicyStateValues&& value) { SetState(std::move(value)); return *this;}
71
73
76 inline const Aws::Vector<ResourceTypeValues>& GetResourceTypes() const{ return m_resourceTypes; }
77 inline bool ResourceTypesHasBeenSet() const { return m_resourceTypesHasBeenSet; }
78 inline void SetResourceTypes(const Aws::Vector<ResourceTypeValues>& value) { m_resourceTypesHasBeenSet = true; m_resourceTypes = value; }
79 inline void SetResourceTypes(Aws::Vector<ResourceTypeValues>&& value) { m_resourceTypesHasBeenSet = true; m_resourceTypes = std::move(value); }
82 inline GetLifecyclePoliciesRequest& AddResourceTypes(const ResourceTypeValues& value) { m_resourceTypesHasBeenSet = true; m_resourceTypes.push_back(value); return *this; }
83 inline GetLifecyclePoliciesRequest& AddResourceTypes(ResourceTypeValues&& value) { m_resourceTypesHasBeenSet = true; m_resourceTypes.push_back(std::move(value)); return *this; }
85
87
91 inline const Aws::Vector<Aws::String>& GetTargetTags() const{ return m_targetTags; }
92 inline bool TargetTagsHasBeenSet() const { return m_targetTagsHasBeenSet; }
93 inline void SetTargetTags(const Aws::Vector<Aws::String>& value) { m_targetTagsHasBeenSet = true; m_targetTags = value; }
94 inline void SetTargetTags(Aws::Vector<Aws::String>&& value) { m_targetTagsHasBeenSet = true; m_targetTags = std::move(value); }
96 inline GetLifecyclePoliciesRequest& WithTargetTags(Aws::Vector<Aws::String>&& value) { SetTargetTags(std::move(value)); return *this;}
97 inline GetLifecyclePoliciesRequest& AddTargetTags(const Aws::String& value) { m_targetTagsHasBeenSet = true; m_targetTags.push_back(value); return *this; }
98 inline GetLifecyclePoliciesRequest& AddTargetTags(Aws::String&& value) { m_targetTagsHasBeenSet = true; m_targetTags.push_back(std::move(value)); return *this; }
99 inline GetLifecyclePoliciesRequest& AddTargetTags(const char* value) { m_targetTagsHasBeenSet = true; m_targetTags.push_back(value); return *this; }
101
103
108 inline const Aws::Vector<Aws::String>& GetTagsToAdd() const{ return m_tagsToAdd; }
109 inline bool TagsToAddHasBeenSet() const { return m_tagsToAddHasBeenSet; }
110 inline void SetTagsToAdd(const Aws::Vector<Aws::String>& value) { m_tagsToAddHasBeenSet = true; m_tagsToAdd = value; }
111 inline void SetTagsToAdd(Aws::Vector<Aws::String>&& value) { m_tagsToAddHasBeenSet = true; m_tagsToAdd = std::move(value); }
113 inline GetLifecyclePoliciesRequest& WithTagsToAdd(Aws::Vector<Aws::String>&& value) { SetTagsToAdd(std::move(value)); return *this;}
114 inline GetLifecyclePoliciesRequest& AddTagsToAdd(const Aws::String& value) { m_tagsToAddHasBeenSet = true; m_tagsToAdd.push_back(value); return *this; }
115 inline GetLifecyclePoliciesRequest& AddTagsToAdd(Aws::String&& value) { m_tagsToAddHasBeenSet = true; m_tagsToAdd.push_back(std::move(value)); return *this; }
116 inline GetLifecyclePoliciesRequest& AddTagsToAdd(const char* value) { m_tagsToAddHasBeenSet = true; m_tagsToAdd.push_back(value); return *this; }
118
120
127 inline const DefaultPoliciesTypeValues& GetDefaultPolicyType() const{ return m_defaultPolicyType; }
128 inline bool DefaultPolicyTypeHasBeenSet() const { return m_defaultPolicyTypeHasBeenSet; }
129 inline void SetDefaultPolicyType(const DefaultPoliciesTypeValues& value) { m_defaultPolicyTypeHasBeenSet = true; m_defaultPolicyType = value; }
130 inline void SetDefaultPolicyType(DefaultPoliciesTypeValues&& value) { m_defaultPolicyTypeHasBeenSet = true; m_defaultPolicyType = std::move(value); }
134 private:
135
136 Aws::Vector<Aws::String> m_policyIds;
137 bool m_policyIdsHasBeenSet = false;
138
140 bool m_stateHasBeenSet = false;
141
142 Aws::Vector<ResourceTypeValues> m_resourceTypes;
143 bool m_resourceTypesHasBeenSet = false;
144
145 Aws::Vector<Aws::String> m_targetTags;
146 bool m_targetTagsHasBeenSet = false;
147
148 Aws::Vector<Aws::String> m_tagsToAdd;
149 bool m_tagsToAddHasBeenSet = false;
150
151 DefaultPoliciesTypeValues m_defaultPolicyType;
152 bool m_defaultPolicyTypeHasBeenSet = false;
153 };
154
155} // namespace Model
156} // namespace DLM
157} // namespace Aws
void SetState(GettablePolicyStateValues &&value)
const DefaultPoliciesTypeValues & GetDefaultPolicyType() const
GetLifecyclePoliciesRequest & WithState(const GettablePolicyStateValues &value)
AWS_DLM_API void AddQueryStringParameters(Aws::Http::URI &uri) const override
const Aws::Vector< Aws::String > & GetTargetTags() const
GetLifecyclePoliciesRequest & WithDefaultPolicyType(const DefaultPoliciesTypeValues &value)
GetLifecyclePoliciesRequest & WithTagsToAdd(const Aws::Vector< Aws::String > &value)
void SetTagsToAdd(const Aws::Vector< Aws::String > &value)
GetLifecyclePoliciesRequest & WithResourceTypes(const Aws::Vector< ResourceTypeValues > &value)
GetLifecyclePoliciesRequest & WithPolicyIds(const Aws::Vector< Aws::String > &value)
GetLifecyclePoliciesRequest & WithResourceTypes(Aws::Vector< ResourceTypeValues > &&value)
GetLifecyclePoliciesRequest & AddPolicyIds(Aws::String &&value)
void SetTargetTags(const Aws::Vector< Aws::String > &value)
GetLifecyclePoliciesRequest & AddTagsToAdd(const char *value)
AWS_DLM_API Aws::String SerializePayload() const override
void SetResourceTypes(Aws::Vector< ResourceTypeValues > &&value)
void SetDefaultPolicyType(const DefaultPoliciesTypeValues &value)
GetLifecyclePoliciesRequest & AddTargetTags(const Aws::String &value)
void SetTargetTags(Aws::Vector< Aws::String > &&value)
GetLifecyclePoliciesRequest & AddTagsToAdd(Aws::String &&value)
GetLifecyclePoliciesRequest & AddResourceTypes(const ResourceTypeValues &value)
GetLifecyclePoliciesRequest & AddPolicyIds(const Aws::String &value)
GetLifecyclePoliciesRequest & WithPolicyIds(Aws::Vector< Aws::String > &&value)
GetLifecyclePoliciesRequest & AddPolicyIds(const char *value)
void SetDefaultPolicyType(DefaultPoliciesTypeValues &&value)
GetLifecyclePoliciesRequest & WithTargetTags(Aws::Vector< Aws::String > &&value)
GetLifecyclePoliciesRequest & WithTagsToAdd(Aws::Vector< Aws::String > &&value)
void SetState(const GettablePolicyStateValues &value)
void SetPolicyIds(const Aws::Vector< Aws::String > &value)
GetLifecyclePoliciesRequest & AddTargetTags(Aws::String &&value)
GetLifecyclePoliciesRequest & WithTargetTags(const Aws::Vector< Aws::String > &value)
void SetResourceTypes(const Aws::Vector< ResourceTypeValues > &value)
GetLifecyclePoliciesRequest & AddTargetTags(const char *value)
void SetTagsToAdd(Aws::Vector< Aws::String > &&value)
virtual const char * GetServiceRequestName() const override
GetLifecyclePoliciesRequest & WithDefaultPolicyType(DefaultPoliciesTypeValues &&value)
void SetPolicyIds(Aws::Vector< Aws::String > &&value)
const Aws::Vector< Aws::String > & GetPolicyIds() const
const Aws::Vector< Aws::String > & GetTagsToAdd() const
GetLifecyclePoliciesRequest & AddTagsToAdd(const Aws::String &value)
const GettablePolicyStateValues & GetState() const
const Aws::Vector< ResourceTypeValues > & GetResourceTypes() const
GetLifecyclePoliciesRequest & WithState(GettablePolicyStateValues &&value)
GetLifecyclePoliciesRequest & AddResourceTypes(ResourceTypeValues &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector