AWS SDK for C++

AWS SDK for C++ Version 1.11.743

Loading...
Searching...
No Matches
CreateReplicationSubnetGroupRequest.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/dms/DatabaseMigrationServiceRequest.h>
10#include <aws/dms/DatabaseMigrationService_EXPORTS.h>
11#include <aws/dms/model/Tag.h>
12
13#include <utility>
14
15namespace Aws {
16namespace DatabaseMigrationService {
17namespace Model {
18
25 public:
26 AWS_DATABASEMIGRATIONSERVICE_API CreateReplicationSubnetGroupRequest() = default;
27
28 // Service request name is the Operation name which will send this request out,
29 // each operation should has unique request name, so that we can get operation's name from this request.
30 // Note: this is not true for response, multiple operations may have the same response name,
31 // so we can not get operation's name from response.
32 inline virtual const char* GetServiceRequestName() const override { return "CreateReplicationSubnetGroup"; }
33
34 AWS_DATABASEMIGRATIONSERVICE_API Aws::String SerializePayload() const override;
35
36 AWS_DATABASEMIGRATIONSERVICE_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
37
39
45 inline const Aws::String& GetReplicationSubnetGroupIdentifier() const { return m_replicationSubnetGroupIdentifier; }
46 inline bool ReplicationSubnetGroupIdentifierHasBeenSet() const { return m_replicationSubnetGroupIdentifierHasBeenSet; }
47 template <typename ReplicationSubnetGroupIdentifierT = Aws::String>
48 void SetReplicationSubnetGroupIdentifier(ReplicationSubnetGroupIdentifierT&& value) {
49 m_replicationSubnetGroupIdentifierHasBeenSet = true;
50 m_replicationSubnetGroupIdentifier = std::forward<ReplicationSubnetGroupIdentifierT>(value);
51 }
52 template <typename ReplicationSubnetGroupIdentifierT = Aws::String>
54 SetReplicationSubnetGroupIdentifier(std::forward<ReplicationSubnetGroupIdentifierT>(value));
55 return *this;
56 }
58
60
64 inline const Aws::String& GetReplicationSubnetGroupDescription() const { return m_replicationSubnetGroupDescription; }
65 inline bool ReplicationSubnetGroupDescriptionHasBeenSet() const { return m_replicationSubnetGroupDescriptionHasBeenSet; }
66 template <typename ReplicationSubnetGroupDescriptionT = Aws::String>
67 void SetReplicationSubnetGroupDescription(ReplicationSubnetGroupDescriptionT&& value) {
68 m_replicationSubnetGroupDescriptionHasBeenSet = true;
69 m_replicationSubnetGroupDescription = std::forward<ReplicationSubnetGroupDescriptionT>(value);
70 }
71 template <typename ReplicationSubnetGroupDescriptionT = Aws::String>
73 SetReplicationSubnetGroupDescription(std::forward<ReplicationSubnetGroupDescriptionT>(value));
74 return *this;
75 }
77
79
82 inline const Aws::Vector<Aws::String>& GetSubnetIds() const { return m_subnetIds; }
83 inline bool SubnetIdsHasBeenSet() const { return m_subnetIdsHasBeenSet; }
84 template <typename SubnetIdsT = Aws::Vector<Aws::String>>
85 void SetSubnetIds(SubnetIdsT&& value) {
86 m_subnetIdsHasBeenSet = true;
87 m_subnetIds = std::forward<SubnetIdsT>(value);
88 }
89 template <typename SubnetIdsT = Aws::Vector<Aws::String>>
91 SetSubnetIds(std::forward<SubnetIdsT>(value));
92 return *this;
93 }
94 template <typename SubnetIdsT = Aws::String>
96 m_subnetIdsHasBeenSet = true;
97 m_subnetIds.emplace_back(std::forward<SubnetIdsT>(value));
98 return *this;
99 }
101
103
106 inline const Aws::Vector<Tag>& GetTags() const { return m_tags; }
107 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
108 template <typename TagsT = Aws::Vector<Tag>>
109 void SetTags(TagsT&& value) {
110 m_tagsHasBeenSet = true;
111 m_tags = std::forward<TagsT>(value);
112 }
113 template <typename TagsT = Aws::Vector<Tag>>
115 SetTags(std::forward<TagsT>(value));
116 return *this;
117 }
118 template <typename TagsT = Tag>
120 m_tagsHasBeenSet = true;
121 m_tags.emplace_back(std::forward<TagsT>(value));
122 return *this;
123 }
125 private:
126 Aws::String m_replicationSubnetGroupIdentifier;
127
128 Aws::String m_replicationSubnetGroupDescription;
129
130 Aws::Vector<Aws::String> m_subnetIds;
131
132 Aws::Vector<Tag> m_tags;
133 bool m_replicationSubnetGroupIdentifierHasBeenSet = false;
134 bool m_replicationSubnetGroupDescriptionHasBeenSet = false;
135 bool m_subnetIdsHasBeenSet = false;
136 bool m_tagsHasBeenSet = false;
137};
138
139} // namespace Model
140} // namespace DatabaseMigrationService
141} // namespace Aws
AWS_DATABASEMIGRATIONSERVICE_API CreateReplicationSubnetGroupRequest()=default
CreateReplicationSubnetGroupRequest & WithReplicationSubnetGroupIdentifier(ReplicationSubnetGroupIdentifierT &&value)
CreateReplicationSubnetGroupRequest & WithReplicationSubnetGroupDescription(ReplicationSubnetGroupDescriptionT &&value)
AWS_DATABASEMIGRATIONSERVICE_API Aws::String SerializePayload() const override
AWS_DATABASEMIGRATIONSERVICE_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
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