AWS SDK for C++

AWS SDK for C++ Version 1.11.785

Loading...
Searching...
No Matches
FoundationModelLifecycle.h
1
6#pragma once
7#include <aws/bedrock/Bedrock_EXPORTS.h>
8#include <aws/bedrock/model/FoundationModelLifecycleStatus.h>
9#include <aws/core/utils/DateTime.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace Bedrock {
21namespace Model {
22
30 public:
31 AWS_BEDROCK_API FoundationModelLifecycle() = default;
34 AWS_BEDROCK_API Aws::Utils::Json::JsonValue Jsonize() const;
35
37
41 inline FoundationModelLifecycleStatus GetStatus() const { return m_status; }
42 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
44 m_statusHasBeenSet = true;
45 m_status = value;
46 }
48 SetStatus(value);
49 return *this;
50 }
52
54
57 inline const Aws::Utils::DateTime& GetStartOfLifeTime() const { return m_startOfLifeTime; }
58 inline bool StartOfLifeTimeHasBeenSet() const { return m_startOfLifeTimeHasBeenSet; }
59 template <typename StartOfLifeTimeT = Aws::Utils::DateTime>
61 m_startOfLifeTimeHasBeenSet = true;
62 m_startOfLifeTime = std::forward<StartOfLifeTimeT>(value);
63 }
64 template <typename StartOfLifeTimeT = Aws::Utils::DateTime>
66 SetStartOfLifeTime(std::forward<StartOfLifeTimeT>(value));
67 return *this;
68 }
70
72
75 inline const Aws::Utils::DateTime& GetEndOfLifeTime() const { return m_endOfLifeTime; }
76 inline bool EndOfLifeTimeHasBeenSet() const { return m_endOfLifeTimeHasBeenSet; }
77 template <typename EndOfLifeTimeT = Aws::Utils::DateTime>
79 m_endOfLifeTimeHasBeenSet = true;
80 m_endOfLifeTime = std::forward<EndOfLifeTimeT>(value);
81 }
82 template <typename EndOfLifeTimeT = Aws::Utils::DateTime>
84 SetEndOfLifeTime(std::forward<EndOfLifeTimeT>(value));
85 return *this;
86 }
88
90
95 inline const Aws::Utils::DateTime& GetLegacyTime() const { return m_legacyTime; }
96 inline bool LegacyTimeHasBeenSet() const { return m_legacyTimeHasBeenSet; }
97 template <typename LegacyTimeT = Aws::Utils::DateTime>
98 void SetLegacyTime(LegacyTimeT&& value) {
99 m_legacyTimeHasBeenSet = true;
100 m_legacyTime = std::forward<LegacyTimeT>(value);
101 }
102 template <typename LegacyTimeT = Aws::Utils::DateTime>
104 SetLegacyTime(std::forward<LegacyTimeT>(value));
105 return *this;
106 }
108
110
114 inline const Aws::Utils::DateTime& GetPublicExtendedAccessTime() const { return m_publicExtendedAccessTime; }
115 inline bool PublicExtendedAccessTimeHasBeenSet() const { return m_publicExtendedAccessTimeHasBeenSet; }
116 template <typename PublicExtendedAccessTimeT = Aws::Utils::DateTime>
118 m_publicExtendedAccessTimeHasBeenSet = true;
119 m_publicExtendedAccessTime = std::forward<PublicExtendedAccessTimeT>(value);
120 }
121 template <typename PublicExtendedAccessTimeT = Aws::Utils::DateTime>
123 SetPublicExtendedAccessTime(std::forward<PublicExtendedAccessTimeT>(value));
124 return *this;
125 }
127 private:
129
130 Aws::Utils::DateTime m_startOfLifeTime{};
131
132 Aws::Utils::DateTime m_endOfLifeTime{};
133
134 Aws::Utils::DateTime m_legacyTime{};
135
136 Aws::Utils::DateTime m_publicExtendedAccessTime{};
137 bool m_statusHasBeenSet = false;
138 bool m_startOfLifeTimeHasBeenSet = false;
139 bool m_endOfLifeTimeHasBeenSet = false;
140 bool m_legacyTimeHasBeenSet = false;
141 bool m_publicExtendedAccessTimeHasBeenSet = false;
142};
143
144} // namespace Model
145} // namespace Bedrock
146} // namespace Aws
const Aws::Utils::DateTime & GetLegacyTime() const
AWS_BEDROCK_API FoundationModelLifecycle()=default
AWS_BEDROCK_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_BEDROCK_API FoundationModelLifecycle & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetStatus(FoundationModelLifecycleStatus value)
AWS_BEDROCK_API FoundationModelLifecycle(Aws::Utils::Json::JsonView jsonValue)
FoundationModelLifecycle & WithEndOfLifeTime(EndOfLifeTimeT &&value)
void SetPublicExtendedAccessTime(PublicExtendedAccessTimeT &&value)
const Aws::Utils::DateTime & GetEndOfLifeTime() const
FoundationModelLifecycle & WithStatus(FoundationModelLifecycleStatus value)
const Aws::Utils::DateTime & GetPublicExtendedAccessTime() const
FoundationModelLifecycleStatus GetStatus() const
FoundationModelLifecycle & WithStartOfLifeTime(StartOfLifeTimeT &&value)
FoundationModelLifecycle & WithLegacyTime(LegacyTimeT &&value)
FoundationModelLifecycle & WithPublicExtendedAccessTime(PublicExtendedAccessTimeT &&value)
const Aws::Utils::DateTime & GetStartOfLifeTime() const
std::shared_ptr< T > MakeShared(const char *allocationTag, ArgTypes &&... args)
Aws::Utils::Json::JsonValue JsonValue