AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
CreatePartnershipRequest.h
1
6#pragma once
7#include <aws/b2bi/B2BI_EXPORTS.h>
8#include <aws/b2bi/B2BIRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <aws/b2bi/model/CapabilityOptions.h>
12#include <aws/b2bi/model/Tag.h>
13#include <utility>
14#include <aws/core/utils/UUID.h>
15
16namespace Aws
17{
18namespace B2BI
19{
20namespace Model
21{
22
26 {
27 public:
28 AWS_B2BI_API CreatePartnershipRequest() = default;
29
30 // Service request name is the Operation name which will send this request out,
31 // each operation should has unique request name, so that we can get operation's name from this request.
32 // Note: this is not true for response, multiple operations may have the same response name,
33 // so we can not get operation's name from response.
34 inline virtual const char* GetServiceRequestName() const override { return "CreatePartnership"; }
35
36 AWS_B2BI_API Aws::String SerializePayload() const override;
37
39
40
42
46 inline const Aws::String& GetProfileId() const { return m_profileId; }
47 inline bool ProfileIdHasBeenSet() const { return m_profileIdHasBeenSet; }
48 template<typename ProfileIdT = Aws::String>
49 void SetProfileId(ProfileIdT&& value) { m_profileIdHasBeenSet = true; m_profileId = std::forward<ProfileIdT>(value); }
50 template<typename ProfileIdT = Aws::String>
51 CreatePartnershipRequest& WithProfileId(ProfileIdT&& value) { SetProfileId(std::forward<ProfileIdT>(value)); return *this;}
53
55
58 inline const Aws::String& GetName() const { return m_name; }
59 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
60 template<typename NameT = Aws::String>
61 void SetName(NameT&& value) { m_nameHasBeenSet = true; m_name = std::forward<NameT>(value); }
62 template<typename NameT = Aws::String>
63 CreatePartnershipRequest& WithName(NameT&& value) { SetName(std::forward<NameT>(value)); return *this;}
65
67
70 inline const Aws::String& GetEmail() const { return m_email; }
71 inline bool EmailHasBeenSet() const { return m_emailHasBeenSet; }
72 template<typename EmailT = Aws::String>
73 void SetEmail(EmailT&& value) { m_emailHasBeenSet = true; m_email = std::forward<EmailT>(value); }
74 template<typename EmailT = Aws::String>
75 CreatePartnershipRequest& WithEmail(EmailT&& value) { SetEmail(std::forward<EmailT>(value)); return *this;}
77
79
82 inline const Aws::String& GetPhone() const { return m_phone; }
83 inline bool PhoneHasBeenSet() const { return m_phoneHasBeenSet; }
84 template<typename PhoneT = Aws::String>
85 void SetPhone(PhoneT&& value) { m_phoneHasBeenSet = true; m_phone = std::forward<PhoneT>(value); }
86 template<typename PhoneT = Aws::String>
87 CreatePartnershipRequest& WithPhone(PhoneT&& value) { SetPhone(std::forward<PhoneT>(value)); return *this;}
89
91
94 inline const Aws::Vector<Aws::String>& GetCapabilities() const { return m_capabilities; }
95 inline bool CapabilitiesHasBeenSet() const { return m_capabilitiesHasBeenSet; }
96 template<typename CapabilitiesT = Aws::Vector<Aws::String>>
97 void SetCapabilities(CapabilitiesT&& value) { m_capabilitiesHasBeenSet = true; m_capabilities = std::forward<CapabilitiesT>(value); }
98 template<typename CapabilitiesT = Aws::Vector<Aws::String>>
99 CreatePartnershipRequest& WithCapabilities(CapabilitiesT&& value) { SetCapabilities(std::forward<CapabilitiesT>(value)); return *this;}
100 template<typename CapabilitiesT = Aws::String>
101 CreatePartnershipRequest& AddCapabilities(CapabilitiesT&& value) { m_capabilitiesHasBeenSet = true; m_capabilities.emplace_back(std::forward<CapabilitiesT>(value)); return *this; }
103
105
109 inline const CapabilityOptions& GetCapabilityOptions() const { return m_capabilityOptions; }
110 inline bool CapabilityOptionsHasBeenSet() const { return m_capabilityOptionsHasBeenSet; }
111 template<typename CapabilityOptionsT = CapabilityOptions>
112 void SetCapabilityOptions(CapabilityOptionsT&& value) { m_capabilityOptionsHasBeenSet = true; m_capabilityOptions = std::forward<CapabilityOptionsT>(value); }
113 template<typename CapabilityOptionsT = CapabilityOptions>
114 CreatePartnershipRequest& WithCapabilityOptions(CapabilityOptionsT&& value) { SetCapabilityOptions(std::forward<CapabilityOptionsT>(value)); return *this;}
116
118
121 inline const Aws::String& GetClientToken() const { return m_clientToken; }
122 inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; }
123 template<typename ClientTokenT = Aws::String>
124 void SetClientToken(ClientTokenT&& value) { m_clientTokenHasBeenSet = true; m_clientToken = std::forward<ClientTokenT>(value); }
125 template<typename ClientTokenT = Aws::String>
126 CreatePartnershipRequest& WithClientToken(ClientTokenT&& value) { SetClientToken(std::forward<ClientTokenT>(value)); return *this;}
128
130
135 inline const Aws::Vector<Tag>& GetTags() const { return m_tags; }
136 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
137 template<typename TagsT = Aws::Vector<Tag>>
138 void SetTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags = std::forward<TagsT>(value); }
139 template<typename TagsT = Aws::Vector<Tag>>
140 CreatePartnershipRequest& WithTags(TagsT&& value) { SetTags(std::forward<TagsT>(value)); return *this;}
141 template<typename TagsT = Tag>
142 CreatePartnershipRequest& AddTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags.emplace_back(std::forward<TagsT>(value)); return *this; }
144 private:
145
146 Aws::String m_profileId;
147 bool m_profileIdHasBeenSet = false;
148
149 Aws::String m_name;
150 bool m_nameHasBeenSet = false;
151
152 Aws::String m_email;
153 bool m_emailHasBeenSet = false;
154
155 Aws::String m_phone;
156 bool m_phoneHasBeenSet = false;
157
158 Aws::Vector<Aws::String> m_capabilities;
159 bool m_capabilitiesHasBeenSet = false;
160
161 CapabilityOptions m_capabilityOptions;
162 bool m_capabilityOptionsHasBeenSet = false;
163
165 bool m_clientTokenHasBeenSet = true;
166
167 Aws::Vector<Tag> m_tags;
168 bool m_tagsHasBeenSet = false;
169 };
170
171} // namespace Model
172} // namespace B2BI
173} // namespace Aws
AWS_B2BI_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
CreatePartnershipRequest & WithProfileId(ProfileIdT &&value)
CreatePartnershipRequest & WithPhone(PhoneT &&value)
const Aws::Vector< Aws::String > & GetCapabilities() const
AWS_B2BI_API Aws::String SerializePayload() const override
AWS_B2BI_API CreatePartnershipRequest()=default
CreatePartnershipRequest & AddCapabilities(CapabilitiesT &&value)
CreatePartnershipRequest & WithName(NameT &&value)
const CapabilityOptions & GetCapabilityOptions() const
CreatePartnershipRequest & WithEmail(EmailT &&value)
virtual const char * GetServiceRequestName() const override
CreatePartnershipRequest & WithCapabilities(CapabilitiesT &&value)
CreatePartnershipRequest & WithCapabilityOptions(CapabilityOptionsT &&value)
CreatePartnershipRequest & WithTags(TagsT &&value)
void SetCapabilityOptions(CapabilityOptionsT &&value)
CreatePartnershipRequest & WithClientToken(ClientTokenT &&value)
CreatePartnershipRequest & AddTags(TagsT &&value)
static Aws::Utils::UUID PseudoRandomUUID()
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector