AWS SDK for C++

AWS SDK for C++ Version 1.11.926

Loading...
Searching...
No Matches
MigrationAlert.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/lex-models/LexModelBuildingService_EXPORTS.h>
10#include <aws/lex-models/model/MigrationAlertType.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Utils {
16namespace Json {
17class JsonValue;
18class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace LexModelBuildingService {
22namespace Model {
23
32 public:
33 AWS_LEXMODELBUILDINGSERVICE_API MigrationAlert() = default;
34 AWS_LEXMODELBUILDINGSERVICE_API MigrationAlert(Aws::Utils::Json::JsonView jsonValue);
35 AWS_LEXMODELBUILDINGSERVICE_API MigrationAlert& operator=(Aws::Utils::Json::JsonView jsonValue);
36 AWS_LEXMODELBUILDINGSERVICE_API Aws::Utils::Json::JsonValue Jsonize() const;
37
39
46 inline MigrationAlertType GetType() const { return m_type; }
47 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
48 inline void SetType(MigrationAlertType value) {
49 m_typeHasBeenSet = true;
50 m_type = value;
51 }
53 SetType(value);
54 return *this;
55 }
57
59
62 inline const Aws::String& GetMessage() const { return m_message; }
63 inline bool MessageHasBeenSet() const { return m_messageHasBeenSet; }
64 template <typename MessageT = Aws::String>
65 void SetMessage(MessageT&& value) {
66 m_messageHasBeenSet = true;
67 m_message = std::forward<MessageT>(value);
68 }
69 template <typename MessageT = Aws::String>
70 MigrationAlert& WithMessage(MessageT&& value) {
71 SetMessage(std::forward<MessageT>(value));
72 return *this;
73 }
75
77
80 inline const Aws::Vector<Aws::String>& GetDetails() const { return m_details; }
81 inline bool DetailsHasBeenSet() const { return m_detailsHasBeenSet; }
82 template <typename DetailsT = Aws::Vector<Aws::String>>
83 void SetDetails(DetailsT&& value) {
84 m_detailsHasBeenSet = true;
85 m_details = std::forward<DetailsT>(value);
86 }
87 template <typename DetailsT = Aws::Vector<Aws::String>>
88 MigrationAlert& WithDetails(DetailsT&& value) {
89 SetDetails(std::forward<DetailsT>(value));
90 return *this;
91 }
92 template <typename DetailsT = Aws::String>
93 MigrationAlert& AddDetails(DetailsT&& value) {
94 m_detailsHasBeenSet = true;
95 m_details.emplace_back(std::forward<DetailsT>(value));
96 return *this;
97 }
99
101
105 inline const Aws::Vector<Aws::String>& GetReferenceURLs() const { return m_referenceURLs; }
106 inline bool ReferenceURLsHasBeenSet() const { return m_referenceURLsHasBeenSet; }
107 template <typename ReferenceURLsT = Aws::Vector<Aws::String>>
108 void SetReferenceURLs(ReferenceURLsT&& value) {
109 m_referenceURLsHasBeenSet = true;
110 m_referenceURLs = std::forward<ReferenceURLsT>(value);
111 }
112 template <typename ReferenceURLsT = Aws::Vector<Aws::String>>
113 MigrationAlert& WithReferenceURLs(ReferenceURLsT&& value) {
114 SetReferenceURLs(std::forward<ReferenceURLsT>(value));
115 return *this;
116 }
117 template <typename ReferenceURLsT = Aws::String>
118 MigrationAlert& AddReferenceURLs(ReferenceURLsT&& value) {
119 m_referenceURLsHasBeenSet = true;
120 m_referenceURLs.emplace_back(std::forward<ReferenceURLsT>(value));
121 return *this;
122 }
124 private:
126
127 Aws::String m_message;
128
129 Aws::Vector<Aws::String> m_details;
130
131 Aws::Vector<Aws::String> m_referenceURLs;
132 bool m_typeHasBeenSet = false;
133 bool m_messageHasBeenSet = false;
134 bool m_detailsHasBeenSet = false;
135 bool m_referenceURLsHasBeenSet = false;
136};
137
138} // namespace Model
139} // namespace LexModelBuildingService
140} // namespace Aws
AWS_LEXMODELBUILDINGSERVICE_API MigrationAlert(Aws::Utils::Json::JsonView jsonValue)
MigrationAlert & WithReferenceURLs(ReferenceURLsT &&value)
MigrationAlert & WithMessage(MessageT &&value)
const Aws::Vector< Aws::String > & GetDetails() const
AWS_LEXMODELBUILDINGSERVICE_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_LEXMODELBUILDINGSERVICE_API MigrationAlert()=default
const Aws::Vector< Aws::String > & GetReferenceURLs() const
MigrationAlert & WithDetails(DetailsT &&value)
MigrationAlert & WithType(MigrationAlertType value)
MigrationAlert & AddDetails(DetailsT &&value)
MigrationAlert & AddReferenceURLs(ReferenceURLsT &&value)
AWS_LEXMODELBUILDINGSERVICE_API MigrationAlert & operator=(Aws::Utils::Json::JsonView jsonValue)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue