AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
LifecyclePolicySummary.h
1
6#pragma once
7#include <aws/dlm/DLM_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/dlm/model/GettablePolicyStateValues.h>
10#include <aws/core/utils/memory/stl/AWSMap.h>
11#include <aws/dlm/model/PolicyTypeValues.h>
12#include <utility>
13
14namespace Aws
15{
16namespace Utils
17{
18namespace Json
19{
20 class JsonValue;
21 class JsonView;
22} // namespace Json
23} // namespace Utils
24namespace DLM
25{
26namespace Model
27{
28
35 {
36 public:
37 AWS_DLM_API LifecyclePolicySummary() = default;
41
42
44
47 inline const Aws::String& GetPolicyId() const { return m_policyId; }
48 inline bool PolicyIdHasBeenSet() const { return m_policyIdHasBeenSet; }
49 template<typename PolicyIdT = Aws::String>
50 void SetPolicyId(PolicyIdT&& value) { m_policyIdHasBeenSet = true; m_policyId = std::forward<PolicyIdT>(value); }
51 template<typename PolicyIdT = Aws::String>
52 LifecyclePolicySummary& WithPolicyId(PolicyIdT&& value) { SetPolicyId(std::forward<PolicyIdT>(value)); return *this;}
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) { m_descriptionHasBeenSet = true; m_description = std::forward<DescriptionT>(value); }
63 template<typename DescriptionT = Aws::String>
64 LifecyclePolicySummary& WithDescription(DescriptionT&& value) { SetDescription(std::forward<DescriptionT>(value)); return *this;}
66
68
71 inline GettablePolicyStateValues GetState() const { return m_state; }
72 inline bool StateHasBeenSet() const { return m_stateHasBeenSet; }
73 inline void SetState(GettablePolicyStateValues value) { m_stateHasBeenSet = true; m_state = value; }
76
78
81 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
82 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
83 template<typename TagsT = Aws::Map<Aws::String, Aws::String>>
84 void SetTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags = std::forward<TagsT>(value); }
85 template<typename TagsT = Aws::Map<Aws::String, Aws::String>>
86 LifecyclePolicySummary& WithTags(TagsT&& value) { SetTags(std::forward<TagsT>(value)); return *this;}
87 template<typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
88 LifecyclePolicySummary& AddTags(TagsKeyT&& key, TagsValueT&& value) {
89 m_tagsHasBeenSet = true; m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value)); return *this;
90 }
92
94
102 inline PolicyTypeValues GetPolicyType() const { return m_policyType; }
103 inline bool PolicyTypeHasBeenSet() const { return m_policyTypeHasBeenSet; }
104 inline void SetPolicyType(PolicyTypeValues value) { m_policyTypeHasBeenSet = true; m_policyType = value; }
107
109
115 inline bool GetDefaultPolicy() const { return m_defaultPolicy; }
116 inline bool DefaultPolicyHasBeenSet() const { return m_defaultPolicyHasBeenSet; }
117 inline void SetDefaultPolicy(bool value) { m_defaultPolicyHasBeenSet = true; m_defaultPolicy = value; }
118 inline LifecyclePolicySummary& WithDefaultPolicy(bool value) { SetDefaultPolicy(value); return *this;}
120 private:
121
122 Aws::String m_policyId;
123 bool m_policyIdHasBeenSet = false;
124
125 Aws::String m_description;
126 bool m_descriptionHasBeenSet = false;
127
129 bool m_stateHasBeenSet = false;
130
132 bool m_tagsHasBeenSet = false;
133
135 bool m_policyTypeHasBeenSet = false;
136
137 bool m_defaultPolicy{false};
138 bool m_defaultPolicyHasBeenSet = false;
139 };
140
141} // namespace Model
142} // namespace DLM
143} // 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