AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 const MigrationAlertType& GetType() const{ return m_type; }
53 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
54 inline void SetType(const MigrationAlertType& value) { m_typeHasBeenSet = true; m_type = value; }
55 inline void SetType(MigrationAlertType&& value) { m_typeHasBeenSet = true; m_type = std::move(value); }
56 inline MigrationAlert& WithType(const MigrationAlertType& value) { SetType(value); return *this;}
57 inline MigrationAlert& WithType(MigrationAlertType&& value) { SetType(std::move(value)); return *this;}
59
61
64 inline const Aws::String& GetMessage() const{ return m_message; }
65 inline bool MessageHasBeenSet() const { return m_messageHasBeenSet; }
66 inline void SetMessage(const Aws::String& value) { m_messageHasBeenSet = true; m_message = value; }
67 inline void SetMessage(Aws::String&& value) { m_messageHasBeenSet = true; m_message = std::move(value); }
68 inline void SetMessage(const char* value) { m_messageHasBeenSet = true; m_message.assign(value); }
69 inline MigrationAlert& WithMessage(const Aws::String& value) { SetMessage(value); return *this;}
70 inline MigrationAlert& WithMessage(Aws::String&& value) { SetMessage(std::move(value)); return *this;}
71 inline MigrationAlert& WithMessage(const char* value) { SetMessage(value); return *this;}
73
75
78 inline const Aws::Vector<Aws::String>& GetDetails() const{ return m_details; }
79 inline bool DetailsHasBeenSet() const { return m_detailsHasBeenSet; }
80 inline void SetDetails(const Aws::Vector<Aws::String>& value) { m_detailsHasBeenSet = true; m_details = value; }
81 inline void SetDetails(Aws::Vector<Aws::String>&& value) { m_detailsHasBeenSet = true; m_details = std::move(value); }
82 inline MigrationAlert& WithDetails(const Aws::Vector<Aws::String>& value) { SetDetails(value); return *this;}
83 inline MigrationAlert& WithDetails(Aws::Vector<Aws::String>&& value) { SetDetails(std::move(value)); return *this;}
84 inline MigrationAlert& AddDetails(const Aws::String& value) { m_detailsHasBeenSet = true; m_details.push_back(value); return *this; }
85 inline MigrationAlert& AddDetails(Aws::String&& value) { m_detailsHasBeenSet = true; m_details.push_back(std::move(value)); return *this; }
86 inline MigrationAlert& AddDetails(const char* value) { m_detailsHasBeenSet = true; m_details.push_back(value); return *this; }
88
90
94 inline const Aws::Vector<Aws::String>& GetReferenceURLs() const{ return m_referenceURLs; }
95 inline bool ReferenceURLsHasBeenSet() const { return m_referenceURLsHasBeenSet; }
96 inline void SetReferenceURLs(const Aws::Vector<Aws::String>& value) { m_referenceURLsHasBeenSet = true; m_referenceURLs = value; }
97 inline void SetReferenceURLs(Aws::Vector<Aws::String>&& value) { m_referenceURLsHasBeenSet = true; m_referenceURLs = std::move(value); }
98 inline MigrationAlert& WithReferenceURLs(const Aws::Vector<Aws::String>& value) { SetReferenceURLs(value); return *this;}
99 inline MigrationAlert& WithReferenceURLs(Aws::Vector<Aws::String>&& value) { SetReferenceURLs(std::move(value)); return *this;}
100 inline MigrationAlert& AddReferenceURLs(const Aws::String& value) { m_referenceURLsHasBeenSet = true; m_referenceURLs.push_back(value); return *this; }
101 inline MigrationAlert& AddReferenceURLs(Aws::String&& value) { m_referenceURLsHasBeenSet = true; m_referenceURLs.push_back(std::move(value)); return *this; }
102 inline MigrationAlert& AddReferenceURLs(const char* value) { m_referenceURLsHasBeenSet = true; m_referenceURLs.push_back(value); return *this; }
104 private:
105
106 MigrationAlertType m_type;
107 bool m_typeHasBeenSet = false;
108
109 Aws::String m_message;
110 bool m_messageHasBeenSet = false;
111
112 Aws::Vector<Aws::String> m_details;
113 bool m_detailsHasBeenSet = false;
114
115 Aws::Vector<Aws::String> m_referenceURLs;
116 bool m_referenceURLsHasBeenSet = false;
117 };
118
119} // namespace Model
120} // namespace LexModelBuildingService
121} // namespace Aws
void SetType(const MigrationAlertType &value)
AWS_LEXMODELBUILDINGSERVICE_API MigrationAlert(Aws::Utils::Json::JsonView jsonValue)
MigrationAlert & AddDetails(const char *value)
MigrationAlert & WithDetails(const Aws::Vector< Aws::String > &value)
const Aws::Vector< Aws::String > & GetDetails() const
AWS_LEXMODELBUILDINGSERVICE_API Aws::Utils::Json::JsonValue Jsonize() const
const MigrationAlertType & GetType() const
MigrationAlert & WithMessage(const Aws::String &value)
MigrationAlert & AddDetails(const Aws::String &value)
MigrationAlert & AddReferenceURLs(const Aws::String &value)
void SetReferenceURLs(Aws::Vector< Aws::String > &&value)
MigrationAlert & AddReferenceURLs(const char *value)
void SetDetails(Aws::Vector< Aws::String > &&value)
const Aws::Vector< Aws::String > & GetReferenceURLs() const
void SetReferenceURLs(const Aws::Vector< Aws::String > &value)
MigrationAlert & AddReferenceURLs(Aws::String &&value)
MigrationAlert & WithMessage(const char *value)
MigrationAlert & WithType(MigrationAlertType &&value)
MigrationAlert & WithMessage(Aws::String &&value)
MigrationAlert & WithType(const MigrationAlertType &value)
void SetDetails(const Aws::Vector< Aws::String > &value)
AWS_LEXMODELBUILDINGSERVICE_API MigrationAlert()
MigrationAlert & WithDetails(Aws::Vector< Aws::String > &&value)
MigrationAlert & WithReferenceURLs(Aws::Vector< Aws::String > &&value)
MigrationAlert & WithReferenceURLs(const Aws::Vector< Aws::String > &value)
MigrationAlert & AddDetails(Aws::String &&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