AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
CreateAgreementRequest.h
1
6#pragma once
7#include <aws/awstransfer/Transfer_EXPORTS.h>
8#include <aws/awstransfer/TransferRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/awstransfer/model/AgreementStatusType.h>
11#include <aws/core/utils/memory/stl/AWSVector.h>
12#include <aws/awstransfer/model/Tag.h>
13#include <utility>
14
15namespace Aws
16{
17namespace Transfer
18{
19namespace Model
20{
21
25 {
26 public:
27 AWS_TRANSFER_API CreateAgreementRequest();
28
29 // Service request name is the Operation name which will send this request out,
30 // each operation should has unique request name, so that we can get operation's name from this request.
31 // Note: this is not true for response, multiple operations may have the same response name,
32 // so we can not get operation's name from response.
33 inline virtual const char* GetServiceRequestName() const override { return "CreateAgreement"; }
34
35 AWS_TRANSFER_API Aws::String SerializePayload() const override;
36
38
39
41
44 inline const Aws::String& GetDescription() const{ return m_description; }
45 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
46 inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; }
47 inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); }
48 inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); }
49 inline CreateAgreementRequest& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
50 inline CreateAgreementRequest& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;}
51 inline CreateAgreementRequest& WithDescription(const char* value) { SetDescription(value); return *this;}
53
55
59 inline const Aws::String& GetServerId() const{ return m_serverId; }
60 inline bool ServerIdHasBeenSet() const { return m_serverIdHasBeenSet; }
61 inline void SetServerId(const Aws::String& value) { m_serverIdHasBeenSet = true; m_serverId = value; }
62 inline void SetServerId(Aws::String&& value) { m_serverIdHasBeenSet = true; m_serverId = std::move(value); }
63 inline void SetServerId(const char* value) { m_serverIdHasBeenSet = true; m_serverId.assign(value); }
64 inline CreateAgreementRequest& WithServerId(const Aws::String& value) { SetServerId(value); return *this;}
65 inline CreateAgreementRequest& WithServerId(Aws::String&& value) { SetServerId(std::move(value)); return *this;}
66 inline CreateAgreementRequest& WithServerId(const char* value) { SetServerId(value); return *this;}
68
70
73 inline const Aws::String& GetLocalProfileId() const{ return m_localProfileId; }
74 inline bool LocalProfileIdHasBeenSet() const { return m_localProfileIdHasBeenSet; }
75 inline void SetLocalProfileId(const Aws::String& value) { m_localProfileIdHasBeenSet = true; m_localProfileId = value; }
76 inline void SetLocalProfileId(Aws::String&& value) { m_localProfileIdHasBeenSet = true; m_localProfileId = std::move(value); }
77 inline void SetLocalProfileId(const char* value) { m_localProfileIdHasBeenSet = true; m_localProfileId.assign(value); }
78 inline CreateAgreementRequest& WithLocalProfileId(const Aws::String& value) { SetLocalProfileId(value); return *this;}
79 inline CreateAgreementRequest& WithLocalProfileId(Aws::String&& value) { SetLocalProfileId(std::move(value)); return *this;}
80 inline CreateAgreementRequest& WithLocalProfileId(const char* value) { SetLocalProfileId(value); return *this;}
82
84
87 inline const Aws::String& GetPartnerProfileId() const{ return m_partnerProfileId; }
88 inline bool PartnerProfileIdHasBeenSet() const { return m_partnerProfileIdHasBeenSet; }
89 inline void SetPartnerProfileId(const Aws::String& value) { m_partnerProfileIdHasBeenSet = true; m_partnerProfileId = value; }
90 inline void SetPartnerProfileId(Aws::String&& value) { m_partnerProfileIdHasBeenSet = true; m_partnerProfileId = std::move(value); }
91 inline void SetPartnerProfileId(const char* value) { m_partnerProfileIdHasBeenSet = true; m_partnerProfileId.assign(value); }
92 inline CreateAgreementRequest& WithPartnerProfileId(const Aws::String& value) { SetPartnerProfileId(value); return *this;}
93 inline CreateAgreementRequest& WithPartnerProfileId(Aws::String&& value) { SetPartnerProfileId(std::move(value)); return *this;}
94 inline CreateAgreementRequest& WithPartnerProfileId(const char* value) { SetPartnerProfileId(value); return *this;}
96
98
103 inline const Aws::String& GetBaseDirectory() const{ return m_baseDirectory; }
104 inline bool BaseDirectoryHasBeenSet() const { return m_baseDirectoryHasBeenSet; }
105 inline void SetBaseDirectory(const Aws::String& value) { m_baseDirectoryHasBeenSet = true; m_baseDirectory = value; }
106 inline void SetBaseDirectory(Aws::String&& value) { m_baseDirectoryHasBeenSet = true; m_baseDirectory = std::move(value); }
107 inline void SetBaseDirectory(const char* value) { m_baseDirectoryHasBeenSet = true; m_baseDirectory.assign(value); }
108 inline CreateAgreementRequest& WithBaseDirectory(const Aws::String& value) { SetBaseDirectory(value); return *this;}
109 inline CreateAgreementRequest& WithBaseDirectory(Aws::String&& value) { SetBaseDirectory(std::move(value)); return *this;}
110 inline CreateAgreementRequest& WithBaseDirectory(const char* value) { SetBaseDirectory(value); return *this;}
112
114
140 inline const Aws::String& GetAccessRole() const{ return m_accessRole; }
141 inline bool AccessRoleHasBeenSet() const { return m_accessRoleHasBeenSet; }
142 inline void SetAccessRole(const Aws::String& value) { m_accessRoleHasBeenSet = true; m_accessRole = value; }
143 inline void SetAccessRole(Aws::String&& value) { m_accessRoleHasBeenSet = true; m_accessRole = std::move(value); }
144 inline void SetAccessRole(const char* value) { m_accessRoleHasBeenSet = true; m_accessRole.assign(value); }
145 inline CreateAgreementRequest& WithAccessRole(const Aws::String& value) { SetAccessRole(value); return *this;}
146 inline CreateAgreementRequest& WithAccessRole(Aws::String&& value) { SetAccessRole(std::move(value)); return *this;}
147 inline CreateAgreementRequest& WithAccessRole(const char* value) { SetAccessRole(value); return *this;}
149
151
155 inline const AgreementStatusType& GetStatus() const{ return m_status; }
156 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
157 inline void SetStatus(const AgreementStatusType& value) { m_statusHasBeenSet = true; m_status = value; }
158 inline void SetStatus(AgreementStatusType&& value) { m_statusHasBeenSet = true; m_status = std::move(value); }
159 inline CreateAgreementRequest& WithStatus(const AgreementStatusType& value) { SetStatus(value); return *this;}
160 inline CreateAgreementRequest& WithStatus(AgreementStatusType&& value) { SetStatus(std::move(value)); return *this;}
162
164
167 inline const Aws::Vector<Tag>& GetTags() const{ return m_tags; }
168 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
169 inline void SetTags(const Aws::Vector<Tag>& value) { m_tagsHasBeenSet = true; m_tags = value; }
170 inline void SetTags(Aws::Vector<Tag>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
171 inline CreateAgreementRequest& WithTags(const Aws::Vector<Tag>& value) { SetTags(value); return *this;}
172 inline CreateAgreementRequest& WithTags(Aws::Vector<Tag>&& value) { SetTags(std::move(value)); return *this;}
173 inline CreateAgreementRequest& AddTags(const Tag& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; }
174 inline CreateAgreementRequest& AddTags(Tag&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(value)); return *this; }
176 private:
177
178 Aws::String m_description;
179 bool m_descriptionHasBeenSet = false;
180
181 Aws::String m_serverId;
182 bool m_serverIdHasBeenSet = false;
183
184 Aws::String m_localProfileId;
185 bool m_localProfileIdHasBeenSet = false;
186
187 Aws::String m_partnerProfileId;
188 bool m_partnerProfileIdHasBeenSet = false;
189
190 Aws::String m_baseDirectory;
191 bool m_baseDirectoryHasBeenSet = false;
192
193 Aws::String m_accessRole;
194 bool m_accessRoleHasBeenSet = false;
195
196 AgreementStatusType m_status;
197 bool m_statusHasBeenSet = false;
198
199 Aws::Vector<Tag> m_tags;
200 bool m_tagsHasBeenSet = false;
201 };
202
203} // namespace Model
204} // namespace Transfer
205} // namespace Aws
CreateAgreementRequest & WithBaseDirectory(Aws::String &&value)
CreateAgreementRequest & WithStatus(AgreementStatusType &&value)
AWS_TRANSFER_API Aws::String SerializePayload() const override
CreateAgreementRequest & WithServerId(const char *value)
CreateAgreementRequest & AddTags(Tag &&value)
CreateAgreementRequest & WithAccessRole(Aws::String &&value)
CreateAgreementRequest & WithDescription(const Aws::String &value)
CreateAgreementRequest & WithLocalProfileId(const char *value)
CreateAgreementRequest & WithDescription(const char *value)
CreateAgreementRequest & WithLocalProfileId(Aws::String &&value)
CreateAgreementRequest & WithBaseDirectory(const Aws::String &value)
CreateAgreementRequest & WithBaseDirectory(const char *value)
AWS_TRANSFER_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
CreateAgreementRequest & WithTags(const Aws::Vector< Tag > &value)
CreateAgreementRequest & WithLocalProfileId(const Aws::String &value)
CreateAgreementRequest & WithPartnerProfileId(Aws::String &&value)
CreateAgreementRequest & WithServerId(const Aws::String &value)
const AgreementStatusType & GetStatus() const
CreateAgreementRequest & WithPartnerProfileId(const Aws::String &value)
void SetStatus(const AgreementStatusType &value)
virtual const char * GetServiceRequestName() const override
CreateAgreementRequest & WithDescription(Aws::String &&value)
CreateAgreementRequest & WithAccessRole(const Aws::String &value)
CreateAgreementRequest & WithPartnerProfileId(const char *value)
CreateAgreementRequest & WithServerId(Aws::String &&value)
CreateAgreementRequest & WithAccessRole(const char *value)
CreateAgreementRequest & WithTags(Aws::Vector< Tag > &&value)
CreateAgreementRequest & WithStatus(const AgreementStatusType &value)
CreateAgreementRequest & AddTags(const Tag &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