AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
CreateSubnetGroupRequest.h
1
6#pragma once
7#include <aws/dax/DAX_EXPORTS.h>
8#include <aws/dax/DAXRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <utility>
12
13namespace Aws
14{
15namespace DAX
16{
17namespace Model
18{
19
23 {
24 public:
25 AWS_DAX_API CreateSubnetGroupRequest() = default;
26
27 // Service request name is the Operation name which will send this request out,
28 // each operation should has unique request name, so that we can get operation's name from this request.
29 // Note: this is not true for response, multiple operations may have the same response name,
30 // so we can not get operation's name from response.
31 inline virtual const char* GetServiceRequestName() const override { return "CreateSubnetGroup"; }
32
33 AWS_DAX_API Aws::String SerializePayload() const override;
34
36
37
39
42 inline const Aws::String& GetSubnetGroupName() const { return m_subnetGroupName; }
43 inline bool SubnetGroupNameHasBeenSet() const { return m_subnetGroupNameHasBeenSet; }
44 template<typename SubnetGroupNameT = Aws::String>
45 void SetSubnetGroupName(SubnetGroupNameT&& value) { m_subnetGroupNameHasBeenSet = true; m_subnetGroupName = std::forward<SubnetGroupNameT>(value); }
46 template<typename SubnetGroupNameT = Aws::String>
47 CreateSubnetGroupRequest& WithSubnetGroupName(SubnetGroupNameT&& value) { SetSubnetGroupName(std::forward<SubnetGroupNameT>(value)); return *this;}
49
51
54 inline const Aws::String& GetDescription() const { return m_description; }
55 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
56 template<typename DescriptionT = Aws::String>
57 void SetDescription(DescriptionT&& value) { m_descriptionHasBeenSet = true; m_description = std::forward<DescriptionT>(value); }
58 template<typename DescriptionT = Aws::String>
59 CreateSubnetGroupRequest& WithDescription(DescriptionT&& value) { SetDescription(std::forward<DescriptionT>(value)); return *this;}
61
63
66 inline const Aws::Vector<Aws::String>& GetSubnetIds() const { return m_subnetIds; }
67 inline bool SubnetIdsHasBeenSet() const { return m_subnetIdsHasBeenSet; }
68 template<typename SubnetIdsT = Aws::Vector<Aws::String>>
69 void SetSubnetIds(SubnetIdsT&& value) { m_subnetIdsHasBeenSet = true; m_subnetIds = std::forward<SubnetIdsT>(value); }
70 template<typename SubnetIdsT = Aws::Vector<Aws::String>>
71 CreateSubnetGroupRequest& WithSubnetIds(SubnetIdsT&& value) { SetSubnetIds(std::forward<SubnetIdsT>(value)); return *this;}
72 template<typename SubnetIdsT = Aws::String>
73 CreateSubnetGroupRequest& AddSubnetIds(SubnetIdsT&& value) { m_subnetIdsHasBeenSet = true; m_subnetIds.emplace_back(std::forward<SubnetIdsT>(value)); return *this; }
75 private:
76
77 Aws::String m_subnetGroupName;
78 bool m_subnetGroupNameHasBeenSet = false;
79
80 Aws::String m_description;
81 bool m_descriptionHasBeenSet = false;
82
83 Aws::Vector<Aws::String> m_subnetIds;
84 bool m_subnetIdsHasBeenSet = false;
85 };
86
87} // namespace Model
88} // namespace DAX
89} // 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