AWS SDK for C++

AWS SDK for C++ Version 1.11.612

Loading...
Searching...
No Matches
EmergencyContact.h
1
6#pragma once
7#include <aws/shield/Shield_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <utility>
10
11namespace Aws
12{
13namespace Utils
14{
15namespace Json
16{
17 class JsonValue;
18 class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace Shield
22{
23namespace Model
24{
25
34 {
35 public:
36 AWS_SHIELD_API EmergencyContact() = default;
39 AWS_SHIELD_API Aws::Utils::Json::JsonValue Jsonize() const;
40
41
43
46 inline const Aws::String& GetEmailAddress() const { return m_emailAddress; }
47 inline bool EmailAddressHasBeenSet() const { return m_emailAddressHasBeenSet; }
48 template<typename EmailAddressT = Aws::String>
49 void SetEmailAddress(EmailAddressT&& value) { m_emailAddressHasBeenSet = true; m_emailAddress = std::forward<EmailAddressT>(value); }
50 template<typename EmailAddressT = Aws::String>
51 EmergencyContact& WithEmailAddress(EmailAddressT&& value) { SetEmailAddress(std::forward<EmailAddressT>(value)); return *this;}
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) { m_phoneNumberHasBeenSet = true; m_phoneNumber = std::forward<PhoneNumberT>(value); }
62 template<typename PhoneNumberT = Aws::String>
63 EmergencyContact& WithPhoneNumber(PhoneNumberT&& value) { SetPhoneNumber(std::forward<PhoneNumberT>(value)); return *this;}
65
67
70 inline const Aws::String& GetContactNotes() const { return m_contactNotes; }
71 inline bool ContactNotesHasBeenSet() const { return m_contactNotesHasBeenSet; }
72 template<typename ContactNotesT = Aws::String>
73 void SetContactNotes(ContactNotesT&& value) { m_contactNotesHasBeenSet = true; m_contactNotes = std::forward<ContactNotesT>(value); }
74 template<typename ContactNotesT = Aws::String>
75 EmergencyContact& WithContactNotes(ContactNotesT&& value) { SetContactNotes(std::forward<ContactNotesT>(value)); return *this;}
77 private:
78
79 Aws::String m_emailAddress;
80 bool m_emailAddressHasBeenSet = false;
81
82 Aws::String m_phoneNumber;
83 bool m_phoneNumberHasBeenSet = false;
84
85 Aws::String m_contactNotes;
86 bool m_contactNotesHasBeenSet = false;
87 };
88
89} // namespace Model
90} // namespace Shield
91} // 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