AWS SDK for C++

AWS SDK for C++ Version 1.11.612

Loading...
Searching...
No Matches
CreateProfileRequest.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/ProfileType.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 CreateProfileRequest() = default;
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 "CreateProfile"; }
34
35 AWS_TRANSFER_API Aws::String SerializePayload() const override;
36
38
39
41
49 inline const Aws::String& GetAs2Id() const { return m_as2Id; }
50 inline bool As2IdHasBeenSet() const { return m_as2IdHasBeenSet; }
51 template<typename As2IdT = Aws::String>
52 void SetAs2Id(As2IdT&& value) { m_as2IdHasBeenSet = true; m_as2Id = std::forward<As2IdT>(value); }
53 template<typename As2IdT = Aws::String>
54 CreateProfileRequest& WithAs2Id(As2IdT&& value) { SetAs2Id(std::forward<As2IdT>(value)); return *this;}
56
58
65 inline ProfileType GetProfileType() const { return m_profileType; }
66 inline bool ProfileTypeHasBeenSet() const { return m_profileTypeHasBeenSet; }
67 inline void SetProfileType(ProfileType value) { m_profileTypeHasBeenSet = true; m_profileType = value; }
68 inline CreateProfileRequest& WithProfileType(ProfileType value) { SetProfileType(value); return *this;}
70
72
76 inline const Aws::Vector<Aws::String>& GetCertificateIds() const { return m_certificateIds; }
77 inline bool CertificateIdsHasBeenSet() const { return m_certificateIdsHasBeenSet; }
78 template<typename CertificateIdsT = Aws::Vector<Aws::String>>
79 void SetCertificateIds(CertificateIdsT&& value) { m_certificateIdsHasBeenSet = true; m_certificateIds = std::forward<CertificateIdsT>(value); }
80 template<typename CertificateIdsT = Aws::Vector<Aws::String>>
81 CreateProfileRequest& WithCertificateIds(CertificateIdsT&& value) { SetCertificateIds(std::forward<CertificateIdsT>(value)); return *this;}
82 template<typename CertificateIdsT = Aws::String>
83 CreateProfileRequest& AddCertificateIds(CertificateIdsT&& value) { m_certificateIdsHasBeenSet = true; m_certificateIds.emplace_back(std::forward<CertificateIdsT>(value)); return *this; }
85
87
90 inline const Aws::Vector<Tag>& GetTags() const { return m_tags; }
91 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
92 template<typename TagsT = Aws::Vector<Tag>>
93 void SetTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags = std::forward<TagsT>(value); }
94 template<typename TagsT = Aws::Vector<Tag>>
95 CreateProfileRequest& WithTags(TagsT&& value) { SetTags(std::forward<TagsT>(value)); return *this;}
96 template<typename TagsT = Tag>
97 CreateProfileRequest& AddTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags.emplace_back(std::forward<TagsT>(value)); return *this; }
99 private:
100
101 Aws::String m_as2Id;
102 bool m_as2IdHasBeenSet = false;
103
104 ProfileType m_profileType{ProfileType::NOT_SET};
105 bool m_profileTypeHasBeenSet = false;
106
107 Aws::Vector<Aws::String> m_certificateIds;
108 bool m_certificateIdsHasBeenSet = false;
109
110 Aws::Vector<Tag> m_tags;
111 bool m_tagsHasBeenSet = false;
112 };
113
114} // namespace Model
115} // namespace Transfer
116} // 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