AWS SDK for C++

AWS SDK for C++ Version 1.11.716

Loading...
Searching...
No Matches
EmergencyContact.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/shield/Shield_EXPORTS.h>
9
10#include <utility>
11
12namespace Aws {
13namespace Utils {
14namespace Json {
15class JsonValue;
16class JsonView;
17} // namespace Json
18} // namespace Utils
19namespace Shield {
20namespace Model {
21
30 public:
31 AWS_SHIELD_API EmergencyContact() = default;
34 AWS_SHIELD_API Aws::Utils::Json::JsonValue Jsonize() const;
35
37
40 inline const Aws::String& GetEmailAddress() const { return m_emailAddress; }
41 inline bool EmailAddressHasBeenSet() const { return m_emailAddressHasBeenSet; }
42 template <typename EmailAddressT = Aws::String>
43 void SetEmailAddress(EmailAddressT&& value) {
44 m_emailAddressHasBeenSet = true;
45 m_emailAddress = std::forward<EmailAddressT>(value);
46 }
47 template <typename EmailAddressT = Aws::String>
48 EmergencyContact& WithEmailAddress(EmailAddressT&& value) {
49 SetEmailAddress(std::forward<EmailAddressT>(value));
50 return *this;
51 }
53
55
58 inline const Aws::String& GetPhoneNumber() const { return m_phoneNumber; }
59 inline bool PhoneNumberHasBeenSet() const { return m_phoneNumberHasBeenSet; }
60 template <typename PhoneNumberT = Aws::String>
61 void SetPhoneNumber(PhoneNumberT&& value) {
62 m_phoneNumberHasBeenSet = true;
63 m_phoneNumber = std::forward<PhoneNumberT>(value);
64 }
65 template <typename PhoneNumberT = Aws::String>
66 EmergencyContact& WithPhoneNumber(PhoneNumberT&& value) {
67 SetPhoneNumber(std::forward<PhoneNumberT>(value));
68 return *this;
69 }
71
73
76 inline const Aws::String& GetContactNotes() const { return m_contactNotes; }
77 inline bool ContactNotesHasBeenSet() const { return m_contactNotesHasBeenSet; }
78 template <typename ContactNotesT = Aws::String>
79 void SetContactNotes(ContactNotesT&& value) {
80 m_contactNotesHasBeenSet = true;
81 m_contactNotes = std::forward<ContactNotesT>(value);
82 }
83 template <typename ContactNotesT = Aws::String>
84 EmergencyContact& WithContactNotes(ContactNotesT&& value) {
85 SetContactNotes(std::forward<ContactNotesT>(value));
86 return *this;
87 }
89 private:
90 Aws::String m_emailAddress;
91
92 Aws::String m_phoneNumber;
93
94 Aws::String m_contactNotes;
95 bool m_emailAddressHasBeenSet = false;
96 bool m_phoneNumberHasBeenSet = false;
97 bool m_contactNotesHasBeenSet = false;
98};
99
100} // namespace Model
101} // namespace Shield
102} // namespace Aws
void SetEmailAddress(EmailAddressT &&value)
const Aws::String & GetEmailAddress() const
const Aws::String & GetPhoneNumber() const
AWS_SHIELD_API EmergencyContact()=default
AWS_SHIELD_API EmergencyContact(Aws::Utils::Json::JsonView jsonValue)
void SetPhoneNumber(PhoneNumberT &&value)
void SetContactNotes(ContactNotesT &&value)
AWS_SHIELD_API Aws::Utils::Json::JsonValue Jsonize() const
EmergencyContact & WithEmailAddress(EmailAddressT &&value)
EmergencyContact & WithContactNotes(ContactNotesT &&value)
const Aws::String & GetContactNotes() const
EmergencyContact & WithPhoneNumber(PhoneNumberT &&value)
AWS_SHIELD_API EmergencyContact & operator=(Aws::Utils::Json::JsonView jsonValue)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue