AWS SDK for C++

AWS SDK for C++ Version 1.11.719

Loading...
Searching...
No Matches
LifecyclePolicySummary.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSMap.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/dlm/DLM_EXPORTS.h>
10#include <aws/dlm/model/GettablePolicyStateValues.h>
11#include <aws/dlm/model/PolicyTypeValues.h>
12
13#include <utility>
14
15namespace Aws {
16namespace Utils {
17namespace Json {
18class JsonValue;
19class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace DLM {
23namespace Model {
24
31 public:
32 AWS_DLM_API LifecyclePolicySummary() = default;
36
38
41 inline const Aws::String& GetPolicyId() const { return m_policyId; }
42 inline bool PolicyIdHasBeenSet() const { return m_policyIdHasBeenSet; }
43 template <typename PolicyIdT = Aws::String>
44 void SetPolicyId(PolicyIdT&& value) {
45 m_policyIdHasBeenSet = true;
46 m_policyId = std::forward<PolicyIdT>(value);
47 }
48 template <typename PolicyIdT = Aws::String>
50 SetPolicyId(std::forward<PolicyIdT>(value));
51 return *this;
52 }
54
56
59 inline const Aws::String& GetDescription() const { return m_description; }
60 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
61 template <typename DescriptionT = Aws::String>
62 void SetDescription(DescriptionT&& value) {
63 m_descriptionHasBeenSet = true;
64 m_description = std::forward<DescriptionT>(value);
65 }
66 template <typename DescriptionT = Aws::String>
67 LifecyclePolicySummary& WithDescription(DescriptionT&& value) {
68 SetDescription(std::forward<DescriptionT>(value));
69 return *this;
70 }
72
74
77 inline GettablePolicyStateValues GetState() const { return m_state; }
78 inline bool StateHasBeenSet() const { return m_stateHasBeenSet; }
80 m_stateHasBeenSet = true;
81 m_state = value;
82 }
84 SetState(value);
85 return *this;
86 }
88
90
93 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
94 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
95 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
96 void SetTags(TagsT&& value) {
97 m_tagsHasBeenSet = true;
98 m_tags = std::forward<TagsT>(value);
99 }
100 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
102 SetTags(std::forward<TagsT>(value));
103 return *this;
104 }
105 template <typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
106 LifecyclePolicySummary& AddTags(TagsKeyT&& key, TagsValueT&& value) {
107 m_tagsHasBeenSet = true;
108 m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value));
109 return *this;
110 }
112
114
122 inline PolicyTypeValues GetPolicyType() const { return m_policyType; }
123 inline bool PolicyTypeHasBeenSet() const { return m_policyTypeHasBeenSet; }
124 inline void SetPolicyType(PolicyTypeValues value) {
125 m_policyTypeHasBeenSet = true;
126 m_policyType = value;
127 }
129 SetPolicyType(value);
130 return *this;
131 }
133
135
141 inline bool GetDefaultPolicy() const { return m_defaultPolicy; }
142 inline bool DefaultPolicyHasBeenSet() const { return m_defaultPolicyHasBeenSet; }
143 inline void SetDefaultPolicy(bool value) {
144 m_defaultPolicyHasBeenSet = true;
145 m_defaultPolicy = value;
146 }
148 SetDefaultPolicy(value);
149 return *this;
150 }
152 private:
153 Aws::String m_policyId;
154
155 Aws::String m_description;
156
158
160
162
163 bool m_defaultPolicy{false};
164 bool m_policyIdHasBeenSet = false;
165 bool m_descriptionHasBeenSet = false;
166 bool m_stateHasBeenSet = false;
167 bool m_tagsHasBeenSet = false;
168 bool m_policyTypeHasBeenSet = false;
169 bool m_defaultPolicyHasBeenSet = false;
170};
171
172} // namespace Model
173} // namespace DLM
174} // namespace Aws
AWS_DLM_API Aws::Utils::Json::JsonValue Jsonize() const
LifecyclePolicySummary & WithPolicyId(PolicyIdT &&value)
AWS_DLM_API LifecyclePolicySummary(Aws::Utils::Json::JsonView jsonValue)
LifecyclePolicySummary & WithState(GettablePolicyStateValues value)
LifecyclePolicySummary & WithPolicyType(PolicyTypeValues value)
AWS_DLM_API LifecyclePolicySummary & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetState(GettablePolicyStateValues value)
LifecyclePolicySummary & WithDefaultPolicy(bool value)
const Aws::Map< Aws::String, Aws::String > & GetTags() const
LifecyclePolicySummary & AddTags(TagsKeyT &&key, TagsValueT &&value)
AWS_DLM_API LifecyclePolicySummary()=default
LifecyclePolicySummary & WithDescription(DescriptionT &&value)
GettablePolicyStateValues GetState() const
LifecyclePolicySummary & WithTags(TagsT &&value)
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue