AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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:
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 inline void SetProfileId(const Aws::String& value) { m_profileIdHasBeenSet = true; m_profileId = value; }
49 inline void SetProfileId(Aws::String&& value) { m_profileIdHasBeenSet = true; m_profileId = std::move(value); }
50 inline void SetProfileId(const char* value) { m_profileIdHasBeenSet = true; m_profileId.assign(value); }
51 inline CreatePartnershipRequest& WithProfileId(const Aws::String& value) { SetProfileId(value); return *this;}
52 inline CreatePartnershipRequest& WithProfileId(Aws::String&& value) { SetProfileId(std::move(value)); return *this;}
53 inline CreatePartnershipRequest& WithProfileId(const char* value) { SetProfileId(value); return *this;}
55
57
60 inline const Aws::String& GetName() const{ return m_name; }
61 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
62 inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
63 inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
64 inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
65 inline CreatePartnershipRequest& WithName(const Aws::String& value) { SetName(value); return *this;}
66 inline CreatePartnershipRequest& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
67 inline CreatePartnershipRequest& WithName(const char* value) { SetName(value); return *this;}
69
71
74 inline const Aws::String& GetEmail() const{ return m_email; }
75 inline bool EmailHasBeenSet() const { return m_emailHasBeenSet; }
76 inline void SetEmail(const Aws::String& value) { m_emailHasBeenSet = true; m_email = value; }
77 inline void SetEmail(Aws::String&& value) { m_emailHasBeenSet = true; m_email = std::move(value); }
78 inline void SetEmail(const char* value) { m_emailHasBeenSet = true; m_email.assign(value); }
79 inline CreatePartnershipRequest& WithEmail(const Aws::String& value) { SetEmail(value); return *this;}
80 inline CreatePartnershipRequest& WithEmail(Aws::String&& value) { SetEmail(std::move(value)); return *this;}
81 inline CreatePartnershipRequest& WithEmail(const char* value) { SetEmail(value); return *this;}
83
85
88 inline const Aws::String& GetPhone() const{ return m_phone; }
89 inline bool PhoneHasBeenSet() const { return m_phoneHasBeenSet; }
90 inline void SetPhone(const Aws::String& value) { m_phoneHasBeenSet = true; m_phone = value; }
91 inline void SetPhone(Aws::String&& value) { m_phoneHasBeenSet = true; m_phone = std::move(value); }
92 inline void SetPhone(const char* value) { m_phoneHasBeenSet = true; m_phone.assign(value); }
93 inline CreatePartnershipRequest& WithPhone(const Aws::String& value) { SetPhone(value); return *this;}
94 inline CreatePartnershipRequest& WithPhone(Aws::String&& value) { SetPhone(std::move(value)); return *this;}
95 inline CreatePartnershipRequest& WithPhone(const char* value) { SetPhone(value); return *this;}
97
99
102 inline const Aws::Vector<Aws::String>& GetCapabilities() const{ return m_capabilities; }
103 inline bool CapabilitiesHasBeenSet() const { return m_capabilitiesHasBeenSet; }
104 inline void SetCapabilities(const Aws::Vector<Aws::String>& value) { m_capabilitiesHasBeenSet = true; m_capabilities = value; }
105 inline void SetCapabilities(Aws::Vector<Aws::String>&& value) { m_capabilitiesHasBeenSet = true; m_capabilities = std::move(value); }
107 inline CreatePartnershipRequest& WithCapabilities(Aws::Vector<Aws::String>&& value) { SetCapabilities(std::move(value)); return *this;}
108 inline CreatePartnershipRequest& AddCapabilities(const Aws::String& value) { m_capabilitiesHasBeenSet = true; m_capabilities.push_back(value); return *this; }
109 inline CreatePartnershipRequest& AddCapabilities(Aws::String&& value) { m_capabilitiesHasBeenSet = true; m_capabilities.push_back(std::move(value)); return *this; }
110 inline CreatePartnershipRequest& AddCapabilities(const char* value) { m_capabilitiesHasBeenSet = true; m_capabilities.push_back(value); return *this; }
112
114
118 inline const CapabilityOptions& GetCapabilityOptions() const{ return m_capabilityOptions; }
119 inline bool CapabilityOptionsHasBeenSet() const { return m_capabilityOptionsHasBeenSet; }
120 inline void SetCapabilityOptions(const CapabilityOptions& value) { m_capabilityOptionsHasBeenSet = true; m_capabilityOptions = value; }
121 inline void SetCapabilityOptions(CapabilityOptions&& value) { m_capabilityOptionsHasBeenSet = true; m_capabilityOptions = std::move(value); }
125
127
130 inline const Aws::String& GetClientToken() const{ return m_clientToken; }
131 inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; }
132 inline void SetClientToken(const Aws::String& value) { m_clientTokenHasBeenSet = true; m_clientToken = value; }
133 inline void SetClientToken(Aws::String&& value) { m_clientTokenHasBeenSet = true; m_clientToken = std::move(value); }
134 inline void SetClientToken(const char* value) { m_clientTokenHasBeenSet = true; m_clientToken.assign(value); }
135 inline CreatePartnershipRequest& WithClientToken(const Aws::String& value) { SetClientToken(value); return *this;}
136 inline CreatePartnershipRequest& WithClientToken(Aws::String&& value) { SetClientToken(std::move(value)); return *this;}
137 inline CreatePartnershipRequest& WithClientToken(const char* value) { SetClientToken(value); return *this;}
139
141
146 inline const Aws::Vector<Tag>& GetTags() const{ return m_tags; }
147 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
148 inline void SetTags(const Aws::Vector<Tag>& value) { m_tagsHasBeenSet = true; m_tags = value; }
149 inline void SetTags(Aws::Vector<Tag>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
150 inline CreatePartnershipRequest& WithTags(const Aws::Vector<Tag>& value) { SetTags(value); return *this;}
151 inline CreatePartnershipRequest& WithTags(Aws::Vector<Tag>&& value) { SetTags(std::move(value)); return *this;}
152 inline CreatePartnershipRequest& AddTags(const Tag& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; }
153 inline CreatePartnershipRequest& AddTags(Tag&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(value)); return *this; }
155 private:
156
157 Aws::String m_profileId;
158 bool m_profileIdHasBeenSet = false;
159
160 Aws::String m_name;
161 bool m_nameHasBeenSet = false;
162
163 Aws::String m_email;
164 bool m_emailHasBeenSet = false;
165
166 Aws::String m_phone;
167 bool m_phoneHasBeenSet = false;
168
169 Aws::Vector<Aws::String> m_capabilities;
170 bool m_capabilitiesHasBeenSet = false;
171
172 CapabilityOptions m_capabilityOptions;
173 bool m_capabilityOptionsHasBeenSet = false;
174
175 Aws::String m_clientToken;
176 bool m_clientTokenHasBeenSet = false;
177
178 Aws::Vector<Tag> m_tags;
179 bool m_tagsHasBeenSet = false;
180 };
181
182} // namespace Model
183} // namespace B2BI
184} // namespace Aws
void SetCapabilityOptions(CapabilityOptions &&value)
CreatePartnershipRequest & WithCapabilities(const Aws::Vector< Aws::String > &value)
CreatePartnershipRequest & WithCapabilityOptions(CapabilityOptions &&value)
CreatePartnershipRequest & WithName(const Aws::String &value)
CreatePartnershipRequest & WithClientToken(Aws::String &&value)
CreatePartnershipRequest & WithClientToken(const Aws::String &value)
CreatePartnershipRequest & WithTags(Aws::Vector< Tag > &&value)
CreatePartnershipRequest & WithProfileId(const Aws::String &value)
CreatePartnershipRequest & WithClientToken(const char *value)
AWS_B2BI_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
CreatePartnershipRequest & WithPhone(Aws::String &&value)
CreatePartnershipRequest & WithEmail(Aws::String &&value)
CreatePartnershipRequest & WithCapabilities(Aws::Vector< Aws::String > &&value)
CreatePartnershipRequest & WithTags(const Aws::Vector< Tag > &value)
const Aws::Vector< Aws::String > & GetCapabilities() const
AWS_B2BI_API Aws::String SerializePayload() const override
const CapabilityOptions & GetCapabilityOptions() const
CreatePartnershipRequest & WithCapabilityOptions(const CapabilityOptions &value)
CreatePartnershipRequest & WithEmail(const char *value)
CreatePartnershipRequest & WithPhone(const char *value)
CreatePartnershipRequest & AddTags(const Tag &value)
CreatePartnershipRequest & AddCapabilities(Aws::String &&value)
void SetCapabilityOptions(const CapabilityOptions &value)
CreatePartnershipRequest & AddCapabilities(const char *value)
CreatePartnershipRequest & WithPhone(const Aws::String &value)
CreatePartnershipRequest & WithName(const char *value)
void SetCapabilities(Aws::Vector< Aws::String > &&value)
virtual const char * GetServiceRequestName() const override
CreatePartnershipRequest & WithProfileId(Aws::String &&value)
CreatePartnershipRequest & WithEmail(const Aws::String &value)
CreatePartnershipRequest & WithProfileId(const char *value)
CreatePartnershipRequest & AddTags(Tag &&value)
CreatePartnershipRequest & WithName(Aws::String &&value)
void SetCapabilities(const Aws::Vector< Aws::String > &value)
CreatePartnershipRequest & AddCapabilities(const Aws::String &value)
void SetTags(const Aws::Vector< Tag > &value)
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