AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
MigrationAlert.h
1
6#pragma once
7#include <aws/lex-models/LexModelBuildingService_EXPORTS.h>
8#include <aws/lex-models/model/MigrationAlertType.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <utility>
12
13namespace Aws
14{
15namespace Utils
16{
17namespace Json
18{
19 class JsonValue;
20 class JsonView;
21} // namespace Json
22} // namespace Utils
23namespace LexModelBuildingService
24{
25namespace Model
26{
27
36 {
37 public:
38 AWS_LEXMODELBUILDINGSERVICE_API MigrationAlert() = default;
39 AWS_LEXMODELBUILDINGSERVICE_API MigrationAlert(Aws::Utils::Json::JsonView jsonValue);
40 AWS_LEXMODELBUILDINGSERVICE_API MigrationAlert& operator=(Aws::Utils::Json::JsonView jsonValue);
41 AWS_LEXMODELBUILDINGSERVICE_API Aws::Utils::Json::JsonValue Jsonize() const;
42
43
45
52 inline MigrationAlertType GetType() const { return m_type; }
53 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
54 inline void SetType(MigrationAlertType value) { m_typeHasBeenSet = true; m_type = value; }
55 inline MigrationAlert& WithType(MigrationAlertType value) { SetType(value); return *this;}
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) { m_messageHasBeenSet = true; m_message = std::forward<MessageT>(value); }
66 template<typename MessageT = Aws::String>
67 MigrationAlert& WithMessage(MessageT&& value) { SetMessage(std::forward<MessageT>(value)); return *this;}
69
71
74 inline const Aws::Vector<Aws::String>& GetDetails() const { return m_details; }
75 inline bool DetailsHasBeenSet() const { return m_detailsHasBeenSet; }
76 template<typename DetailsT = Aws::Vector<Aws::String>>
77 void SetDetails(DetailsT&& value) { m_detailsHasBeenSet = true; m_details = std::forward<DetailsT>(value); }
78 template<typename DetailsT = Aws::Vector<Aws::String>>
79 MigrationAlert& WithDetails(DetailsT&& value) { SetDetails(std::forward<DetailsT>(value)); return *this;}
80 template<typename DetailsT = Aws::String>
81 MigrationAlert& AddDetails(DetailsT&& value) { m_detailsHasBeenSet = true; m_details.emplace_back(std::forward<DetailsT>(value)); return *this; }
83
85
89 inline const Aws::Vector<Aws::String>& GetReferenceURLs() const { return m_referenceURLs; }
90 inline bool ReferenceURLsHasBeenSet() const { return m_referenceURLsHasBeenSet; }
91 template<typename ReferenceURLsT = Aws::Vector<Aws::String>>
92 void SetReferenceURLs(ReferenceURLsT&& value) { m_referenceURLsHasBeenSet = true; m_referenceURLs = std::forward<ReferenceURLsT>(value); }
93 template<typename ReferenceURLsT = Aws::Vector<Aws::String>>
94 MigrationAlert& WithReferenceURLs(ReferenceURLsT&& value) { SetReferenceURLs(std::forward<ReferenceURLsT>(value)); return *this;}
95 template<typename ReferenceURLsT = Aws::String>
96 MigrationAlert& AddReferenceURLs(ReferenceURLsT&& value) { m_referenceURLsHasBeenSet = true; m_referenceURLs.emplace_back(std::forward<ReferenceURLsT>(value)); return *this; }
98 private:
99
101 bool m_typeHasBeenSet = false;
102
103 Aws::String m_message;
104 bool m_messageHasBeenSet = false;
105
106 Aws::Vector<Aws::String> m_details;
107 bool m_detailsHasBeenSet = false;
108
109 Aws::Vector<Aws::String> m_referenceURLs;
110 bool m_referenceURLsHasBeenSet = false;
111 };
112
113} // namespace Model
114} // namespace LexModelBuildingService
115} // 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