AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 const AlternateContactType& GetAlternateContactType() const{ return m_alternateContactType; }
47 inline bool AlternateContactTypeHasBeenSet() const { return m_alternateContactTypeHasBeenSet; }
48 inline void SetAlternateContactType(const AlternateContactType& value) { m_alternateContactTypeHasBeenSet = true; m_alternateContactType = value; }
49 inline void SetAlternateContactType(AlternateContactType&& value) { m_alternateContactTypeHasBeenSet = true; m_alternateContactType = std::move(value); }
53
55
58 inline const Aws::String& GetEmailAddress() const{ return m_emailAddress; }
59 inline bool EmailAddressHasBeenSet() const { return m_emailAddressHasBeenSet; }
60 inline void SetEmailAddress(const Aws::String& value) { m_emailAddressHasBeenSet = true; m_emailAddress = value; }
61 inline void SetEmailAddress(Aws::String&& value) { m_emailAddressHasBeenSet = true; m_emailAddress = std::move(value); }
62 inline void SetEmailAddress(const char* value) { m_emailAddressHasBeenSet = true; m_emailAddress.assign(value); }
63 inline AlternateContact& WithEmailAddress(const Aws::String& value) { SetEmailAddress(value); return *this;}
64 inline AlternateContact& WithEmailAddress(Aws::String&& value) { SetEmailAddress(std::move(value)); return *this;}
65 inline AlternateContact& WithEmailAddress(const char* value) { SetEmailAddress(value); return *this;}
67
69
72 inline const Aws::String& GetName() const{ return m_name; }
73 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
74 inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
75 inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
76 inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
77 inline AlternateContact& WithName(const Aws::String& value) { SetName(value); return *this;}
78 inline AlternateContact& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
79 inline AlternateContact& WithName(const char* value) { SetName(value); return *this;}
81
83
86 inline const Aws::String& GetPhoneNumber() const{ return m_phoneNumber; }
87 inline bool PhoneNumberHasBeenSet() const { return m_phoneNumberHasBeenSet; }
88 inline void SetPhoneNumber(const Aws::String& value) { m_phoneNumberHasBeenSet = true; m_phoneNumber = value; }
89 inline void SetPhoneNumber(Aws::String&& value) { m_phoneNumberHasBeenSet = true; m_phoneNumber = std::move(value); }
90 inline void SetPhoneNumber(const char* value) { m_phoneNumberHasBeenSet = true; m_phoneNumber.assign(value); }
91 inline AlternateContact& WithPhoneNumber(const Aws::String& value) { SetPhoneNumber(value); return *this;}
92 inline AlternateContact& WithPhoneNumber(Aws::String&& value) { SetPhoneNumber(std::move(value)); return *this;}
93 inline AlternateContact& WithPhoneNumber(const char* value) { SetPhoneNumber(value); return *this;}
95
97
100 inline const Aws::String& GetTitle() const{ return m_title; }
101 inline bool TitleHasBeenSet() const { return m_titleHasBeenSet; }
102 inline void SetTitle(const Aws::String& value) { m_titleHasBeenSet = true; m_title = value; }
103 inline void SetTitle(Aws::String&& value) { m_titleHasBeenSet = true; m_title = std::move(value); }
104 inline void SetTitle(const char* value) { m_titleHasBeenSet = true; m_title.assign(value); }
105 inline AlternateContact& WithTitle(const Aws::String& value) { SetTitle(value); return *this;}
106 inline AlternateContact& WithTitle(Aws::String&& value) { SetTitle(std::move(value)); return *this;}
107 inline AlternateContact& WithTitle(const char* value) { SetTitle(value); return *this;}
109 private:
110
111 AlternateContactType m_alternateContactType;
112 bool m_alternateContactTypeHasBeenSet = false;
113
114 Aws::String m_emailAddress;
115 bool m_emailAddressHasBeenSet = false;
116
117 Aws::String m_name;
118 bool m_nameHasBeenSet = false;
119
120 Aws::String m_phoneNumber;
121 bool m_phoneNumberHasBeenSet = false;
122
123 Aws::String m_title;
124 bool m_titleHasBeenSet = false;
125 };
126
127} // namespace Model
128} // namespace Account
129} // namespace Aws
AlternateContact & WithEmailAddress(Aws::String &&value)
AlternateContact & WithTitle(const Aws::String &value)
const AlternateContactType & GetAlternateContactType() const
void SetEmailAddress(Aws::String &&value)
void SetAlternateContactType(const AlternateContactType &value)
void SetPhoneNumber(const Aws::String &value)
AlternateContact & WithName(const Aws::String &value)
AWS_ACCOUNT_API AlternateContact(Aws::Utils::Json::JsonView jsonValue)
AlternateContact & WithName(Aws::String &&value)
AlternateContact & WithPhoneNumber(const char *value)
void SetTitle(const Aws::String &value)
void SetEmailAddress(const Aws::String &value)
AlternateContact & WithPhoneNumber(const Aws::String &value)
AlternateContact & WithAlternateContactType(const AlternateContactType &value)
AlternateContact & WithTitle(Aws::String &&value)
AlternateContact & WithAlternateContactType(AlternateContactType &&value)
AlternateContact & WithEmailAddress(const Aws::String &value)
const Aws::String & GetName() const
void SetAlternateContactType(AlternateContactType &&value)
AlternateContact & WithEmailAddress(const char *value)
void SetName(const Aws::String &value)
const Aws::String & GetPhoneNumber() const
AlternateContact & WithPhoneNumber(Aws::String &&value)
void SetPhoneNumber(Aws::String &&value)
void SetEmailAddress(const char *value)
AlternateContact & WithName(const char *value)
const Aws::String & GetTitle() const
const Aws::String & GetEmailAddress() const
AWS_ACCOUNT_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_ACCOUNT_API AlternateContact & operator=(Aws::Utils::Json::JsonView jsonValue)
AlternateContact & WithTitle(const char *value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue