AWS SDK for C++

AWS SDK for C++ Version 1.11.899

Loading...
Searching...
No Matches
PolicyEventDetails.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/PolicyEventMetadata.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
30 public:
31 AWS_RESILIENCEHUBV2_API PolicyEventDetails() = default;
32 AWS_RESILIENCEHUBV2_API PolicyEventDetails(Aws::Utils::Json::JsonView jsonValue);
33 AWS_RESILIENCEHUBV2_API PolicyEventDetails& operator=(Aws::Utils::Json::JsonView jsonValue);
34 AWS_RESILIENCEHUBV2_API Aws::Utils::Json::JsonValue Jsonize() const;
35
37
40 inline const Aws::String& GetTitle() const { return m_title; }
41 inline bool TitleHasBeenSet() const { return m_titleHasBeenSet; }
42 template <typename TitleT = Aws::String>
43 void SetTitle(TitleT&& value) {
44 m_titleHasBeenSet = true;
45 m_title = std::forward<TitleT>(value);
46 }
47 template <typename TitleT = Aws::String>
48 PolicyEventDetails& WithTitle(TitleT&& value) {
49 SetTitle(std::forward<TitleT>(value));
50 return *this;
51 }
53
55
58 inline const Aws::String& GetDescription() const { return m_description; }
59 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
60 template <typename DescriptionT = Aws::String>
61 void SetDescription(DescriptionT&& value) {
62 m_descriptionHasBeenSet = true;
63 m_description = std::forward<DescriptionT>(value);
64 }
65 template <typename DescriptionT = Aws::String>
66 PolicyEventDetails& WithDescription(DescriptionT&& value) {
67 SetDescription(std::forward<DescriptionT>(value));
68 return *this;
69 }
71
73
77 inline const PolicyEventMetadata& GetEventMetadata() const { return m_eventMetadata; }
78 inline bool EventMetadataHasBeenSet() const { return m_eventMetadataHasBeenSet; }
79 template <typename EventMetadataT = PolicyEventMetadata>
80 void SetEventMetadata(EventMetadataT&& value) {
81 m_eventMetadataHasBeenSet = true;
82 m_eventMetadata = std::forward<EventMetadataT>(value);
83 }
84 template <typename EventMetadataT = PolicyEventMetadata>
85 PolicyEventDetails& WithEventMetadata(EventMetadataT&& value) {
86 SetEventMetadata(std::forward<EventMetadataT>(value));
87 return *this;
88 }
90 private:
91 Aws::String m_title;
92
93 Aws::String m_description;
94
95 PolicyEventMetadata m_eventMetadata;
96 bool m_titleHasBeenSet = false;
97 bool m_descriptionHasBeenSet = false;
98 bool m_eventMetadataHasBeenSet = false;
99};
100
101} // namespace Model
102} // namespace resiliencehubv2
103} // namespace Aws
AWS_RESILIENCEHUBV2_API PolicyEventDetails(Aws::Utils::Json::JsonView jsonValue)
PolicyEventDetails & WithEventMetadata(EventMetadataT &&value)
const PolicyEventMetadata & GetEventMetadata() const
AWS_RESILIENCEHUBV2_API PolicyEventDetails & operator=(Aws::Utils::Json::JsonView jsonValue)
PolicyEventDetails & WithDescription(DescriptionT &&value)
AWS_RESILIENCEHUBV2_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_RESILIENCEHUBV2_API PolicyEventDetails()=default
PolicyEventDetails & WithTitle(TitleT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue