AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
CreateDBSubnetGroupRequest.h
1
6#pragma once
7#include <aws/rds/RDS_EXPORTS.h>
8#include <aws/rds/RDSRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <aws/rds/model/Tag.h>
12#include <utility>
13
14namespace Aws
15{
16namespace RDS
17{
18namespace Model
19{
20
27 {
28 public:
29 AWS_RDS_API CreateDBSubnetGroupRequest() = 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 "CreateDBSubnetGroup"; }
36
37 AWS_RDS_API Aws::String SerializePayload() const override;
38
39 protected:
40 AWS_RDS_API void DumpBodyToUrl(Aws::Http::URI& uri ) const override;
41
42 public:
43
45
52 inline const Aws::String& GetDBSubnetGroupName() const { return m_dBSubnetGroupName; }
53 inline bool DBSubnetGroupNameHasBeenSet() const { return m_dBSubnetGroupNameHasBeenSet; }
54 template<typename DBSubnetGroupNameT = Aws::String>
55 void SetDBSubnetGroupName(DBSubnetGroupNameT&& value) { m_dBSubnetGroupNameHasBeenSet = true; m_dBSubnetGroupName = std::forward<DBSubnetGroupNameT>(value); }
56 template<typename DBSubnetGroupNameT = Aws::String>
57 CreateDBSubnetGroupRequest& WithDBSubnetGroupName(DBSubnetGroupNameT&& value) { SetDBSubnetGroupName(std::forward<DBSubnetGroupNameT>(value)); return *this;}
59
61
64 inline const Aws::String& GetDBSubnetGroupDescription() const { return m_dBSubnetGroupDescription; }
65 inline bool DBSubnetGroupDescriptionHasBeenSet() const { return m_dBSubnetGroupDescriptionHasBeenSet; }
66 template<typename DBSubnetGroupDescriptionT = Aws::String>
67 void SetDBSubnetGroupDescription(DBSubnetGroupDescriptionT&& value) { m_dBSubnetGroupDescriptionHasBeenSet = true; m_dBSubnetGroupDescription = std::forward<DBSubnetGroupDescriptionT>(value); }
68 template<typename DBSubnetGroupDescriptionT = Aws::String>
69 CreateDBSubnetGroupRequest& WithDBSubnetGroupDescription(DBSubnetGroupDescriptionT&& value) { SetDBSubnetGroupDescription(std::forward<DBSubnetGroupDescriptionT>(value)); return *this;}
71
73
76 inline const Aws::Vector<Aws::String>& GetSubnetIds() const { return m_subnetIds; }
77 inline bool SubnetIdsHasBeenSet() const { return m_subnetIdsHasBeenSet; }
78 template<typename SubnetIdsT = Aws::Vector<Aws::String>>
79 void SetSubnetIds(SubnetIdsT&& value) { m_subnetIdsHasBeenSet = true; m_subnetIds = std::forward<SubnetIdsT>(value); }
80 template<typename SubnetIdsT = Aws::Vector<Aws::String>>
81 CreateDBSubnetGroupRequest& WithSubnetIds(SubnetIdsT&& value) { SetSubnetIds(std::forward<SubnetIdsT>(value)); return *this;}
82 template<typename SubnetIdsT = Aws::String>
83 CreateDBSubnetGroupRequest& AddSubnetIds(SubnetIdsT&& value) { m_subnetIdsHasBeenSet = true; m_subnetIds.emplace_back(std::forward<SubnetIdsT>(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 CreateDBSubnetGroupRequest& WithTags(TagsT&& value) { SetTags(std::forward<TagsT>(value)); return *this;}
96 template<typename TagsT = Tag>
97 CreateDBSubnetGroupRequest& AddTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags.emplace_back(std::forward<TagsT>(value)); return *this; }
99 private:
100
101 Aws::String m_dBSubnetGroupName;
102 bool m_dBSubnetGroupNameHasBeenSet = false;
103
104 Aws::String m_dBSubnetGroupDescription;
105 bool m_dBSubnetGroupDescriptionHasBeenSet = false;
106
107 Aws::Vector<Aws::String> m_subnetIds;
108 bool m_subnetIdsHasBeenSet = false;
109
110 Aws::Vector<Tag> m_tags;
111 bool m_tagsHasBeenSet = false;
112 };
113
114} // namespace Model
115} // namespace RDS
116} // namespace Aws
const Aws::Vector< Aws::String > & GetSubnetIds() const
void SetDBSubnetGroupName(DBSubnetGroupNameT &&value)
AWS_RDS_API CreateDBSubnetGroupRequest()=default
CreateDBSubnetGroupRequest & WithDBSubnetGroupName(DBSubnetGroupNameT &&value)
void SetDBSubnetGroupDescription(DBSubnetGroupDescriptionT &&value)
CreateDBSubnetGroupRequest & AddSubnetIds(SubnetIdsT &&value)
CreateDBSubnetGroupRequest & WithTags(TagsT &&value)
CreateDBSubnetGroupRequest & WithDBSubnetGroupDescription(DBSubnetGroupDescriptionT &&value)
virtual const char * GetServiceRequestName() const override
AWS_RDS_API void DumpBodyToUrl(Aws::Http::URI &uri) const override
CreateDBSubnetGroupRequest & WithSubnetIds(SubnetIdsT &&value)
AWS_RDS_API Aws::String SerializePayload() const override
CreateDBSubnetGroupRequest & AddTags(TagsT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector