AWS SDK for C++

AWS SDK for C++ Version 1.11.644

Loading...
Searching...
No Matches
ContactPreference.h
1
6#pragma once
7#include <aws/customer-profiles/CustomerProfiles_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/customer-profiles/model/ContactType.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 CustomerProfiles
23{
24namespace Model
25{
26
33 {
34 public:
35 AWS_CUSTOMERPROFILES_API ContactPreference() = default;
36 AWS_CUSTOMERPROFILES_API ContactPreference(Aws::Utils::Json::JsonView jsonValue);
37 AWS_CUSTOMERPROFILES_API ContactPreference& operator=(Aws::Utils::Json::JsonView jsonValue);
38 AWS_CUSTOMERPROFILES_API Aws::Utils::Json::JsonValue Jsonize() const;
39
40
42
45 inline const Aws::String& GetKeyName() const { return m_keyName; }
46 inline bool KeyNameHasBeenSet() const { return m_keyNameHasBeenSet; }
47 template<typename KeyNameT = Aws::String>
48 void SetKeyName(KeyNameT&& value) { m_keyNameHasBeenSet = true; m_keyName = std::forward<KeyNameT>(value); }
49 template<typename KeyNameT = Aws::String>
50 ContactPreference& WithKeyName(KeyNameT&& value) { SetKeyName(std::forward<KeyNameT>(value)); return *this;}
52
54
57 inline const Aws::String& GetKeyValue() const { return m_keyValue; }
58 inline bool KeyValueHasBeenSet() const { return m_keyValueHasBeenSet; }
59 template<typename KeyValueT = Aws::String>
60 void SetKeyValue(KeyValueT&& value) { m_keyValueHasBeenSet = true; m_keyValue = std::forward<KeyValueT>(value); }
61 template<typename KeyValueT = Aws::String>
62 ContactPreference& WithKeyValue(KeyValueT&& value) { SetKeyValue(std::forward<KeyValueT>(value)); return *this;}
64
66
69 inline const Aws::String& GetProfileId() const { return m_profileId; }
70 inline bool ProfileIdHasBeenSet() const { return m_profileIdHasBeenSet; }
71 template<typename ProfileIdT = Aws::String>
72 void SetProfileId(ProfileIdT&& value) { m_profileIdHasBeenSet = true; m_profileId = std::forward<ProfileIdT>(value); }
73 template<typename ProfileIdT = Aws::String>
74 ContactPreference& WithProfileId(ProfileIdT&& value) { SetProfileId(std::forward<ProfileIdT>(value)); return *this;}
76
78
82 inline ContactType GetContactType() const { return m_contactType; }
83 inline bool ContactTypeHasBeenSet() const { return m_contactTypeHasBeenSet; }
84 inline void SetContactType(ContactType value) { m_contactTypeHasBeenSet = true; m_contactType = value; }
85 inline ContactPreference& WithContactType(ContactType value) { SetContactType(value); return *this;}
87 private:
88
89 Aws::String m_keyName;
90 bool m_keyNameHasBeenSet = false;
91
92 Aws::String m_keyValue;
93 bool m_keyValueHasBeenSet = false;
94
95 Aws::String m_profileId;
96 bool m_profileIdHasBeenSet = false;
97
98 ContactType m_contactType{ContactType::NOT_SET};
99 bool m_contactTypeHasBeenSet = false;
100 };
101
102} // namespace Model
103} // namespace CustomerProfiles
104} // namespace Aws
ContactPreference & WithProfileId(ProfileIdT &&value)
ContactPreference & WithKeyName(KeyNameT &&value)
ContactPreference & WithContactType(ContactType value)
AWS_CUSTOMERPROFILES_API ContactPreference(Aws::Utils::Json::JsonView jsonValue)
ContactPreference & WithKeyValue(KeyValueT &&value)
AWS_CUSTOMERPROFILES_API ContactPreference & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_CUSTOMERPROFILES_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_CUSTOMERPROFILES_API ContactPreference()=default
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue