AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetAs2Id(const Aws::String& value) { m_as2IdHasBeenSet = true; m_as2Id = value; }
52 inline void SetAs2Id(Aws::String&& value) { m_as2IdHasBeenSet = true; m_as2Id = std::move(value); }
53 inline void SetAs2Id(const char* value) { m_as2IdHasBeenSet = true; m_as2Id.assign(value); }
54 inline CreateProfileRequest& WithAs2Id(const Aws::String& value) { SetAs2Id(value); return *this;}
55 inline CreateProfileRequest& WithAs2Id(Aws::String&& value) { SetAs2Id(std::move(value)); return *this;}
56 inline CreateProfileRequest& WithAs2Id(const char* value) { SetAs2Id(value); return *this;}
58
60
67 inline const ProfileType& GetProfileType() const{ return m_profileType; }
68 inline bool ProfileTypeHasBeenSet() const { return m_profileTypeHasBeenSet; }
69 inline void SetProfileType(const ProfileType& value) { m_profileTypeHasBeenSet = true; m_profileType = value; }
70 inline void SetProfileType(ProfileType&& value) { m_profileTypeHasBeenSet = true; m_profileType = std::move(value); }
71 inline CreateProfileRequest& WithProfileType(const ProfileType& value) { SetProfileType(value); return *this;}
72 inline CreateProfileRequest& WithProfileType(ProfileType&& value) { SetProfileType(std::move(value)); return *this;}
74
76
80 inline const Aws::Vector<Aws::String>& GetCertificateIds() const{ return m_certificateIds; }
81 inline bool CertificateIdsHasBeenSet() const { return m_certificateIdsHasBeenSet; }
82 inline void SetCertificateIds(const Aws::Vector<Aws::String>& value) { m_certificateIdsHasBeenSet = true; m_certificateIds = value; }
83 inline void SetCertificateIds(Aws::Vector<Aws::String>&& value) { m_certificateIdsHasBeenSet = true; m_certificateIds = std::move(value); }
85 inline CreateProfileRequest& WithCertificateIds(Aws::Vector<Aws::String>&& value) { SetCertificateIds(std::move(value)); return *this;}
86 inline CreateProfileRequest& AddCertificateIds(const Aws::String& value) { m_certificateIdsHasBeenSet = true; m_certificateIds.push_back(value); return *this; }
87 inline CreateProfileRequest& AddCertificateIds(Aws::String&& value) { m_certificateIdsHasBeenSet = true; m_certificateIds.push_back(std::move(value)); return *this; }
88 inline CreateProfileRequest& AddCertificateIds(const char* value) { m_certificateIdsHasBeenSet = true; m_certificateIds.push_back(value); return *this; }
90
92
95 inline const Aws::Vector<Tag>& GetTags() const{ return m_tags; }
96 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
97 inline void SetTags(const Aws::Vector<Tag>& value) { m_tagsHasBeenSet = true; m_tags = value; }
98 inline void SetTags(Aws::Vector<Tag>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
99 inline CreateProfileRequest& WithTags(const Aws::Vector<Tag>& value) { SetTags(value); return *this;}
100 inline CreateProfileRequest& WithTags(Aws::Vector<Tag>&& value) { SetTags(std::move(value)); return *this;}
101 inline CreateProfileRequest& AddTags(const Tag& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; }
102 inline CreateProfileRequest& AddTags(Tag&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(value)); return *this; }
104 private:
105
106 Aws::String m_as2Id;
107 bool m_as2IdHasBeenSet = false;
108
109 ProfileType m_profileType;
110 bool m_profileTypeHasBeenSet = false;
111
112 Aws::Vector<Aws::String> m_certificateIds;
113 bool m_certificateIdsHasBeenSet = false;
114
115 Aws::Vector<Tag> m_tags;
116 bool m_tagsHasBeenSet = false;
117 };
118
119} // namespace Model
120} // namespace Transfer
121} // namespace Aws
AWS_TRANSFER_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
void SetTags(Aws::Vector< Tag > &&value)
CreateProfileRequest & AddTags(Tag &&value)
CreateProfileRequest & AddCertificateIds(const char *value)
const Aws::Vector< Aws::String > & GetCertificateIds() const
CreateProfileRequest & WithAs2Id(const char *value)
CreateProfileRequest & WithProfileType(ProfileType &&value)
CreateProfileRequest & WithTags(const Aws::Vector< Tag > &value)
CreateProfileRequest & WithCertificateIds(Aws::Vector< Aws::String > &&value)
void SetCertificateIds(Aws::Vector< Aws::String > &&value)
virtual const char * GetServiceRequestName() const override
void SetCertificateIds(const Aws::Vector< Aws::String > &value)
CreateProfileRequest & AddCertificateIds(Aws::String &&value)
CreateProfileRequest & WithTags(Aws::Vector< Tag > &&value)
void SetProfileType(const ProfileType &value)
CreateProfileRequest & WithProfileType(const ProfileType &value)
void SetTags(const Aws::Vector< Tag > &value)
CreateProfileRequest & WithAs2Id(Aws::String &&value)
CreateProfileRequest & AddCertificateIds(const Aws::String &value)
AWS_TRANSFER_API Aws::String SerializePayload() const override
const Aws::Vector< Tag > & GetTags() const
CreateProfileRequest & WithAs2Id(const Aws::String &value)
CreateProfileRequest & AddTags(const Tag &value)
CreateProfileRequest & WithCertificateIds(const Aws::Vector< Aws::String > &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