AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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:
41
42
44
47 inline const Aws::String& GetPolicyId() const{ return m_policyId; }
48 inline bool PolicyIdHasBeenSet() const { return m_policyIdHasBeenSet; }
49 inline void SetPolicyId(const Aws::String& value) { m_policyIdHasBeenSet = true; m_policyId = value; }
50 inline void SetPolicyId(Aws::String&& value) { m_policyIdHasBeenSet = true; m_policyId = std::move(value); }
51 inline void SetPolicyId(const char* value) { m_policyIdHasBeenSet = true; m_policyId.assign(value); }
52 inline LifecyclePolicySummary& WithPolicyId(const Aws::String& value) { SetPolicyId(value); return *this;}
53 inline LifecyclePolicySummary& WithPolicyId(Aws::String&& value) { SetPolicyId(std::move(value)); return *this;}
54 inline LifecyclePolicySummary& WithPolicyId(const char* value) { SetPolicyId(value); return *this;}
56
58
61 inline const Aws::String& GetDescription() const{ return m_description; }
62 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
63 inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; }
64 inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); }
65 inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); }
66 inline LifecyclePolicySummary& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
67 inline LifecyclePolicySummary& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;}
68 inline LifecyclePolicySummary& WithDescription(const char* value) { SetDescription(value); return *this;}
70
72
75 inline const GettablePolicyStateValues& GetState() const{ return m_state; }
76 inline bool StateHasBeenSet() const { return m_stateHasBeenSet; }
77 inline void SetState(const GettablePolicyStateValues& value) { m_stateHasBeenSet = true; m_state = value; }
78 inline void SetState(GettablePolicyStateValues&& value) { m_stateHasBeenSet = true; m_state = std::move(value); }
79 inline LifecyclePolicySummary& WithState(const GettablePolicyStateValues& value) { SetState(value); return *this;}
80 inline LifecyclePolicySummary& WithState(GettablePolicyStateValues&& value) { SetState(std::move(value)); return *this;}
82
84
87 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const{ return m_tags; }
88 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
89 inline void SetTags(const Aws::Map<Aws::String, Aws::String>& value) { m_tagsHasBeenSet = true; m_tags = value; }
90 inline void SetTags(Aws::Map<Aws::String, Aws::String>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
91 inline LifecyclePolicySummary& WithTags(const Aws::Map<Aws::String, Aws::String>& value) { SetTags(value); return *this;}
92 inline LifecyclePolicySummary& WithTags(Aws::Map<Aws::String, Aws::String>&& value) { SetTags(std::move(value)); return *this;}
93 inline LifecyclePolicySummary& AddTags(const Aws::String& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; }
94 inline LifecyclePolicySummary& AddTags(Aws::String&& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; }
95 inline LifecyclePolicySummary& AddTags(const Aws::String& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; }
96 inline LifecyclePolicySummary& AddTags(Aws::String&& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), std::move(value)); return *this; }
97 inline LifecyclePolicySummary& AddTags(const char* key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; }
98 inline LifecyclePolicySummary& AddTags(Aws::String&& key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; }
99 inline LifecyclePolicySummary& AddTags(const char* key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; }
101
103
111 inline const PolicyTypeValues& GetPolicyType() const{ return m_policyType; }
112 inline bool PolicyTypeHasBeenSet() const { return m_policyTypeHasBeenSet; }
113 inline void SetPolicyType(const PolicyTypeValues& value) { m_policyTypeHasBeenSet = true; m_policyType = value; }
114 inline void SetPolicyType(PolicyTypeValues&& value) { m_policyTypeHasBeenSet = true; m_policyType = std::move(value); }
115 inline LifecyclePolicySummary& WithPolicyType(const PolicyTypeValues& value) { SetPolicyType(value); return *this;}
116 inline LifecyclePolicySummary& WithPolicyType(PolicyTypeValues&& value) { SetPolicyType(std::move(value)); return *this;}
118
120
126 inline bool GetDefaultPolicy() const{ return m_defaultPolicy; }
127 inline bool DefaultPolicyHasBeenSet() const { return m_defaultPolicyHasBeenSet; }
128 inline void SetDefaultPolicy(bool value) { m_defaultPolicyHasBeenSet = true; m_defaultPolicy = value; }
129 inline LifecyclePolicySummary& WithDefaultPolicy(bool value) { SetDefaultPolicy(value); return *this;}
131 private:
132
133 Aws::String m_policyId;
134 bool m_policyIdHasBeenSet = false;
135
136 Aws::String m_description;
137 bool m_descriptionHasBeenSet = false;
138
140 bool m_stateHasBeenSet = false;
141
143 bool m_tagsHasBeenSet = false;
144
145 PolicyTypeValues m_policyType;
146 bool m_policyTypeHasBeenSet = false;
147
148 bool m_defaultPolicy;
149 bool m_defaultPolicyHasBeenSet = false;
150 };
151
152} // namespace Model
153} // namespace DLM
154} // namespace Aws
void SetPolicyType(const PolicyTypeValues &value)
LifecyclePolicySummary & AddTags(Aws::String &&key, const char *value)
AWS_DLM_API Aws::Utils::Json::JsonValue Jsonize() const
LifecyclePolicySummary & WithTags(Aws::Map< Aws::String, Aws::String > &&value)
LifecyclePolicySummary & WithDescription(Aws::String &&value)
LifecyclePolicySummary & WithPolicyType(const PolicyTypeValues &value)
LifecyclePolicySummary & WithState(GettablePolicyStateValues &&value)
AWS_DLM_API LifecyclePolicySummary(Aws::Utils::Json::JsonView jsonValue)
void SetTags(Aws::Map< Aws::String, Aws::String > &&value)
LifecyclePolicySummary & AddTags(const char *key, Aws::String &&value)
LifecyclePolicySummary & WithPolicyId(Aws::String &&value)
void SetDescription(const Aws::String &value)
AWS_DLM_API LifecyclePolicySummary & operator=(Aws::Utils::Json::JsonView jsonValue)
LifecyclePolicySummary & WithState(const GettablePolicyStateValues &value)
LifecyclePolicySummary & WithTags(const Aws::Map< Aws::String, Aws::String > &value)
LifecyclePolicySummary & WithDefaultPolicy(bool value)
void SetPolicyId(const Aws::String &value)
LifecyclePolicySummary & AddTags(const Aws::String &key, Aws::String &&value)
const Aws::Map< Aws::String, Aws::String > & GetTags() const
void SetState(GettablePolicyStateValues &&value)
LifecyclePolicySummary & WithDescription(const Aws::String &value)
LifecyclePolicySummary & WithDescription(const char *value)
LifecyclePolicySummary & WithPolicyId(const char *value)
LifecyclePolicySummary & AddTags(Aws::String &&key, const Aws::String &value)
void SetState(const GettablePolicyStateValues &value)
void SetPolicyType(PolicyTypeValues &&value)
const PolicyTypeValues & GetPolicyType() const
const GettablePolicyStateValues & GetState() const
LifecyclePolicySummary & AddTags(const char *key, const char *value)
LifecyclePolicySummary & AddTags(const Aws::String &key, const Aws::String &value)
LifecyclePolicySummary & WithPolicyType(PolicyTypeValues &&value)
void SetTags(const Aws::Map< Aws::String, Aws::String > &value)
LifecyclePolicySummary & AddTags(Aws::String &&key, Aws::String &&value)
LifecyclePolicySummary & WithPolicyId(const Aws::String &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