AWS SDK for C++

AWS SDK for C++ Version 1.11.612

Loading...
Searching...
No Matches
CreateReplicationSubnetGroupRequest.h
1
6#pragma once
7#include <aws/dms/DatabaseMigrationService_EXPORTS.h>
8#include <aws/dms/DatabaseMigrationServiceRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <aws/dms/model/Tag.h>
12#include <utility>
13
14namespace Aws
15{
16namespace DatabaseMigrationService
17{
18namespace Model
19{
20
27 {
28 public:
29 AWS_DATABASEMIGRATIONSERVICE_API CreateReplicationSubnetGroupRequest() = default;
30
31 // Service request name is the Operation name which will send this request out,
32 // each operation should has unique request name, so that we can get operation's name from this request.
33 // Note: this is not true for response, multiple operations may have the same response name,
34 // so we can not get operation's name from response.
35 inline virtual const char* GetServiceRequestName() const override { return "CreateReplicationSubnetGroup"; }
36
37 AWS_DATABASEMIGRATIONSERVICE_API Aws::String SerializePayload() const override;
38
39 AWS_DATABASEMIGRATIONSERVICE_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
40
41
43
49 inline const Aws::String& GetReplicationSubnetGroupIdentifier() const { return m_replicationSubnetGroupIdentifier; }
50 inline bool ReplicationSubnetGroupIdentifierHasBeenSet() const { return m_replicationSubnetGroupIdentifierHasBeenSet; }
51 template<typename ReplicationSubnetGroupIdentifierT = Aws::String>
52 void SetReplicationSubnetGroupIdentifier(ReplicationSubnetGroupIdentifierT&& value) { m_replicationSubnetGroupIdentifierHasBeenSet = true; m_replicationSubnetGroupIdentifier = std::forward<ReplicationSubnetGroupIdentifierT>(value); }
53 template<typename ReplicationSubnetGroupIdentifierT = Aws::String>
54 CreateReplicationSubnetGroupRequest& WithReplicationSubnetGroupIdentifier(ReplicationSubnetGroupIdentifierT&& value) { SetReplicationSubnetGroupIdentifier(std::forward<ReplicationSubnetGroupIdentifierT>(value)); return *this;}
56
58
62 inline const Aws::String& GetReplicationSubnetGroupDescription() const { return m_replicationSubnetGroupDescription; }
63 inline bool ReplicationSubnetGroupDescriptionHasBeenSet() const { return m_replicationSubnetGroupDescriptionHasBeenSet; }
64 template<typename ReplicationSubnetGroupDescriptionT = Aws::String>
65 void SetReplicationSubnetGroupDescription(ReplicationSubnetGroupDescriptionT&& value) { m_replicationSubnetGroupDescriptionHasBeenSet = true; m_replicationSubnetGroupDescription = std::forward<ReplicationSubnetGroupDescriptionT>(value); }
66 template<typename ReplicationSubnetGroupDescriptionT = Aws::String>
67 CreateReplicationSubnetGroupRequest& WithReplicationSubnetGroupDescription(ReplicationSubnetGroupDescriptionT&& value) { SetReplicationSubnetGroupDescription(std::forward<ReplicationSubnetGroupDescriptionT>(value)); return *this;}
69
71
74 inline const Aws::Vector<Aws::String>& GetSubnetIds() const { return m_subnetIds; }
75 inline bool SubnetIdsHasBeenSet() const { return m_subnetIdsHasBeenSet; }
76 template<typename SubnetIdsT = Aws::Vector<Aws::String>>
77 void SetSubnetIds(SubnetIdsT&& value) { m_subnetIdsHasBeenSet = true; m_subnetIds = std::forward<SubnetIdsT>(value); }
78 template<typename SubnetIdsT = Aws::Vector<Aws::String>>
79 CreateReplicationSubnetGroupRequest& WithSubnetIds(SubnetIdsT&& value) { SetSubnetIds(std::forward<SubnetIdsT>(value)); return *this;}
80 template<typename SubnetIdsT = Aws::String>
81 CreateReplicationSubnetGroupRequest& AddSubnetIds(SubnetIdsT&& value) { m_subnetIdsHasBeenSet = true; m_subnetIds.emplace_back(std::forward<SubnetIdsT>(value)); return *this; }
83
85
88 inline const Aws::Vector<Tag>& GetTags() const { return m_tags; }
89 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
90 template<typename TagsT = Aws::Vector<Tag>>
91 void SetTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags = std::forward<TagsT>(value); }
92 template<typename TagsT = Aws::Vector<Tag>>
93 CreateReplicationSubnetGroupRequest& WithTags(TagsT&& value) { SetTags(std::forward<TagsT>(value)); return *this;}
94 template<typename TagsT = Tag>
95 CreateReplicationSubnetGroupRequest& AddTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags.emplace_back(std::forward<TagsT>(value)); return *this; }
97 private:
98
99 Aws::String m_replicationSubnetGroupIdentifier;
100 bool m_replicationSubnetGroupIdentifierHasBeenSet = false;
101
102 Aws::String m_replicationSubnetGroupDescription;
103 bool m_replicationSubnetGroupDescriptionHasBeenSet = false;
104
105 Aws::Vector<Aws::String> m_subnetIds;
106 bool m_subnetIdsHasBeenSet = false;
107
108 Aws::Vector<Tag> m_tags;
109 bool m_tagsHasBeenSet = false;
110 };
111
112} // namespace Model
113} // namespace DatabaseMigrationService
114} // 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