AWS SDK for C++

AWS SDK for C++ Version 1.11.907

Loading...
Searching...
No Matches
ServiceLifecycle.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/health/Health_EXPORTS.h>
10#include <aws/health/model/LifecycleEvent.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
32 public:
33 AWS_HEALTH_API ServiceLifecycle() = default;
36 AWS_HEALTH_API Aws::Utils::Json::JsonValue Jsonize() const;
37
39
42 inline const Aws::String& GetService() const { return m_service; }
43 inline bool ServiceHasBeenSet() const { return m_serviceHasBeenSet; }
44 template <typename ServiceT = Aws::String>
45 void SetService(ServiceT&& value) {
46 m_serviceHasBeenSet = true;
47 m_service = std::forward<ServiceT>(value);
48 }
49 template <typename ServiceT = Aws::String>
50 ServiceLifecycle& WithService(ServiceT&& value) {
51 SetService(std::forward<ServiceT>(value));
52 return *this;
53 }
55
57
60 inline const Aws::String& GetVersion() const { return m_version; }
61 inline bool VersionHasBeenSet() const { return m_versionHasBeenSet; }
62 template <typename VersionT = Aws::String>
63 void SetVersion(VersionT&& value) {
64 m_versionHasBeenSet = true;
65 m_version = std::forward<VersionT>(value);
66 }
67 template <typename VersionT = Aws::String>
68 ServiceLifecycle& WithVersion(VersionT&& value) {
69 SetVersion(std::forward<VersionT>(value));
70 return *this;
71 }
73
75
78 inline const Aws::String& GetTitle() const { return m_title; }
79 inline bool TitleHasBeenSet() const { return m_titleHasBeenSet; }
80 template <typename TitleT = Aws::String>
81 void SetTitle(TitleT&& value) {
82 m_titleHasBeenSet = true;
83 m_title = std::forward<TitleT>(value);
84 }
85 template <typename TitleT = Aws::String>
86 ServiceLifecycle& WithTitle(TitleT&& value) {
87 SetTitle(std::forward<TitleT>(value));
88 return *this;
89 }
91
93
96 inline const Aws::String& GetRecommendedVersion() const { return m_recommendedVersion; }
97 inline bool RecommendedVersionHasBeenSet() const { return m_recommendedVersionHasBeenSet; }
98 template <typename RecommendedVersionT = Aws::String>
99 void SetRecommendedVersion(RecommendedVersionT&& value) {
100 m_recommendedVersionHasBeenSet = true;
101 m_recommendedVersion = std::forward<RecommendedVersionT>(value);
102 }
103 template <typename RecommendedVersionT = Aws::String>
104 ServiceLifecycle& WithRecommendedVersion(RecommendedVersionT&& value) {
105 SetRecommendedVersion(std::forward<RecommendedVersionT>(value));
106 return *this;
107 }
109
111
114 inline const Aws::Vector<LifecycleEvent>& GetLifecycleEvents() const { return m_lifecycleEvents; }
115 inline bool LifecycleEventsHasBeenSet() const { return m_lifecycleEventsHasBeenSet; }
116 template <typename LifecycleEventsT = Aws::Vector<LifecycleEvent>>
117 void SetLifecycleEvents(LifecycleEventsT&& value) {
118 m_lifecycleEventsHasBeenSet = true;
119 m_lifecycleEvents = std::forward<LifecycleEventsT>(value);
120 }
121 template <typename LifecycleEventsT = Aws::Vector<LifecycleEvent>>
122 ServiceLifecycle& WithLifecycleEvents(LifecycleEventsT&& value) {
123 SetLifecycleEvents(std::forward<LifecycleEventsT>(value));
124 return *this;
125 }
126 template <typename LifecycleEventsT = LifecycleEvent>
127 ServiceLifecycle& AddLifecycleEvents(LifecycleEventsT&& value) {
128 m_lifecycleEventsHasBeenSet = true;
129 m_lifecycleEvents.emplace_back(std::forward<LifecycleEventsT>(value));
130 return *this;
131 }
133 private:
134 Aws::String m_service;
135
136 Aws::String m_version;
137
138 Aws::String m_title;
139
140 Aws::String m_recommendedVersion;
141
142 Aws::Vector<LifecycleEvent> m_lifecycleEvents;
143 bool m_serviceHasBeenSet = false;
144 bool m_versionHasBeenSet = false;
145 bool m_titleHasBeenSet = false;
146 bool m_recommendedVersionHasBeenSet = false;
147 bool m_lifecycleEventsHasBeenSet = false;
148};
149
150} // namespace Model
151} // namespace Health
152} // namespace Aws
ServiceLifecycle & WithService(ServiceT &&value)
ServiceLifecycle & WithRecommendedVersion(RecommendedVersionT &&value)
void SetRecommendedVersion(RecommendedVersionT &&value)
ServiceLifecycle & AddLifecycleEvents(LifecycleEventsT &&value)
AWS_HEALTH_API Aws::Utils::Json::JsonValue Jsonize() const
ServiceLifecycle & WithVersion(VersionT &&value)
void SetLifecycleEvents(LifecycleEventsT &&value)
ServiceLifecycle & WithLifecycleEvents(LifecycleEventsT &&value)
AWS_HEALTH_API ServiceLifecycle()=default
const Aws::Vector< LifecycleEvent > & GetLifecycleEvents() const
AWS_HEALTH_API ServiceLifecycle(Aws::Utils::Json::JsonView jsonValue)
const Aws::String & GetVersion() const
const Aws::String & GetService() const
const Aws::String & GetTitle() const
AWS_HEALTH_API ServiceLifecycle & operator=(Aws::Utils::Json::JsonView jsonValue)
const Aws::String & GetRecommendedVersion() const
ServiceLifecycle & WithTitle(TitleT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue