AWS SDK for C++

AWS SDK for C++ Version 1.11.718

Loading...
Searching...
No Matches
CreateSubnetGroupRequest.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/dax/DAXRequest.h>
10#include <aws/dax/DAX_EXPORTS.h>
11
12#include <utility>
13
14namespace Aws {
15namespace DAX {
16namespace Model {
17
21 public:
22 AWS_DAX_API CreateSubnetGroupRequest() = default;
23
24 // Service request name is the Operation name which will send this request out,
25 // each operation should has unique request name, so that we can get operation's name from this request.
26 // Note: this is not true for response, multiple operations may have the same response name,
27 // so we can not get operation's name from response.
28 inline virtual const char* GetServiceRequestName() const override { return "CreateSubnetGroup"; }
29
30 AWS_DAX_API Aws::String SerializePayload() const override;
31
33
35
38 inline const Aws::String& GetSubnetGroupName() const { return m_subnetGroupName; }
39 inline bool SubnetGroupNameHasBeenSet() const { return m_subnetGroupNameHasBeenSet; }
40 template <typename SubnetGroupNameT = Aws::String>
41 void SetSubnetGroupName(SubnetGroupNameT&& value) {
42 m_subnetGroupNameHasBeenSet = true;
43 m_subnetGroupName = std::forward<SubnetGroupNameT>(value);
44 }
45 template <typename SubnetGroupNameT = Aws::String>
46 CreateSubnetGroupRequest& WithSubnetGroupName(SubnetGroupNameT&& value) {
47 SetSubnetGroupName(std::forward<SubnetGroupNameT>(value));
48 return *this;
49 }
51
53
56 inline const Aws::String& GetDescription() const { return m_description; }
57 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
58 template <typename DescriptionT = Aws::String>
59 void SetDescription(DescriptionT&& value) {
60 m_descriptionHasBeenSet = true;
61 m_description = std::forward<DescriptionT>(value);
62 }
63 template <typename DescriptionT = Aws::String>
65 SetDescription(std::forward<DescriptionT>(value));
66 return *this;
67 }
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) {
78 m_subnetIdsHasBeenSet = true;
79 m_subnetIds = std::forward<SubnetIdsT>(value);
80 }
81 template <typename SubnetIdsT = Aws::Vector<Aws::String>>
83 SetSubnetIds(std::forward<SubnetIdsT>(value));
84 return *this;
85 }
86 template <typename SubnetIdsT = Aws::String>
88 m_subnetIdsHasBeenSet = true;
89 m_subnetIds.emplace_back(std::forward<SubnetIdsT>(value));
90 return *this;
91 }
93 private:
94 Aws::String m_subnetGroupName;
95
96 Aws::String m_description;
97
98 Aws::Vector<Aws::String> m_subnetIds;
99 bool m_subnetGroupNameHasBeenSet = false;
100 bool m_descriptionHasBeenSet = false;
101 bool m_subnetIdsHasBeenSet = false;
102};
103
104} // namespace Model
105} // namespace DAX
106} // namespace Aws
CreateSubnetGroupRequest & WithSubnetIds(SubnetIdsT &&value)
AWS_DAX_API Aws::String SerializePayload() const override
CreateSubnetGroupRequest & AddSubnetIds(SubnetIdsT &&value)
AWS_DAX_API CreateSubnetGroupRequest()=default
AWS_DAX_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
virtual const char * GetServiceRequestName() const override
CreateSubnetGroupRequest & WithDescription(DescriptionT &&value)
const Aws::Vector< Aws::String > & GetSubnetIds() const
void SetSubnetGroupName(SubnetGroupNameT &&value)
CreateSubnetGroupRequest & WithSubnetGroupName(SubnetGroupNameT &&value)
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