AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
DescribedAgreement.h
1
6#pragma once
7#include <aws/awstransfer/Transfer_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/awstransfer/model/AgreementStatusType.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <aws/awstransfer/model/Tag.h>
12#include <utility>
13
14namespace Aws
15{
16namespace Utils
17{
18namespace Json
19{
20 class JsonValue;
21 class JsonView;
22} // namespace Json
23} // namespace Utils
24namespace Transfer
25{
26namespace Model
27{
28
35 {
36 public:
37 AWS_TRANSFER_API DescribedAgreement();
40 AWS_TRANSFER_API Aws::Utils::Json::JsonValue Jsonize() const;
41
42
44
47 inline const Aws::String& GetArn() const{ return m_arn; }
48 inline bool ArnHasBeenSet() const { return m_arnHasBeenSet; }
49 inline void SetArn(const Aws::String& value) { m_arnHasBeenSet = true; m_arn = value; }
50 inline void SetArn(Aws::String&& value) { m_arnHasBeenSet = true; m_arn = std::move(value); }
51 inline void SetArn(const char* value) { m_arnHasBeenSet = true; m_arn.assign(value); }
52 inline DescribedAgreement& WithArn(const Aws::String& value) { SetArn(value); return *this;}
53 inline DescribedAgreement& WithArn(Aws::String&& value) { SetArn(std::move(value)); return *this;}
54 inline DescribedAgreement& WithArn(const char* value) { SetArn(value); return *this;}
56
58
62 inline const Aws::String& GetAgreementId() const{ return m_agreementId; }
63 inline bool AgreementIdHasBeenSet() const { return m_agreementIdHasBeenSet; }
64 inline void SetAgreementId(const Aws::String& value) { m_agreementIdHasBeenSet = true; m_agreementId = value; }
65 inline void SetAgreementId(Aws::String&& value) { m_agreementIdHasBeenSet = true; m_agreementId = std::move(value); }
66 inline void SetAgreementId(const char* value) { m_agreementIdHasBeenSet = true; m_agreementId.assign(value); }
67 inline DescribedAgreement& WithAgreementId(const Aws::String& value) { SetAgreementId(value); return *this;}
68 inline DescribedAgreement& WithAgreementId(Aws::String&& value) { SetAgreementId(std::move(value)); return *this;}
69 inline DescribedAgreement& WithAgreementId(const char* value) { SetAgreementId(value); return *this;}
71
73
76 inline const Aws::String& GetDescription() const{ return m_description; }
77 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
78 inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; }
79 inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); }
80 inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); }
81 inline DescribedAgreement& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
82 inline DescribedAgreement& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;}
83 inline DescribedAgreement& WithDescription(const char* value) { SetDescription(value); return *this;}
85
87
91 inline const AgreementStatusType& GetStatus() const{ return m_status; }
92 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
93 inline void SetStatus(const AgreementStatusType& value) { m_statusHasBeenSet = true; m_status = value; }
94 inline void SetStatus(AgreementStatusType&& value) { m_statusHasBeenSet = true; m_status = std::move(value); }
95 inline DescribedAgreement& WithStatus(const AgreementStatusType& value) { SetStatus(value); return *this;}
96 inline DescribedAgreement& WithStatus(AgreementStatusType&& value) { SetStatus(std::move(value)); return *this;}
98
100
104 inline const Aws::String& GetServerId() const{ return m_serverId; }
105 inline bool ServerIdHasBeenSet() const { return m_serverIdHasBeenSet; }
106 inline void SetServerId(const Aws::String& value) { m_serverIdHasBeenSet = true; m_serverId = value; }
107 inline void SetServerId(Aws::String&& value) { m_serverIdHasBeenSet = true; m_serverId = std::move(value); }
108 inline void SetServerId(const char* value) { m_serverIdHasBeenSet = true; m_serverId.assign(value); }
109 inline DescribedAgreement& WithServerId(const Aws::String& value) { SetServerId(value); return *this;}
110 inline DescribedAgreement& WithServerId(Aws::String&& value) { SetServerId(std::move(value)); return *this;}
111 inline DescribedAgreement& WithServerId(const char* value) { SetServerId(value); return *this;}
113
115
118 inline const Aws::String& GetLocalProfileId() const{ return m_localProfileId; }
119 inline bool LocalProfileIdHasBeenSet() const { return m_localProfileIdHasBeenSet; }
120 inline void SetLocalProfileId(const Aws::String& value) { m_localProfileIdHasBeenSet = true; m_localProfileId = value; }
121 inline void SetLocalProfileId(Aws::String&& value) { m_localProfileIdHasBeenSet = true; m_localProfileId = std::move(value); }
122 inline void SetLocalProfileId(const char* value) { m_localProfileIdHasBeenSet = true; m_localProfileId.assign(value); }
123 inline DescribedAgreement& WithLocalProfileId(const Aws::String& value) { SetLocalProfileId(value); return *this;}
124 inline DescribedAgreement& WithLocalProfileId(Aws::String&& value) { SetLocalProfileId(std::move(value)); return *this;}
125 inline DescribedAgreement& WithLocalProfileId(const char* value) { SetLocalProfileId(value); return *this;}
127
129
132 inline const Aws::String& GetPartnerProfileId() const{ return m_partnerProfileId; }
133 inline bool PartnerProfileIdHasBeenSet() const { return m_partnerProfileIdHasBeenSet; }
134 inline void SetPartnerProfileId(const Aws::String& value) { m_partnerProfileIdHasBeenSet = true; m_partnerProfileId = value; }
135 inline void SetPartnerProfileId(Aws::String&& value) { m_partnerProfileIdHasBeenSet = true; m_partnerProfileId = std::move(value); }
136 inline void SetPartnerProfileId(const char* value) { m_partnerProfileIdHasBeenSet = true; m_partnerProfileId.assign(value); }
137 inline DescribedAgreement& WithPartnerProfileId(const Aws::String& value) { SetPartnerProfileId(value); return *this;}
138 inline DescribedAgreement& WithPartnerProfileId(Aws::String&& value) { SetPartnerProfileId(std::move(value)); return *this;}
139 inline DescribedAgreement& WithPartnerProfileId(const char* value) { SetPartnerProfileId(value); return *this;}
141
143
147 inline const Aws::String& GetBaseDirectory() const{ return m_baseDirectory; }
148 inline bool BaseDirectoryHasBeenSet() const { return m_baseDirectoryHasBeenSet; }
149 inline void SetBaseDirectory(const Aws::String& value) { m_baseDirectoryHasBeenSet = true; m_baseDirectory = value; }
150 inline void SetBaseDirectory(Aws::String&& value) { m_baseDirectoryHasBeenSet = true; m_baseDirectory = std::move(value); }
151 inline void SetBaseDirectory(const char* value) { m_baseDirectoryHasBeenSet = true; m_baseDirectory.assign(value); }
152 inline DescribedAgreement& WithBaseDirectory(const Aws::String& value) { SetBaseDirectory(value); return *this;}
153 inline DescribedAgreement& WithBaseDirectory(Aws::String&& value) { SetBaseDirectory(std::move(value)); return *this;}
154 inline DescribedAgreement& WithBaseDirectory(const char* value) { SetBaseDirectory(value); return *this;}
156
158
184 inline const Aws::String& GetAccessRole() const{ return m_accessRole; }
185 inline bool AccessRoleHasBeenSet() const { return m_accessRoleHasBeenSet; }
186 inline void SetAccessRole(const Aws::String& value) { m_accessRoleHasBeenSet = true; m_accessRole = value; }
187 inline void SetAccessRole(Aws::String&& value) { m_accessRoleHasBeenSet = true; m_accessRole = std::move(value); }
188 inline void SetAccessRole(const char* value) { m_accessRoleHasBeenSet = true; m_accessRole.assign(value); }
189 inline DescribedAgreement& WithAccessRole(const Aws::String& value) { SetAccessRole(value); return *this;}
190 inline DescribedAgreement& WithAccessRole(Aws::String&& value) { SetAccessRole(std::move(value)); return *this;}
191 inline DescribedAgreement& WithAccessRole(const char* value) { SetAccessRole(value); return *this;}
193
195
198 inline const Aws::Vector<Tag>& GetTags() const{ return m_tags; }
199 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
200 inline void SetTags(const Aws::Vector<Tag>& value) { m_tagsHasBeenSet = true; m_tags = value; }
201 inline void SetTags(Aws::Vector<Tag>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
202 inline DescribedAgreement& WithTags(const Aws::Vector<Tag>& value) { SetTags(value); return *this;}
203 inline DescribedAgreement& WithTags(Aws::Vector<Tag>&& value) { SetTags(std::move(value)); return *this;}
204 inline DescribedAgreement& AddTags(const Tag& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; }
205 inline DescribedAgreement& AddTags(Tag&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(value)); return *this; }
207 private:
208
209 Aws::String m_arn;
210 bool m_arnHasBeenSet = false;
211
212 Aws::String m_agreementId;
213 bool m_agreementIdHasBeenSet = false;
214
215 Aws::String m_description;
216 bool m_descriptionHasBeenSet = false;
217
218 AgreementStatusType m_status;
219 bool m_statusHasBeenSet = false;
220
221 Aws::String m_serverId;
222 bool m_serverIdHasBeenSet = false;
223
224 Aws::String m_localProfileId;
225 bool m_localProfileIdHasBeenSet = false;
226
227 Aws::String m_partnerProfileId;
228 bool m_partnerProfileIdHasBeenSet = false;
229
230 Aws::String m_baseDirectory;
231 bool m_baseDirectoryHasBeenSet = false;
232
233 Aws::String m_accessRole;
234 bool m_accessRoleHasBeenSet = false;
235
236 Aws::Vector<Tag> m_tags;
237 bool m_tagsHasBeenSet = false;
238 };
239
240} // namespace Model
241} // namespace Transfer
242} // namespace Aws
DescribedAgreement & WithServerId(const Aws::String &value)
AWS_TRANSFER_API Aws::Utils::Json::JsonValue Jsonize() const
DescribedAgreement & WithDescription(const Aws::String &value)
DescribedAgreement & WithStatus(const AgreementStatusType &value)
AWS_TRANSFER_API DescribedAgreement & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetBaseDirectory(const Aws::String &value)
DescribedAgreement & WithAccessRole(Aws::String &&value)
DescribedAgreement & WithAccessRole(const char *value)
void SetTags(const Aws::Vector< Tag > &value)
DescribedAgreement & WithAgreementId(const Aws::String &value)
DescribedAgreement & WithBaseDirectory(Aws::String &&value)
DescribedAgreement & WithArn(const char *value)
DescribedAgreement & WithLocalProfileId(const char *value)
DescribedAgreement & WithServerId(const char *value)
DescribedAgreement & AddTags(Tag &&value)
DescribedAgreement & WithArn(Aws::String &&value)
void SetAccessRole(const Aws::String &value)
DescribedAgreement & WithAccessRole(const Aws::String &value)
DescribedAgreement & WithPartnerProfileId(const char *value)
const Aws::String & GetAgreementId() const
void SetTags(Aws::Vector< Tag > &&value)
DescribedAgreement & WithPartnerProfileId(Aws::String &&value)
DescribedAgreement & WithPartnerProfileId(const Aws::String &value)
DescribedAgreement & WithBaseDirectory(const char *value)
DescribedAgreement & AddTags(const Tag &value)
void SetDescription(const Aws::String &value)
const Aws::String & GetPartnerProfileId() const
DescribedAgreement & WithBaseDirectory(const Aws::String &value)
DescribedAgreement & WithArn(const Aws::String &value)
DescribedAgreement & WithTags(Aws::Vector< Tag > &&value)
DescribedAgreement & WithAgreementId(Aws::String &&value)
AWS_TRANSFER_API DescribedAgreement(Aws::Utils::Json::JsonView jsonValue)
DescribedAgreement & WithTags(const Aws::Vector< Tag > &value)
void SetLocalProfileId(const Aws::String &value)
const Aws::String & GetBaseDirectory() const
DescribedAgreement & WithLocalProfileId(const Aws::String &value)
const AgreementStatusType & GetStatus() const
const Aws::Vector< Tag > & GetTags() const
DescribedAgreement & WithStatus(AgreementStatusType &&value)
DescribedAgreement & WithDescription(const char *value)
void SetPartnerProfileId(const Aws::String &value)
void SetAgreementId(const Aws::String &value)
void SetStatus(const AgreementStatusType &value)
const Aws::String & GetDescription() const
void SetStatus(AgreementStatusType &&value)
const Aws::String & GetLocalProfileId() const
DescribedAgreement & WithAgreementId(const char *value)
DescribedAgreement & WithLocalProfileId(Aws::String &&value)
void SetArn(const Aws::String &value)
DescribedAgreement & WithServerId(Aws::String &&value)
DescribedAgreement & WithDescription(Aws::String &&value)
void SetServerId(const Aws::String &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue