AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
UpdateAgreementRequest.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 <utility>
12
13namespace Aws
14{
15namespace Transfer
16{
17namespace Model
18{
19
23 {
24 public:
25 AWS_TRANSFER_API UpdateAgreementRequest();
26
27 // Service request name is the Operation name which will send this request out,
28 // each operation should has unique request name, so that we can get operation's name from this request.
29 // Note: this is not true for response, multiple operations may have the same response name,
30 // so we can not get operation's name from response.
31 inline virtual const char* GetServiceRequestName() const override { return "UpdateAgreement"; }
32
33 AWS_TRANSFER_API Aws::String SerializePayload() const override;
34
36
37
39
43 inline const Aws::String& GetAgreementId() const{ return m_agreementId; }
44 inline bool AgreementIdHasBeenSet() const { return m_agreementIdHasBeenSet; }
45 inline void SetAgreementId(const Aws::String& value) { m_agreementIdHasBeenSet = true; m_agreementId = value; }
46 inline void SetAgreementId(Aws::String&& value) { m_agreementIdHasBeenSet = true; m_agreementId = std::move(value); }
47 inline void SetAgreementId(const char* value) { m_agreementIdHasBeenSet = true; m_agreementId.assign(value); }
48 inline UpdateAgreementRequest& WithAgreementId(const Aws::String& value) { SetAgreementId(value); return *this;}
49 inline UpdateAgreementRequest& WithAgreementId(Aws::String&& value) { SetAgreementId(std::move(value)); return *this;}
50 inline UpdateAgreementRequest& WithAgreementId(const char* value) { SetAgreementId(value); return *this;}
52
54
58 inline const Aws::String& GetServerId() const{ return m_serverId; }
59 inline bool ServerIdHasBeenSet() const { return m_serverIdHasBeenSet; }
60 inline void SetServerId(const Aws::String& value) { m_serverIdHasBeenSet = true; m_serverId = value; }
61 inline void SetServerId(Aws::String&& value) { m_serverIdHasBeenSet = true; m_serverId = std::move(value); }
62 inline void SetServerId(const char* value) { m_serverIdHasBeenSet = true; m_serverId.assign(value); }
63 inline UpdateAgreementRequest& WithServerId(const Aws::String& value) { SetServerId(value); return *this;}
64 inline UpdateAgreementRequest& WithServerId(Aws::String&& value) { SetServerId(std::move(value)); return *this;}
65 inline UpdateAgreementRequest& WithServerId(const char* value) { SetServerId(value); return *this;}
67
69
73 inline const Aws::String& GetDescription() const{ return m_description; }
74 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
75 inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; }
76 inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); }
77 inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); }
78 inline UpdateAgreementRequest& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
79 inline UpdateAgreementRequest& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;}
80 inline UpdateAgreementRequest& WithDescription(const char* value) { SetDescription(value); return *this;}
82
84
88 inline const AgreementStatusType& GetStatus() const{ return m_status; }
89 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
90 inline void SetStatus(const AgreementStatusType& value) { m_statusHasBeenSet = true; m_status = value; }
91 inline void SetStatus(AgreementStatusType&& value) { m_statusHasBeenSet = true; m_status = std::move(value); }
92 inline UpdateAgreementRequest& WithStatus(const AgreementStatusType& value) { SetStatus(value); return *this;}
93 inline UpdateAgreementRequest& WithStatus(AgreementStatusType&& value) { SetStatus(std::move(value)); return *this;}
95
97
101 inline const Aws::String& GetLocalProfileId() const{ return m_localProfileId; }
102 inline bool LocalProfileIdHasBeenSet() const { return m_localProfileIdHasBeenSet; }
103 inline void SetLocalProfileId(const Aws::String& value) { m_localProfileIdHasBeenSet = true; m_localProfileId = value; }
104 inline void SetLocalProfileId(Aws::String&& value) { m_localProfileIdHasBeenSet = true; m_localProfileId = std::move(value); }
105 inline void SetLocalProfileId(const char* value) { m_localProfileIdHasBeenSet = true; m_localProfileId.assign(value); }
106 inline UpdateAgreementRequest& WithLocalProfileId(const Aws::String& value) { SetLocalProfileId(value); return *this;}
107 inline UpdateAgreementRequest& WithLocalProfileId(Aws::String&& value) { SetLocalProfileId(std::move(value)); return *this;}
108 inline UpdateAgreementRequest& WithLocalProfileId(const char* value) { SetLocalProfileId(value); return *this;}
110
112
116 inline const Aws::String& GetPartnerProfileId() const{ return m_partnerProfileId; }
117 inline bool PartnerProfileIdHasBeenSet() const { return m_partnerProfileIdHasBeenSet; }
118 inline void SetPartnerProfileId(const Aws::String& value) { m_partnerProfileIdHasBeenSet = true; m_partnerProfileId = value; }
119 inline void SetPartnerProfileId(Aws::String&& value) { m_partnerProfileIdHasBeenSet = true; m_partnerProfileId = std::move(value); }
120 inline void SetPartnerProfileId(const char* value) { m_partnerProfileIdHasBeenSet = true; m_partnerProfileId.assign(value); }
121 inline UpdateAgreementRequest& WithPartnerProfileId(const Aws::String& value) { SetPartnerProfileId(value); return *this;}
122 inline UpdateAgreementRequest& WithPartnerProfileId(Aws::String&& value) { SetPartnerProfileId(std::move(value)); return *this;}
123 inline UpdateAgreementRequest& WithPartnerProfileId(const char* value) { SetPartnerProfileId(value); return *this;}
125
127
132 inline const Aws::String& GetBaseDirectory() const{ return m_baseDirectory; }
133 inline bool BaseDirectoryHasBeenSet() const { return m_baseDirectoryHasBeenSet; }
134 inline void SetBaseDirectory(const Aws::String& value) { m_baseDirectoryHasBeenSet = true; m_baseDirectory = value; }
135 inline void SetBaseDirectory(Aws::String&& value) { m_baseDirectoryHasBeenSet = true; m_baseDirectory = std::move(value); }
136 inline void SetBaseDirectory(const char* value) { m_baseDirectoryHasBeenSet = true; m_baseDirectory.assign(value); }
137 inline UpdateAgreementRequest& WithBaseDirectory(const Aws::String& value) { SetBaseDirectory(value); return *this;}
138 inline UpdateAgreementRequest& WithBaseDirectory(Aws::String&& value) { SetBaseDirectory(std::move(value)); return *this;}
139 inline UpdateAgreementRequest& WithBaseDirectory(const char* value) { SetBaseDirectory(value); return *this;}
141
143
169 inline const Aws::String& GetAccessRole() const{ return m_accessRole; }
170 inline bool AccessRoleHasBeenSet() const { return m_accessRoleHasBeenSet; }
171 inline void SetAccessRole(const Aws::String& value) { m_accessRoleHasBeenSet = true; m_accessRole = value; }
172 inline void SetAccessRole(Aws::String&& value) { m_accessRoleHasBeenSet = true; m_accessRole = std::move(value); }
173 inline void SetAccessRole(const char* value) { m_accessRoleHasBeenSet = true; m_accessRole.assign(value); }
174 inline UpdateAgreementRequest& WithAccessRole(const Aws::String& value) { SetAccessRole(value); return *this;}
175 inline UpdateAgreementRequest& WithAccessRole(Aws::String&& value) { SetAccessRole(std::move(value)); return *this;}
176 inline UpdateAgreementRequest& WithAccessRole(const char* value) { SetAccessRole(value); return *this;}
178 private:
179
180 Aws::String m_agreementId;
181 bool m_agreementIdHasBeenSet = false;
182
183 Aws::String m_serverId;
184 bool m_serverIdHasBeenSet = false;
185
186 Aws::String m_description;
187 bool m_descriptionHasBeenSet = false;
188
189 AgreementStatusType m_status;
190 bool m_statusHasBeenSet = false;
191
192 Aws::String m_localProfileId;
193 bool m_localProfileIdHasBeenSet = false;
194
195 Aws::String m_partnerProfileId;
196 bool m_partnerProfileIdHasBeenSet = false;
197
198 Aws::String m_baseDirectory;
199 bool m_baseDirectoryHasBeenSet = false;
200
201 Aws::String m_accessRole;
202 bool m_accessRoleHasBeenSet = false;
203 };
204
205} // namespace Model
206} // namespace Transfer
207} // namespace Aws
UpdateAgreementRequest & WithServerId(const Aws::String &value)
UpdateAgreementRequest & WithStatus(const AgreementStatusType &value)
UpdateAgreementRequest & WithLocalProfileId(const Aws::String &value)
UpdateAgreementRequest & WithAgreementId(const Aws::String &value)
UpdateAgreementRequest & WithAgreementId(const char *value)
AWS_TRANSFER_API Aws::String SerializePayload() const override
UpdateAgreementRequest & WithLocalProfileId(const char *value)
UpdateAgreementRequest & WithAccessRole(Aws::String &&value)
UpdateAgreementRequest & WithServerId(const char *value)
UpdateAgreementRequest & WithLocalProfileId(Aws::String &&value)
UpdateAgreementRequest & WithDescription(const char *value)
UpdateAgreementRequest & WithStatus(AgreementStatusType &&value)
UpdateAgreementRequest & WithBaseDirectory(Aws::String &&value)
UpdateAgreementRequest & WithPartnerProfileId(const char *value)
const AgreementStatusType & GetStatus() const
AWS_TRANSFER_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
UpdateAgreementRequest & WithAgreementId(Aws::String &&value)
UpdateAgreementRequest & WithAccessRole(const char *value)
UpdateAgreementRequest & WithDescription(const Aws::String &value)
UpdateAgreementRequest & WithDescription(Aws::String &&value)
void SetStatus(const AgreementStatusType &value)
UpdateAgreementRequest & WithBaseDirectory(const char *value)
UpdateAgreementRequest & WithAccessRole(const Aws::String &value)
UpdateAgreementRequest & WithPartnerProfileId(Aws::String &&value)
UpdateAgreementRequest & WithBaseDirectory(const Aws::String &value)
UpdateAgreementRequest & WithPartnerProfileId(const Aws::String &value)
UpdateAgreementRequest & WithServerId(Aws::String &&value)
virtual const char * GetServiceRequestName() const override
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String