AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
CreateDBSubnetGroupRequest.h
1
6#pragma once
7#include <aws/neptune/Neptune_EXPORTS.h>
8#include <aws/neptune/NeptuneRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <aws/neptune/model/Tag.h>
12#include <utility>
13
14namespace Aws
15{
16namespace Neptune
17{
18namespace Model
19{
20
24 {
25 public:
26 AWS_NEPTUNE_API CreateDBSubnetGroupRequest();
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 "CreateDBSubnetGroup"; }
33
34 AWS_NEPTUNE_API Aws::String SerializePayload() const override;
35
36 protected:
37 AWS_NEPTUNE_API void DumpBodyToUrl(Aws::Http::URI& uri ) const override;
38
39 public:
40
42
48 inline const Aws::String& GetDBSubnetGroupName() const{ return m_dBSubnetGroupName; }
49 inline bool DBSubnetGroupNameHasBeenSet() const { return m_dBSubnetGroupNameHasBeenSet; }
50 inline void SetDBSubnetGroupName(const Aws::String& value) { m_dBSubnetGroupNameHasBeenSet = true; m_dBSubnetGroupName = value; }
51 inline void SetDBSubnetGroupName(Aws::String&& value) { m_dBSubnetGroupNameHasBeenSet = true; m_dBSubnetGroupName = std::move(value); }
52 inline void SetDBSubnetGroupName(const char* value) { m_dBSubnetGroupNameHasBeenSet = true; m_dBSubnetGroupName.assign(value); }
54 inline CreateDBSubnetGroupRequest& WithDBSubnetGroupName(Aws::String&& value) { SetDBSubnetGroupName(std::move(value)); return *this;}
55 inline CreateDBSubnetGroupRequest& WithDBSubnetGroupName(const char* value) { SetDBSubnetGroupName(value); return *this;}
57
59
62 inline const Aws::String& GetDBSubnetGroupDescription() const{ return m_dBSubnetGroupDescription; }
63 inline bool DBSubnetGroupDescriptionHasBeenSet() const { return m_dBSubnetGroupDescriptionHasBeenSet; }
64 inline void SetDBSubnetGroupDescription(const Aws::String& value) { m_dBSubnetGroupDescriptionHasBeenSet = true; m_dBSubnetGroupDescription = value; }
65 inline void SetDBSubnetGroupDescription(Aws::String&& value) { m_dBSubnetGroupDescriptionHasBeenSet = true; m_dBSubnetGroupDescription = std::move(value); }
66 inline void SetDBSubnetGroupDescription(const char* value) { m_dBSubnetGroupDescriptionHasBeenSet = true; m_dBSubnetGroupDescription.assign(value); }
71
73
76 inline const Aws::Vector<Aws::String>& GetSubnetIds() const{ return m_subnetIds; }
77 inline bool SubnetIdsHasBeenSet() const { return m_subnetIdsHasBeenSet; }
78 inline void SetSubnetIds(const Aws::Vector<Aws::String>& value) { m_subnetIdsHasBeenSet = true; m_subnetIds = value; }
79 inline void SetSubnetIds(Aws::Vector<Aws::String>&& value) { m_subnetIdsHasBeenSet = true; m_subnetIds = std::move(value); }
81 inline CreateDBSubnetGroupRequest& WithSubnetIds(Aws::Vector<Aws::String>&& value) { SetSubnetIds(std::move(value)); return *this;}
82 inline CreateDBSubnetGroupRequest& AddSubnetIds(const Aws::String& value) { m_subnetIdsHasBeenSet = true; m_subnetIds.push_back(value); return *this; }
83 inline CreateDBSubnetGroupRequest& AddSubnetIds(Aws::String&& value) { m_subnetIdsHasBeenSet = true; m_subnetIds.push_back(std::move(value)); return *this; }
84 inline CreateDBSubnetGroupRequest& AddSubnetIds(const char* value) { m_subnetIdsHasBeenSet = true; m_subnetIds.push_back(value); return *this; }
86
88
91 inline const Aws::Vector<Tag>& GetTags() const{ return m_tags; }
92 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
93 inline void SetTags(const Aws::Vector<Tag>& value) { m_tagsHasBeenSet = true; m_tags = value; }
94 inline void SetTags(Aws::Vector<Tag>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
95 inline CreateDBSubnetGroupRequest& WithTags(const Aws::Vector<Tag>& value) { SetTags(value); return *this;}
96 inline CreateDBSubnetGroupRequest& WithTags(Aws::Vector<Tag>&& value) { SetTags(std::move(value)); return *this;}
97 inline CreateDBSubnetGroupRequest& AddTags(const Tag& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; }
98 inline CreateDBSubnetGroupRequest& AddTags(Tag&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(value)); return *this; }
100 private:
101
102 Aws::String m_dBSubnetGroupName;
103 bool m_dBSubnetGroupNameHasBeenSet = false;
104
105 Aws::String m_dBSubnetGroupDescription;
106 bool m_dBSubnetGroupDescriptionHasBeenSet = false;
107
108 Aws::Vector<Aws::String> m_subnetIds;
109 bool m_subnetIdsHasBeenSet = false;
110
111 Aws::Vector<Tag> m_tags;
112 bool m_tagsHasBeenSet = false;
113 };
114
115} // namespace Model
116} // namespace Neptune
117} // namespace Aws
AWS_NEPTUNE_API void DumpBodyToUrl(Aws::Http::URI &uri) const override
CreateDBSubnetGroupRequest & WithDBSubnetGroupName(Aws::String &&value)
CreateDBSubnetGroupRequest & WithSubnetIds(Aws::Vector< Aws::String > &&value)
CreateDBSubnetGroupRequest & WithTags(const Aws::Vector< Tag > &value)
CreateDBSubnetGroupRequest & WithDBSubnetGroupName(const Aws::String &value)
void SetSubnetIds(Aws::Vector< Aws::String > &&value)
CreateDBSubnetGroupRequest & WithDBSubnetGroupName(const char *value)
CreateDBSubnetGroupRequest & WithTags(Aws::Vector< Tag > &&value)
CreateDBSubnetGroupRequest & WithSubnetIds(const Aws::Vector< Aws::String > &value)
CreateDBSubnetGroupRequest & AddSubnetIds(Aws::String &&value)
CreateDBSubnetGroupRequest & WithDBSubnetGroupDescription(const char *value)
CreateDBSubnetGroupRequest & WithDBSubnetGroupDescription(const Aws::String &value)
CreateDBSubnetGroupRequest & WithDBSubnetGroupDescription(Aws::String &&value)
void SetSubnetIds(const Aws::Vector< Aws::String > &value)
const Aws::Vector< Aws::String > & GetSubnetIds() const
CreateDBSubnetGroupRequest & AddSubnetIds(const Aws::String &value)
AWS_NEPTUNE_API Aws::String SerializePayload() const override
CreateDBSubnetGroupRequest & AddTags(Tag &&value)
virtual const char * GetServiceRequestName() const override
CreateDBSubnetGroupRequest & AddTags(const Tag &value)
CreateDBSubnetGroupRequest & AddSubnetIds(const char *value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector