AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
AlternateContact.h
1
6#pragma once
7#include <aws/account/Account_EXPORTS.h>
8#include <aws/account/model/AlternateContactType.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <utility>
11
12namespace Aws
13{
14namespace Utils
15{
16namespace Json
17{
18 class JsonValue;
19 class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace Account
23{
24namespace Model
25{
26
34 {
35 public:
36 AWS_ACCOUNT_API AlternateContact() = default;
37 AWS_ACCOUNT_API AlternateContact(Aws::Utils::Json::JsonView jsonValue);
39 AWS_ACCOUNT_API Aws::Utils::Json::JsonValue Jsonize() const;
40
41
43
46 inline AlternateContactType GetAlternateContactType() const { return m_alternateContactType; }
47 inline bool AlternateContactTypeHasBeenSet() const { return m_alternateContactTypeHasBeenSet; }
48 inline void SetAlternateContactType(AlternateContactType value) { m_alternateContactTypeHasBeenSet = true; m_alternateContactType = value; }
51
53
56 inline const Aws::String& GetEmailAddress() const { return m_emailAddress; }
57 inline bool EmailAddressHasBeenSet() const { return m_emailAddressHasBeenSet; }
58 template<typename EmailAddressT = Aws::String>
59 void SetEmailAddress(EmailAddressT&& value) { m_emailAddressHasBeenSet = true; m_emailAddress = std::forward<EmailAddressT>(value); }
60 template<typename EmailAddressT = Aws::String>
61 AlternateContact& WithEmailAddress(EmailAddressT&& value) { SetEmailAddress(std::forward<EmailAddressT>(value)); return *this;}
63
65
68 inline const Aws::String& GetName() const { return m_name; }
69 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
70 template<typename NameT = Aws::String>
71 void SetName(NameT&& value) { m_nameHasBeenSet = true; m_name = std::forward<NameT>(value); }
72 template<typename NameT = Aws::String>
73 AlternateContact& WithName(NameT&& value) { SetName(std::forward<NameT>(value)); return *this;}
75
77
80 inline const Aws::String& GetPhoneNumber() const { return m_phoneNumber; }
81 inline bool PhoneNumberHasBeenSet() const { return m_phoneNumberHasBeenSet; }
82 template<typename PhoneNumberT = Aws::String>
83 void SetPhoneNumber(PhoneNumberT&& value) { m_phoneNumberHasBeenSet = true; m_phoneNumber = std::forward<PhoneNumberT>(value); }
84 template<typename PhoneNumberT = Aws::String>
85 AlternateContact& WithPhoneNumber(PhoneNumberT&& value) { SetPhoneNumber(std::forward<PhoneNumberT>(value)); return *this;}
87
89
92 inline const Aws::String& GetTitle() const { return m_title; }
93 inline bool TitleHasBeenSet() const { return m_titleHasBeenSet; }
94 template<typename TitleT = Aws::String>
95 void SetTitle(TitleT&& value) { m_titleHasBeenSet = true; m_title = std::forward<TitleT>(value); }
96 template<typename TitleT = Aws::String>
97 AlternateContact& WithTitle(TitleT&& value) { SetTitle(std::forward<TitleT>(value)); return *this;}
99 private:
100
102 bool m_alternateContactTypeHasBeenSet = false;
103
104 Aws::String m_emailAddress;
105 bool m_emailAddressHasBeenSet = false;
106
107 Aws::String m_name;
108 bool m_nameHasBeenSet = false;
109
110 Aws::String m_phoneNumber;
111 bool m_phoneNumberHasBeenSet = false;
112
113 Aws::String m_title;
114 bool m_titleHasBeenSet = false;
115 };
116
117} // namespace Model
118} // namespace Account
119} // namespace Aws
AlternateContactType GetAlternateContactType() const
void SetEmailAddress(EmailAddressT &&value)
AWS_ACCOUNT_API AlternateContact(Aws::Utils::Json::JsonView jsonValue)
void SetAlternateContactType(AlternateContactType value)
AlternateContact & WithPhoneNumber(PhoneNumberT &&value)
AlternateContact & WithName(NameT &&value)
AWS_ACCOUNT_API AlternateContact()=default
const Aws::String & GetName() const
const Aws::String & GetPhoneNumber() const
AlternateContact & WithAlternateContactType(AlternateContactType value)
const Aws::String & GetTitle() const
const Aws::String & GetEmailAddress() const
AlternateContact & WithTitle(TitleT &&value)
AWS_ACCOUNT_API Aws::Utils::Json::JsonValue Jsonize() const
AlternateContact & WithEmailAddress(EmailAddressT &&value)
AWS_ACCOUNT_API AlternateContact & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetPhoneNumber(PhoneNumberT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue