AWS SDK for C++

AWS SDK for C++ Version 1.11.750

Loading...
Searching...
No Matches
CreateProfileRequest.h
1
6#pragma once
7#include <aws/awstransfer/TransferRequest.h>
8#include <aws/awstransfer/Transfer_EXPORTS.h>
9#include <aws/awstransfer/model/ProfileType.h>
10#include <aws/awstransfer/model/Tag.h>
11#include <aws/core/utils/memory/stl/AWSString.h>
12#include <aws/core/utils/memory/stl/AWSVector.h>
13
14#include <utility>
15
16namespace Aws {
17namespace Transfer {
18namespace Model {
19
23 public:
24 AWS_TRANSFER_API CreateProfileRequest() = default;
25
26 // Service request name is the Operation name which will send this request out,
27 // each operation should has unique request name, so that we can get operation's name from this request.
28 // Note: this is not true for response, multiple operations may have the same response name,
29 // so we can not get operation's name from response.
30 inline virtual const char* GetServiceRequestName() const override { return "CreateProfile"; }
31
32 AWS_TRANSFER_API Aws::String SerializePayload() const override;
33
35
37
45 inline const Aws::String& GetAs2Id() const { return m_as2Id; }
46 inline bool As2IdHasBeenSet() const { return m_as2IdHasBeenSet; }
47 template <typename As2IdT = Aws::String>
48 void SetAs2Id(As2IdT&& value) {
49 m_as2IdHasBeenSet = true;
50 m_as2Id = std::forward<As2IdT>(value);
51 }
52 template <typename As2IdT = Aws::String>
54 SetAs2Id(std::forward<As2IdT>(value));
55 return *this;
56 }
58
60
67 inline ProfileType GetProfileType() const { return m_profileType; }
68 inline bool ProfileTypeHasBeenSet() const { return m_profileTypeHasBeenSet; }
69 inline void SetProfileType(ProfileType value) {
70 m_profileTypeHasBeenSet = true;
71 m_profileType = value;
72 }
74 SetProfileType(value);
75 return *this;
76 }
78
80
84 inline const Aws::Vector<Aws::String>& GetCertificateIds() const { return m_certificateIds; }
85 inline bool CertificateIdsHasBeenSet() const { return m_certificateIdsHasBeenSet; }
86 template <typename CertificateIdsT = Aws::Vector<Aws::String>>
87 void SetCertificateIds(CertificateIdsT&& value) {
88 m_certificateIdsHasBeenSet = true;
89 m_certificateIds = std::forward<CertificateIdsT>(value);
90 }
91 template <typename CertificateIdsT = Aws::Vector<Aws::String>>
92 CreateProfileRequest& WithCertificateIds(CertificateIdsT&& value) {
93 SetCertificateIds(std::forward<CertificateIdsT>(value));
94 return *this;
95 }
96 template <typename CertificateIdsT = Aws::String>
97 CreateProfileRequest& AddCertificateIds(CertificateIdsT&& value) {
98 m_certificateIdsHasBeenSet = true;
99 m_certificateIds.emplace_back(std::forward<CertificateIdsT>(value));
100 return *this;
101 }
103
105
108 inline const Aws::Vector<Tag>& GetTags() const { return m_tags; }
109 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
110 template <typename TagsT = Aws::Vector<Tag>>
111 void SetTags(TagsT&& value) {
112 m_tagsHasBeenSet = true;
113 m_tags = std::forward<TagsT>(value);
114 }
115 template <typename TagsT = Aws::Vector<Tag>>
117 SetTags(std::forward<TagsT>(value));
118 return *this;
119 }
120 template <typename TagsT = Tag>
122 m_tagsHasBeenSet = true;
123 m_tags.emplace_back(std::forward<TagsT>(value));
124 return *this;
125 }
127 private:
128 Aws::String m_as2Id;
129
130 ProfileType m_profileType{ProfileType::NOT_SET};
131
132 Aws::Vector<Aws::String> m_certificateIds;
133
134 Aws::Vector<Tag> m_tags;
135 bool m_as2IdHasBeenSet = false;
136 bool m_profileTypeHasBeenSet = false;
137 bool m_certificateIdsHasBeenSet = false;
138 bool m_tagsHasBeenSet = false;
139};
140
141} // namespace Model
142} // namespace Transfer
143} // namespace Aws
AWS_TRANSFER_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
CreateProfileRequest & AddCertificateIds(CertificateIdsT &&value)
CreateProfileRequest & WithTags(TagsT &&value)
const Aws::Vector< Aws::String > & GetCertificateIds() const
virtual const char * GetServiceRequestName() const override
CreateProfileRequest & WithCertificateIds(CertificateIdsT &&value)
AWS_TRANSFER_API CreateProfileRequest()=default
CreateProfileRequest & AddTags(TagsT &&value)
AWS_TRANSFER_API Aws::String SerializePayload() const override
CreateProfileRequest & WithAs2Id(As2IdT &&value)
const Aws::Vector< Tag > & GetTags() const
CreateProfileRequest & WithProfileType(ProfileType value)
void SetCertificateIds(CertificateIdsT &&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