AWS SDK for C++

AWS SDK for C++ Version 1.11.907

Loading...
Searching...
No Matches
LifecycleEvent.h
1
6#pragma once
7#include <aws/core/utils/DateTime.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/health/Health_EXPORTS.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Utils {
16namespace Json {
17class JsonValue;
18class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace Health {
22namespace Model {
23
31 public:
32 AWS_HEALTH_API LifecycleEvent() = default;
33 AWS_HEALTH_API LifecycleEvent(Aws::Utils::Json::JsonView jsonValue);
35 AWS_HEALTH_API Aws::Utils::Json::JsonValue Jsonize() const;
36
38
41 inline const Aws::String& GetLifecycleEventType() const { return m_lifecycleEventType; }
42 inline bool LifecycleEventTypeHasBeenSet() const { return m_lifecycleEventTypeHasBeenSet; }
43 template <typename LifecycleEventTypeT = Aws::String>
44 void SetLifecycleEventType(LifecycleEventTypeT&& value) {
45 m_lifecycleEventTypeHasBeenSet = true;
46 m_lifecycleEventType = std::forward<LifecycleEventTypeT>(value);
47 }
48 template <typename LifecycleEventTypeT = Aws::String>
49 LifecycleEvent& WithLifecycleEventType(LifecycleEventTypeT&& value) {
50 SetLifecycleEventType(std::forward<LifecycleEventTypeT>(value));
51 return *this;
52 }
54
56
59 inline const Aws::Utils::DateTime& GetDate() const { return m_date; }
60 inline bool DateHasBeenSet() const { return m_dateHasBeenSet; }
61 template <typename DateT = Aws::Utils::DateTime>
62 void SetDate(DateT&& value) {
63 m_dateHasBeenSet = true;
64 m_date = std::forward<DateT>(value);
65 }
66 template <typename DateT = Aws::Utils::DateTime>
67 LifecycleEvent& WithDate(DateT&& value) {
68 SetDate(std::forward<DateT>(value));
69 return *this;
70 }
72
74
77 inline const Aws::Vector<Aws::String>& GetRegions() const { return m_regions; }
78 inline bool RegionsHasBeenSet() const { return m_regionsHasBeenSet; }
79 template <typename RegionsT = Aws::Vector<Aws::String>>
80 void SetRegions(RegionsT&& value) {
81 m_regionsHasBeenSet = true;
82 m_regions = std::forward<RegionsT>(value);
83 }
84 template <typename RegionsT = Aws::Vector<Aws::String>>
85 LifecycleEvent& WithRegions(RegionsT&& value) {
86 SetRegions(std::forward<RegionsT>(value));
87 return *this;
88 }
89 template <typename RegionsT = Aws::String>
90 LifecycleEvent& AddRegions(RegionsT&& value) {
91 m_regionsHasBeenSet = true;
92 m_regions.emplace_back(std::forward<RegionsT>(value));
93 return *this;
94 }
96
98
101 inline const Aws::Vector<Aws::String>& GetImpactRisks() const { return m_impactRisks; }
102 inline bool ImpactRisksHasBeenSet() const { return m_impactRisksHasBeenSet; }
103 template <typename ImpactRisksT = Aws::Vector<Aws::String>>
104 void SetImpactRisks(ImpactRisksT&& value) {
105 m_impactRisksHasBeenSet = true;
106 m_impactRisks = std::forward<ImpactRisksT>(value);
107 }
108 template <typename ImpactRisksT = Aws::Vector<Aws::String>>
109 LifecycleEvent& WithImpactRisks(ImpactRisksT&& value) {
110 SetImpactRisks(std::forward<ImpactRisksT>(value));
111 return *this;
112 }
113 template <typename ImpactRisksT = Aws::String>
114 LifecycleEvent& AddImpactRisks(ImpactRisksT&& value) {
115 m_impactRisksHasBeenSet = true;
116 m_impactRisks.emplace_back(std::forward<ImpactRisksT>(value));
117 return *this;
118 }
120
122
125 inline const Aws::String& GetDescription() const { return m_description; }
126 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
127 template <typename DescriptionT = Aws::String>
128 void SetDescription(DescriptionT&& value) {
129 m_descriptionHasBeenSet = true;
130 m_description = std::forward<DescriptionT>(value);
131 }
132 template <typename DescriptionT = Aws::String>
133 LifecycleEvent& WithDescription(DescriptionT&& value) {
134 SetDescription(std::forward<DescriptionT>(value));
135 return *this;
136 }
138 private:
139 Aws::String m_lifecycleEventType;
140
141 Aws::Utils::DateTime m_date{};
142
143 Aws::Vector<Aws::String> m_regions;
144
145 Aws::Vector<Aws::String> m_impactRisks;
146
147 Aws::String m_description;
148 bool m_lifecycleEventTypeHasBeenSet = false;
149 bool m_dateHasBeenSet = false;
150 bool m_regionsHasBeenSet = false;
151 bool m_impactRisksHasBeenSet = false;
152 bool m_descriptionHasBeenSet = false;
153};
154
155} // namespace Model
156} // namespace Health
157} // namespace Aws
const Aws::Vector< Aws::String > & GetRegions() const
LifecycleEvent & WithImpactRisks(ImpactRisksT &&value)
AWS_HEALTH_API LifecycleEvent(Aws::Utils::Json::JsonView jsonValue)
void SetRegions(RegionsT &&value)
AWS_HEALTH_API LifecycleEvent()=default
LifecycleEvent & AddRegions(RegionsT &&value)
const Aws::Utils::DateTime & GetDate() const
AWS_HEALTH_API LifecycleEvent & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetImpactRisks(ImpactRisksT &&value)
void SetDescription(DescriptionT &&value)
AWS_HEALTH_API Aws::Utils::Json::JsonValue Jsonize() const
LifecycleEvent & WithLifecycleEventType(LifecycleEventTypeT &&value)
const Aws::Vector< Aws::String > & GetImpactRisks() const
LifecycleEvent & AddImpactRisks(ImpactRisksT &&value)
void SetLifecycleEventType(LifecycleEventTypeT &&value)
LifecycleEvent & WithDate(DateT &&value)
LifecycleEvent & WithRegions(RegionsT &&value)
LifecycleEvent & WithDescription(DescriptionT &&value)
const Aws::String & GetDescription() const
const Aws::String & GetLifecycleEventType() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue