AWS SDK for C++

AWS SDK for C++ Version 1.11.764

Loading...
Searching...
No Matches
DescribedProfile.h
1
6#pragma once
7#include <aws/awstransfer/Transfer_EXPORTS.h>
8#include <aws/awstransfer/model/ProfileType.h>
9#include <aws/awstransfer/model/Tag.h>
10#include <aws/core/utils/memory/stl/AWSString.h>
11#include <aws/core/utils/memory/stl/AWSVector.h>
12
13#include <utility>
14
15namespace Aws {
16namespace Utils {
17namespace Json {
18class JsonValue;
19class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace Transfer {
23namespace Model {
24
32 public:
33 AWS_TRANSFER_API DescribedProfile() = default;
34 AWS_TRANSFER_API DescribedProfile(Aws::Utils::Json::JsonView jsonValue);
36 AWS_TRANSFER_API Aws::Utils::Json::JsonValue Jsonize() const;
37
39
42 inline const Aws::String& GetArn() const { return m_arn; }
43 inline bool ArnHasBeenSet() const { return m_arnHasBeenSet; }
44 template <typename ArnT = Aws::String>
45 void SetArn(ArnT&& value) {
46 m_arnHasBeenSet = true;
47 m_arn = std::forward<ArnT>(value);
48 }
49 template <typename ArnT = Aws::String>
50 DescribedProfile& WithArn(ArnT&& value) {
51 SetArn(std::forward<ArnT>(value));
52 return *this;
53 }
55
57
60 inline const Aws::String& GetProfileId() const { return m_profileId; }
61 inline bool ProfileIdHasBeenSet() const { return m_profileIdHasBeenSet; }
62 template <typename ProfileIdT = Aws::String>
63 void SetProfileId(ProfileIdT&& value) {
64 m_profileIdHasBeenSet = true;
65 m_profileId = std::forward<ProfileIdT>(value);
66 }
67 template <typename ProfileIdT = Aws::String>
68 DescribedProfile& WithProfileId(ProfileIdT&& value) {
69 SetProfileId(std::forward<ProfileIdT>(value));
70 return *this;
71 }
73
75
80 inline ProfileType GetProfileType() const { return m_profileType; }
81 inline bool ProfileTypeHasBeenSet() const { return m_profileTypeHasBeenSet; }
82 inline void SetProfileType(ProfileType value) {
83 m_profileTypeHasBeenSet = true;
84 m_profileType = value;
85 }
87 SetProfileType(value);
88 return *this;
89 }
91
93
101 inline const Aws::String& GetAs2Id() const { return m_as2Id; }
102 inline bool As2IdHasBeenSet() const { return m_as2IdHasBeenSet; }
103 template <typename As2IdT = Aws::String>
104 void SetAs2Id(As2IdT&& value) {
105 m_as2IdHasBeenSet = true;
106 m_as2Id = std::forward<As2IdT>(value);
107 }
108 template <typename As2IdT = Aws::String>
109 DescribedProfile& WithAs2Id(As2IdT&& value) {
110 SetAs2Id(std::forward<As2IdT>(value));
111 return *this;
112 }
114
116
120 inline const Aws::Vector<Aws::String>& GetCertificateIds() const { return m_certificateIds; }
121 inline bool CertificateIdsHasBeenSet() const { return m_certificateIdsHasBeenSet; }
122 template <typename CertificateIdsT = Aws::Vector<Aws::String>>
123 void SetCertificateIds(CertificateIdsT&& value) {
124 m_certificateIdsHasBeenSet = true;
125 m_certificateIds = std::forward<CertificateIdsT>(value);
126 }
127 template <typename CertificateIdsT = Aws::Vector<Aws::String>>
128 DescribedProfile& WithCertificateIds(CertificateIdsT&& value) {
129 SetCertificateIds(std::forward<CertificateIdsT>(value));
130 return *this;
131 }
132 template <typename CertificateIdsT = Aws::String>
133 DescribedProfile& AddCertificateIds(CertificateIdsT&& value) {
134 m_certificateIdsHasBeenSet = true;
135 m_certificateIds.emplace_back(std::forward<CertificateIdsT>(value));
136 return *this;
137 }
139
141
144 inline const Aws::Vector<Tag>& GetTags() const { return m_tags; }
145 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
146 template <typename TagsT = Aws::Vector<Tag>>
147 void SetTags(TagsT&& value) {
148 m_tagsHasBeenSet = true;
149 m_tags = std::forward<TagsT>(value);
150 }
151 template <typename TagsT = Aws::Vector<Tag>>
152 DescribedProfile& WithTags(TagsT&& value) {
153 SetTags(std::forward<TagsT>(value));
154 return *this;
155 }
156 template <typename TagsT = Tag>
157 DescribedProfile& AddTags(TagsT&& value) {
158 m_tagsHasBeenSet = true;
159 m_tags.emplace_back(std::forward<TagsT>(value));
160 return *this;
161 }
163 private:
164 Aws::String m_arn;
165
166 Aws::String m_profileId;
167
168 ProfileType m_profileType{ProfileType::NOT_SET};
169
170 Aws::String m_as2Id;
171
172 Aws::Vector<Aws::String> m_certificateIds;
173
174 Aws::Vector<Tag> m_tags;
175 bool m_arnHasBeenSet = false;
176 bool m_profileIdHasBeenSet = false;
177 bool m_profileTypeHasBeenSet = false;
178 bool m_as2IdHasBeenSet = false;
179 bool m_certificateIdsHasBeenSet = false;
180 bool m_tagsHasBeenSet = false;
181};
182
183} // namespace Model
184} // namespace Transfer
185} // namespace Aws
DescribedProfile & WithProfileId(ProfileIdT &&value)
DescribedProfile & WithArn(ArnT &&value)
AWS_TRANSFER_API DescribedProfile()=default
const Aws::Vector< Aws::String > & GetCertificateIds() const
DescribedProfile & AddCertificateIds(CertificateIdsT &&value)
DescribedProfile & WithAs2Id(As2IdT &&value)
const Aws::String & GetProfileId() const
const Aws::String & GetArn() const
DescribedProfile & WithCertificateIds(CertificateIdsT &&value)
DescribedProfile & AddTags(TagsT &&value)
AWS_TRANSFER_API DescribedProfile(Aws::Utils::Json::JsonView jsonValue)
AWS_TRANSFER_API Aws::Utils::Json::JsonValue Jsonize() const
DescribedProfile & WithTags(TagsT &&value)
DescribedProfile & WithProfileType(ProfileType value)
void SetCertificateIds(CertificateIdsT &&value)
AWS_TRANSFER_API DescribedProfile & operator=(Aws::Utils::Json::JsonView jsonValue)
const Aws::Vector< Tag > & GetTags() const
const Aws::String & GetAs2Id() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue