AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetAwsAccountId(const Aws::String& value) { m_awsAccountIdHasBeenSet = true; m_awsAccountId = value; }
56 inline void SetAwsAccountId(Aws::String&& value) { m_awsAccountIdHasBeenSet = true; m_awsAccountId = std::move(value); }
57 inline void SetAwsAccountId(const char* value) { m_awsAccountIdHasBeenSet = true; m_awsAccountId.assign(value); }
58 inline OrganizationEventDetails& WithAwsAccountId(const Aws::String& value) { SetAwsAccountId(value); return *this;}
59 inline OrganizationEventDetails& WithAwsAccountId(Aws::String&& value) { SetAwsAccountId(std::move(value)); return *this;}
60 inline OrganizationEventDetails& WithAwsAccountId(const char* value) { SetAwsAccountId(value); return *this;}
62
64
65 inline const Event& GetEvent() const{ return m_event; }
66 inline bool EventHasBeenSet() const { return m_eventHasBeenSet; }
67 inline void SetEvent(const Event& value) { m_eventHasBeenSet = true; m_event = value; }
68 inline void SetEvent(Event&& value) { m_eventHasBeenSet = true; m_event = std::move(value); }
69 inline OrganizationEventDetails& WithEvent(const Event& value) { SetEvent(value); return *this;}
70 inline OrganizationEventDetails& WithEvent(Event&& value) { SetEvent(std::move(value)); return *this;}
72
74
75 inline const Aws::String& GetEventDescription() const{ return m_eventDescription; }
76 inline bool EventDescriptionHasBeenSet() const { return m_eventDescriptionHasBeenSet; }
77 inline void SetEventDescription(const Aws::String& value) { m_eventDescriptionHasBeenSet = true; m_eventDescription = value; }
78 inline void SetEventDescription(Aws::String&& value) { m_eventDescriptionHasBeenSet = true; m_eventDescription = std::move(value); }
79 inline void SetEventDescription(const char* value) { m_eventDescriptionHasBeenSet = true; m_eventDescription.assign(value); }
81 inline OrganizationEventDetails& WithEventDescription(Aws::String&& value) { SetEventDescription(std::move(value)); return *this;}
82 inline OrganizationEventDetails& WithEventDescription(const char* value) { SetEventDescription(value); return *this;}
84
86
89 inline const Aws::Map<Aws::String, Aws::String>& GetEventMetadata() const{ return m_eventMetadata; }
90 inline bool EventMetadataHasBeenSet() const { return m_eventMetadataHasBeenSet; }
91 inline void SetEventMetadata(const Aws::Map<Aws::String, Aws::String>& value) { m_eventMetadataHasBeenSet = true; m_eventMetadata = value; }
92 inline void SetEventMetadata(Aws::Map<Aws::String, Aws::String>&& value) { m_eventMetadataHasBeenSet = true; m_eventMetadata = std::move(value); }
95 inline OrganizationEventDetails& AddEventMetadata(const Aws::String& key, const Aws::String& value) { m_eventMetadataHasBeenSet = true; m_eventMetadata.emplace(key, value); return *this; }
96 inline OrganizationEventDetails& AddEventMetadata(Aws::String&& key, const Aws::String& value) { m_eventMetadataHasBeenSet = true; m_eventMetadata.emplace(std::move(key), value); return *this; }
97 inline OrganizationEventDetails& AddEventMetadata(const Aws::String& key, Aws::String&& value) { m_eventMetadataHasBeenSet = true; m_eventMetadata.emplace(key, std::move(value)); return *this; }
98 inline OrganizationEventDetails& AddEventMetadata(Aws::String&& key, Aws::String&& value) { m_eventMetadataHasBeenSet = true; m_eventMetadata.emplace(std::move(key), std::move(value)); return *this; }
99 inline OrganizationEventDetails& AddEventMetadata(const char* key, Aws::String&& value) { m_eventMetadataHasBeenSet = true; m_eventMetadata.emplace(key, std::move(value)); return *this; }
100 inline OrganizationEventDetails& AddEventMetadata(Aws::String&& key, const char* value) { m_eventMetadataHasBeenSet = true; m_eventMetadata.emplace(std::move(key), value); return *this; }
101 inline OrganizationEventDetails& AddEventMetadata(const char* key, const char* value) { m_eventMetadataHasBeenSet = true; m_eventMetadata.emplace(key, value); return *this; }
103 private:
104
105 Aws::String m_awsAccountId;
106 bool m_awsAccountIdHasBeenSet = false;
107
108 Event m_event;
109 bool m_eventHasBeenSet = false;
110
111 Aws::String m_eventDescription;
112 bool m_eventDescriptionHasBeenSet = false;
113
115 bool m_eventMetadataHasBeenSet = false;
116 };
117
118} // namespace Model
119} // namespace Health
120} // namespace Aws
OrganizationEventDetails & WithEventMetadata(const Aws::Map< Aws::String, Aws::String > &value)
OrganizationEventDetails & AddEventMetadata(const char *key, Aws::String &&value)
OrganizationEventDetails & WithEventMetadata(Aws::Map< Aws::String, Aws::String > &&value)
void SetEventMetadata(const Aws::Map< Aws::String, Aws::String > &value)
void SetEventMetadata(Aws::Map< Aws::String, Aws::String > &&value)
OrganizationEventDetails & WithEvent(const Event &value)
OrganizationEventDetails & WithEventDescription(Aws::String &&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)
OrganizationEventDetails & AddEventMetadata(const Aws::String &key, Aws::String &&value)
OrganizationEventDetails & AddEventMetadata(const char *key, const char *value)
OrganizationEventDetails & WithEventDescription(const Aws::String &value)
OrganizationEventDetails & AddEventMetadata(Aws::String &&key, const Aws::String &value)
const Aws::Map< Aws::String, Aws::String > & GetEventMetadata() const
OrganizationEventDetails & AddEventMetadata(Aws::String &&key, Aws::String &&value)
OrganizationEventDetails & WithAwsAccountId(const char *value)
OrganizationEventDetails & WithEventDescription(const char *value)
OrganizationEventDetails & WithAwsAccountId(const Aws::String &value)
OrganizationEventDetails & WithEvent(Event &&value)
OrganizationEventDetails & AddEventMetadata(const Aws::String &key, const Aws::String &value)
OrganizationEventDetails & WithAwsAccountId(Aws::String &&value)
OrganizationEventDetails & AddEventMetadata(Aws::String &&key, const char *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