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/docdb/DocDB_EXPORTS.h>
8#include <aws/docdb/DocDBRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <aws/docdb/model/Tag.h>
12#include <utility>
13
14namespace Aws
15{
16namespace DocDB
17{
18namespace Model
19{
20
28 {
29 public:
31
32 // Service request name is the Operation name which will send this request out,
33 // each operation should has unique request name, so that we can get operation's name from this request.
34 // Note: this is not true for response, multiple operations may have the same response name,
35 // so we can not get operation's name from response.
36 inline virtual const char* GetServiceRequestName() const override { return "CreateDBSubnetGroup"; }
37
38 AWS_DOCDB_API Aws::String SerializePayload() const override;
39
40 protected:
41 AWS_DOCDB_API void DumpBodyToUrl(Aws::Http::URI& uri ) const override;
42
43 public:
44
46
52 inline const Aws::String& GetDBSubnetGroupName() const{ return m_dBSubnetGroupName; }
53 inline bool DBSubnetGroupNameHasBeenSet() const { return m_dBSubnetGroupNameHasBeenSet; }
54 inline void SetDBSubnetGroupName(const Aws::String& value) { m_dBSubnetGroupNameHasBeenSet = true; m_dBSubnetGroupName = value; }
55 inline void SetDBSubnetGroupName(Aws::String&& value) { m_dBSubnetGroupNameHasBeenSet = true; m_dBSubnetGroupName = std::move(value); }
56 inline void SetDBSubnetGroupName(const char* value) { m_dBSubnetGroupNameHasBeenSet = true; m_dBSubnetGroupName.assign(value); }
58 inline CreateDBSubnetGroupRequest& WithDBSubnetGroupName(Aws::String&& value) { SetDBSubnetGroupName(std::move(value)); return *this;}
59 inline CreateDBSubnetGroupRequest& WithDBSubnetGroupName(const char* value) { SetDBSubnetGroupName(value); return *this;}
61
63
66 inline const Aws::String& GetDBSubnetGroupDescription() const{ return m_dBSubnetGroupDescription; }
67 inline bool DBSubnetGroupDescriptionHasBeenSet() const { return m_dBSubnetGroupDescriptionHasBeenSet; }
68 inline void SetDBSubnetGroupDescription(const Aws::String& value) { m_dBSubnetGroupDescriptionHasBeenSet = true; m_dBSubnetGroupDescription = value; }
69 inline void SetDBSubnetGroupDescription(Aws::String&& value) { m_dBSubnetGroupDescriptionHasBeenSet = true; m_dBSubnetGroupDescription = std::move(value); }
70 inline void SetDBSubnetGroupDescription(const char* value) { m_dBSubnetGroupDescriptionHasBeenSet = true; m_dBSubnetGroupDescription.assign(value); }
75
77
80 inline const Aws::Vector<Aws::String>& GetSubnetIds() const{ return m_subnetIds; }
81 inline bool SubnetIdsHasBeenSet() const { return m_subnetIdsHasBeenSet; }
82 inline void SetSubnetIds(const Aws::Vector<Aws::String>& value) { m_subnetIdsHasBeenSet = true; m_subnetIds = value; }
83 inline void SetSubnetIds(Aws::Vector<Aws::String>&& value) { m_subnetIdsHasBeenSet = true; m_subnetIds = std::move(value); }
85 inline CreateDBSubnetGroupRequest& WithSubnetIds(Aws::Vector<Aws::String>&& value) { SetSubnetIds(std::move(value)); return *this;}
86 inline CreateDBSubnetGroupRequest& AddSubnetIds(const Aws::String& value) { m_subnetIdsHasBeenSet = true; m_subnetIds.push_back(value); return *this; }
87 inline CreateDBSubnetGroupRequest& AddSubnetIds(Aws::String&& value) { m_subnetIdsHasBeenSet = true; m_subnetIds.push_back(std::move(value)); return *this; }
88 inline CreateDBSubnetGroupRequest& AddSubnetIds(const char* value) { m_subnetIdsHasBeenSet = true; m_subnetIds.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 CreateDBSubnetGroupRequest& WithTags(const Aws::Vector<Tag>& value) { SetTags(value); return *this;}
100 inline CreateDBSubnetGroupRequest& WithTags(Aws::Vector<Tag>&& value) { SetTags(std::move(value)); return *this;}
101 inline CreateDBSubnetGroupRequest& AddTags(const Tag& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; }
102 inline CreateDBSubnetGroupRequest& AddTags(Tag&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(value)); return *this; }
104 private:
105
106 Aws::String m_dBSubnetGroupName;
107 bool m_dBSubnetGroupNameHasBeenSet = false;
108
109 Aws::String m_dBSubnetGroupDescription;
110 bool m_dBSubnetGroupDescriptionHasBeenSet = false;
111
112 Aws::Vector<Aws::String> m_subnetIds;
113 bool m_subnetIdsHasBeenSet = false;
114
115 Aws::Vector<Tag> m_tags;
116 bool m_tagsHasBeenSet = false;
117 };
118
119} // namespace Model
120} // namespace DocDB
121} // namespace Aws
CreateDBSubnetGroupRequest & WithDBSubnetGroupDescription(Aws::String &&value)
AWS_DOCDB_API void DumpBodyToUrl(Aws::Http::URI &uri) const override
CreateDBSubnetGroupRequest & WithDBSubnetGroupName(Aws::String &&value)
CreateDBSubnetGroupRequest & AddSubnetIds(const char *value)
virtual const char * GetServiceRequestName() const override
void SetSubnetIds(const Aws::Vector< Aws::String > &value)
const Aws::Vector< Aws::String > & GetSubnetIds() const
CreateDBSubnetGroupRequest & WithDBSubnetGroupName(const char *value)
CreateDBSubnetGroupRequest & WithDBSubnetGroupDescription(const Aws::String &value)
CreateDBSubnetGroupRequest & WithSubnetIds(Aws::Vector< Aws::String > &&value)
void SetSubnetIds(Aws::Vector< Aws::String > &&value)
CreateDBSubnetGroupRequest & WithSubnetIds(const Aws::Vector< Aws::String > &value)
AWS_DOCDB_API Aws::String SerializePayload() const override
CreateDBSubnetGroupRequest & WithDBSubnetGroupName(const Aws::String &value)
CreateDBSubnetGroupRequest & AddTags(Tag &&value)
CreateDBSubnetGroupRequest & AddSubnetIds(const Aws::String &value)
CreateDBSubnetGroupRequest & WithTags(const Aws::Vector< Tag > &value)
CreateDBSubnetGroupRequest & AddSubnetIds(Aws::String &&value)
CreateDBSubnetGroupRequest & WithTags(Aws::Vector< Tag > &&value)
CreateDBSubnetGroupRequest & AddTags(const Tag &value)
CreateDBSubnetGroupRequest & WithDBSubnetGroupDescription(const char *value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector