AWS SDK for C++

AWS SDK for C++ Version 1.11.819

Loading...
Searching...
No Matches
SystemEventDetails.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/resiliencehubv2/Resiliencehubv2_EXPORTS.h>
9#include <aws/resiliencehubv2/model/SystemEventMetadata.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace resiliencehubv2 {
21namespace Model {
22
29 public:
30 AWS_RESILIENCEHUBV2_API SystemEventDetails() = default;
31 AWS_RESILIENCEHUBV2_API SystemEventDetails(Aws::Utils::Json::JsonView jsonValue);
32 AWS_RESILIENCEHUBV2_API SystemEventDetails& operator=(Aws::Utils::Json::JsonView jsonValue);
33 AWS_RESILIENCEHUBV2_API Aws::Utils::Json::JsonValue Jsonize() const;
34
36
39 inline const Aws::String& GetTitle() const { return m_title; }
40 inline bool TitleHasBeenSet() const { return m_titleHasBeenSet; }
41 template <typename TitleT = Aws::String>
42 void SetTitle(TitleT&& value) {
43 m_titleHasBeenSet = true;
44 m_title = std::forward<TitleT>(value);
45 }
46 template <typename TitleT = Aws::String>
47 SystemEventDetails& WithTitle(TitleT&& value) {
48 SetTitle(std::forward<TitleT>(value));
49 return *this;
50 }
52
54
57 inline const Aws::String& GetDescription() const { return m_description; }
58 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
59 template <typename DescriptionT = Aws::String>
60 void SetDescription(DescriptionT&& value) {
61 m_descriptionHasBeenSet = true;
62 m_description = std::forward<DescriptionT>(value);
63 }
64 template <typename DescriptionT = Aws::String>
65 SystemEventDetails& WithDescription(DescriptionT&& value) {
66 SetDescription(std::forward<DescriptionT>(value));
67 return *this;
68 }
70
72
73 inline const SystemEventMetadata& GetEventMetadata() const { return m_eventMetadata; }
74 inline bool EventMetadataHasBeenSet() const { return m_eventMetadataHasBeenSet; }
75 template <typename EventMetadataT = SystemEventMetadata>
76 void SetEventMetadata(EventMetadataT&& value) {
77 m_eventMetadataHasBeenSet = true;
78 m_eventMetadata = std::forward<EventMetadataT>(value);
79 }
80 template <typename EventMetadataT = SystemEventMetadata>
81 SystemEventDetails& WithEventMetadata(EventMetadataT&& value) {
82 SetEventMetadata(std::forward<EventMetadataT>(value));
83 return *this;
84 }
86 private:
87 Aws::String m_title;
88
89 Aws::String m_description;
90
91 SystemEventMetadata m_eventMetadata;
92 bool m_titleHasBeenSet = false;
93 bool m_descriptionHasBeenSet = false;
94 bool m_eventMetadataHasBeenSet = false;
95};
96
97} // namespace Model
98} // namespace resiliencehubv2
99} // namespace Aws
AWS_RESILIENCEHUBV2_API SystemEventDetails & operator=(Aws::Utils::Json::JsonView jsonValue)
SystemEventDetails & WithDescription(DescriptionT &&value)
AWS_RESILIENCEHUBV2_API Aws::Utils::Json::JsonValue Jsonize() const
const SystemEventMetadata & GetEventMetadata() const
AWS_RESILIENCEHUBV2_API SystemEventDetails(Aws::Utils::Json::JsonView jsonValue)
SystemEventDetails & WithTitle(TitleT &&value)
SystemEventDetails & WithEventMetadata(EventMetadataT &&value)
AWS_RESILIENCEHUBV2_API SystemEventDetails()=default
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue