AWS SDK for C++

AWS SDK for C++ Version 1.11.685

Loading...
Searching...
No Matches
AddProfileKeyRequest.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/customer-profiles/CustomerProfilesRequest.h>
10#include <aws/customer-profiles/CustomerProfiles_EXPORTS.h>
11
12#include <utility>
13
14namespace Aws {
15namespace CustomerProfiles {
16namespace Model {
17
21 public:
22 AWS_CUSTOMERPROFILES_API AddProfileKeyRequest() = default;
23
24 // Service request name is the Operation name which will send this request out,
25 // each operation should has unique request name, so that we can get operation's name from this request.
26 // Note: this is not true for response, multiple operations may have the same response name,
27 // so we can not get operation's name from response.
28 inline virtual const char* GetServiceRequestName() const override { return "AddProfileKey"; }
29
30 AWS_CUSTOMERPROFILES_API Aws::String SerializePayload() const override;
31
33
36 inline const Aws::String& GetProfileId() const { return m_profileId; }
37 inline bool ProfileIdHasBeenSet() const { return m_profileIdHasBeenSet; }
38 template <typename ProfileIdT = Aws::String>
39 void SetProfileId(ProfileIdT&& value) {
40 m_profileIdHasBeenSet = true;
41 m_profileId = std::forward<ProfileIdT>(value);
42 }
43 template <typename ProfileIdT = Aws::String>
44 AddProfileKeyRequest& WithProfileId(ProfileIdT&& value) {
45 SetProfileId(std::forward<ProfileIdT>(value));
46 return *this;
47 }
49
51
59 inline const Aws::String& GetKeyName() const { return m_keyName; }
60 inline bool KeyNameHasBeenSet() const { return m_keyNameHasBeenSet; }
61 template <typename KeyNameT = Aws::String>
62 void SetKeyName(KeyNameT&& value) {
63 m_keyNameHasBeenSet = true;
64 m_keyName = std::forward<KeyNameT>(value);
65 }
66 template <typename KeyNameT = Aws::String>
67 AddProfileKeyRequest& WithKeyName(KeyNameT&& value) {
68 SetKeyName(std::forward<KeyNameT>(value));
69 return *this;
70 }
72
74
77 inline const Aws::Vector<Aws::String>& GetValues() const { return m_values; }
78 inline bool ValuesHasBeenSet() const { return m_valuesHasBeenSet; }
79 template <typename ValuesT = Aws::Vector<Aws::String>>
80 void SetValues(ValuesT&& value) {
81 m_valuesHasBeenSet = true;
82 m_values = std::forward<ValuesT>(value);
83 }
84 template <typename ValuesT = Aws::Vector<Aws::String>>
85 AddProfileKeyRequest& WithValues(ValuesT&& value) {
86 SetValues(std::forward<ValuesT>(value));
87 return *this;
88 }
89 template <typename ValuesT = Aws::String>
90 AddProfileKeyRequest& AddValues(ValuesT&& value) {
91 m_valuesHasBeenSet = true;
92 m_values.emplace_back(std::forward<ValuesT>(value));
93 return *this;
94 }
96
98
101 inline const Aws::String& GetDomainName() const { return m_domainName; }
102 inline bool DomainNameHasBeenSet() const { return m_domainNameHasBeenSet; }
103 template <typename DomainNameT = Aws::String>
104 void SetDomainName(DomainNameT&& value) {
105 m_domainNameHasBeenSet = true;
106 m_domainName = std::forward<DomainNameT>(value);
107 }
108 template <typename DomainNameT = Aws::String>
109 AddProfileKeyRequest& WithDomainName(DomainNameT&& value) {
110 SetDomainName(std::forward<DomainNameT>(value));
111 return *this;
112 }
114 private:
115 Aws::String m_profileId;
116 bool m_profileIdHasBeenSet = false;
117
118 Aws::String m_keyName;
119 bool m_keyNameHasBeenSet = false;
120
122 bool m_valuesHasBeenSet = false;
123
124 Aws::String m_domainName;
125 bool m_domainNameHasBeenSet = false;
126};
127
128} // namespace Model
129} // namespace CustomerProfiles
130} // namespace Aws
AWS_CUSTOMERPROFILES_API Aws::String SerializePayload() const override
AddProfileKeyRequest & WithProfileId(ProfileIdT &&value)
AddProfileKeyRequest & AddValues(ValuesT &&value)
AddProfileKeyRequest & WithDomainName(DomainNameT &&value)
const Aws::Vector< Aws::String > & GetValues() const
AWS_CUSTOMERPROFILES_API AddProfileKeyRequest()=default
AddProfileKeyRequest & WithValues(ValuesT &&value)
virtual const char * GetServiceRequestName() const override
AddProfileKeyRequest & WithKeyName(KeyNameT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector