AWS SDK for C++

AWS SDK for C++ Version 1.11.609

Loading...
Searching...
No Matches
OrganizationEventDetails.h
1
6#pragma once
7#include <aws/health/Health_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/health/model/Event.h>
10#include <aws/core/utils/memory/stl/AWSMap.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 Health
24{
25namespace Model
26{
27
40 {
41 public:
42 AWS_HEALTH_API OrganizationEventDetails() = default;
45 AWS_HEALTH_API Aws::Utils::Json::JsonValue Jsonize() const;
46
47
49
53 inline const Aws::String& GetAwsAccountId() const { return m_awsAccountId; }
54 inline bool AwsAccountIdHasBeenSet() const { return m_awsAccountIdHasBeenSet; }
55 template<typename AwsAccountIdT = Aws::String>
56 void SetAwsAccountId(AwsAccountIdT&& value) { m_awsAccountIdHasBeenSet = true; m_awsAccountId = std::forward<AwsAccountIdT>(value); }
57 template<typename AwsAccountIdT = Aws::String>
58 OrganizationEventDetails& WithAwsAccountId(AwsAccountIdT&& value) { SetAwsAccountId(std::forward<AwsAccountIdT>(value)); return *this;}
60
62
63 inline const Event& GetEvent() const { return m_event; }
64 inline bool EventHasBeenSet() const { return m_eventHasBeenSet; }
65 template<typename EventT = Event>
66 void SetEvent(EventT&& value) { m_eventHasBeenSet = true; m_event = std::forward<EventT>(value); }
67 template<typename EventT = Event>
68 OrganizationEventDetails& WithEvent(EventT&& value) { SetEvent(std::forward<EventT>(value)); return *this;}
70
72
73 inline const Aws::String& GetEventDescription() const { return m_eventDescription; }
74 inline bool EventDescriptionHasBeenSet() const { return m_eventDescriptionHasBeenSet; }
75 template<typename EventDescriptionT = Aws::String>
76 void SetEventDescription(EventDescriptionT&& value) { m_eventDescriptionHasBeenSet = true; m_eventDescription = std::forward<EventDescriptionT>(value); }
77 template<typename EventDescriptionT = Aws::String>
78 OrganizationEventDetails& WithEventDescription(EventDescriptionT&& value) { SetEventDescription(std::forward<EventDescriptionT>(value)); return *this;}
80
82
85 inline const Aws::Map<Aws::String, Aws::String>& GetEventMetadata() const { return m_eventMetadata; }
86 inline bool EventMetadataHasBeenSet() const { return m_eventMetadataHasBeenSet; }
87 template<typename EventMetadataT = Aws::Map<Aws::String, Aws::String>>
88 void SetEventMetadata(EventMetadataT&& value) { m_eventMetadataHasBeenSet = true; m_eventMetadata = std::forward<EventMetadataT>(value); }
89 template<typename EventMetadataT = Aws::Map<Aws::String, Aws::String>>
90 OrganizationEventDetails& WithEventMetadata(EventMetadataT&& value) { SetEventMetadata(std::forward<EventMetadataT>(value)); return *this;}
91 template<typename EventMetadataKeyT = Aws::String, typename EventMetadataValueT = Aws::String>
92 OrganizationEventDetails& AddEventMetadata(EventMetadataKeyT&& key, EventMetadataValueT&& value) {
93 m_eventMetadataHasBeenSet = true; m_eventMetadata.emplace(std::forward<EventMetadataKeyT>(key), std::forward<EventMetadataValueT>(value)); return *this;
94 }
96 private:
97
98 Aws::String m_awsAccountId;
99 bool m_awsAccountIdHasBeenSet = false;
100
101 Event m_event;
102 bool m_eventHasBeenSet = false;
103
104 Aws::String m_eventDescription;
105 bool m_eventDescriptionHasBeenSet = false;
106
108 bool m_eventMetadataHasBeenSet = false;
109 };
110
111} // namespace Model
112} // namespace Health
113} // namespace Aws
OrganizationEventDetails & WithEvent(EventT &&value)
AWS_HEALTH_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_HEALTH_API OrganizationEventDetails & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_HEALTH_API OrganizationEventDetails(Aws::Utils::Json::JsonView jsonValue)
AWS_HEALTH_API OrganizationEventDetails()=default
OrganizationEventDetails & WithEventDescription(EventDescriptionT &&value)
const Aws::Map< Aws::String, Aws::String > & GetEventMetadata() const
OrganizationEventDetails & WithEventMetadata(EventMetadataT &&value)
OrganizationEventDetails & WithAwsAccountId(AwsAccountIdT &&value)
OrganizationEventDetails & AddEventMetadata(EventMetadataKeyT &&key, EventMetadataValueT &&value)
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue