AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
CreatePrivateGraphEndpointRequest.h
1
6#pragma once
7#include <aws/neptune-graph/NeptuneGraph_EXPORTS.h>
8#include <aws/neptune-graph/NeptuneGraphRequest.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 NeptuneGraph
16{
17namespace Model
18{
19
23 {
24 public:
25 AWS_NEPTUNEGRAPH_API CreatePrivateGraphEndpointRequest() = 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 "CreatePrivateGraphEndpoint"; }
32
33 AWS_NEPTUNEGRAPH_API Aws::String SerializePayload() const override;
34
38 AWS_NEPTUNEGRAPH_API EndpointParameters GetEndpointContextParams() const override;
39
41
44 inline const Aws::String& GetGraphIdentifier() const { return m_graphIdentifier; }
45 inline bool GraphIdentifierHasBeenSet() const { return m_graphIdentifierHasBeenSet; }
46 template<typename GraphIdentifierT = Aws::String>
47 void SetGraphIdentifier(GraphIdentifierT&& value) { m_graphIdentifierHasBeenSet = true; m_graphIdentifier = std::forward<GraphIdentifierT>(value); }
48 template<typename GraphIdentifierT = Aws::String>
49 CreatePrivateGraphEndpointRequest& WithGraphIdentifier(GraphIdentifierT&& value) { SetGraphIdentifier(std::forward<GraphIdentifierT>(value)); return *this;}
51
53
56 inline const Aws::String& GetVpcId() const { return m_vpcId; }
57 inline bool VpcIdHasBeenSet() const { return m_vpcIdHasBeenSet; }
58 template<typename VpcIdT = Aws::String>
59 void SetVpcId(VpcIdT&& value) { m_vpcIdHasBeenSet = true; m_vpcId = std::forward<VpcIdT>(value); }
60 template<typename VpcIdT = Aws::String>
61 CreatePrivateGraphEndpointRequest& WithVpcId(VpcIdT&& value) { SetVpcId(std::forward<VpcIdT>(value)); return *this;}
63
65
68 inline const Aws::Vector<Aws::String>& GetSubnetIds() const { return m_subnetIds; }
69 inline bool SubnetIdsHasBeenSet() const { return m_subnetIdsHasBeenSet; }
70 template<typename SubnetIdsT = Aws::Vector<Aws::String>>
71 void SetSubnetIds(SubnetIdsT&& value) { m_subnetIdsHasBeenSet = true; m_subnetIds = std::forward<SubnetIdsT>(value); }
72 template<typename SubnetIdsT = Aws::Vector<Aws::String>>
73 CreatePrivateGraphEndpointRequest& WithSubnetIds(SubnetIdsT&& value) { SetSubnetIds(std::forward<SubnetIdsT>(value)); return *this;}
74 template<typename SubnetIdsT = Aws::String>
75 CreatePrivateGraphEndpointRequest& AddSubnetIds(SubnetIdsT&& value) { m_subnetIdsHasBeenSet = true; m_subnetIds.emplace_back(std::forward<SubnetIdsT>(value)); return *this; }
77
79
82 inline const Aws::Vector<Aws::String>& GetVpcSecurityGroupIds() const { return m_vpcSecurityGroupIds; }
83 inline bool VpcSecurityGroupIdsHasBeenSet() const { return m_vpcSecurityGroupIdsHasBeenSet; }
84 template<typename VpcSecurityGroupIdsT = Aws::Vector<Aws::String>>
85 void SetVpcSecurityGroupIds(VpcSecurityGroupIdsT&& value) { m_vpcSecurityGroupIdsHasBeenSet = true; m_vpcSecurityGroupIds = std::forward<VpcSecurityGroupIdsT>(value); }
86 template<typename VpcSecurityGroupIdsT = Aws::Vector<Aws::String>>
87 CreatePrivateGraphEndpointRequest& WithVpcSecurityGroupIds(VpcSecurityGroupIdsT&& value) { SetVpcSecurityGroupIds(std::forward<VpcSecurityGroupIdsT>(value)); return *this;}
88 template<typename VpcSecurityGroupIdsT = Aws::String>
89 CreatePrivateGraphEndpointRequest& AddVpcSecurityGroupIds(VpcSecurityGroupIdsT&& value) { m_vpcSecurityGroupIdsHasBeenSet = true; m_vpcSecurityGroupIds.emplace_back(std::forward<VpcSecurityGroupIdsT>(value)); return *this; }
91 private:
92
93 Aws::String m_graphIdentifier;
94 bool m_graphIdentifierHasBeenSet = false;
95
96 Aws::String m_vpcId;
97 bool m_vpcIdHasBeenSet = false;
98
99 Aws::Vector<Aws::String> m_subnetIds;
100 bool m_subnetIdsHasBeenSet = false;
101
102 Aws::Vector<Aws::String> m_vpcSecurityGroupIds;
103 bool m_vpcSecurityGroupIdsHasBeenSet = false;
104 };
105
106} // namespace Model
107} // namespace NeptuneGraph
108} // namespace Aws
CreatePrivateGraphEndpointRequest & WithVpcId(VpcIdT &&value)
AWS_NEPTUNEGRAPH_API Aws::String SerializePayload() const override
CreatePrivateGraphEndpointRequest & AddVpcSecurityGroupIds(VpcSecurityGroupIdsT &&value)
CreatePrivateGraphEndpointRequest & WithVpcSecurityGroupIds(VpcSecurityGroupIdsT &&value)
AWS_NEPTUNEGRAPH_API CreatePrivateGraphEndpointRequest()=default
CreatePrivateGraphEndpointRequest & WithGraphIdentifier(GraphIdentifierT &&value)
CreatePrivateGraphEndpointRequest & AddSubnetIds(SubnetIdsT &&value)
AWS_NEPTUNEGRAPH_API EndpointParameters GetEndpointContextParams() const override
CreatePrivateGraphEndpointRequest & WithSubnetIds(SubnetIdsT &&value)
Aws::Endpoint::EndpointParameters EndpointParameters
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector