AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
ServiceNetworkEndpointAssociation.h
1
6#pragma once
7#include <aws/vpc-lattice/VPCLattice_EXPORTS.h>
8#include <aws/core/utils/DateTime.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <utility>
11
12namespace Aws
13{
14namespace Utils
15{
16namespace Json
17{
18 class JsonValue;
19 class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace VPCLattice
23{
24namespace Model
25{
26
34 {
35 public:
36 AWS_VPCLATTICE_API ServiceNetworkEndpointAssociation() = default;
39 AWS_VPCLATTICE_API Aws::Utils::Json::JsonValue Jsonize() const;
40
41
43
46 inline const Aws::Utils::DateTime& GetCreatedAt() const { return m_createdAt; }
47 inline bool CreatedAtHasBeenSet() const { return m_createdAtHasBeenSet; }
48 template<typename CreatedAtT = Aws::Utils::DateTime>
49 void SetCreatedAt(CreatedAtT&& value) { m_createdAtHasBeenSet = true; m_createdAt = std::forward<CreatedAtT>(value); }
50 template<typename CreatedAtT = Aws::Utils::DateTime>
51 ServiceNetworkEndpointAssociation& WithCreatedAt(CreatedAtT&& value) { SetCreatedAt(std::forward<CreatedAtT>(value)); return *this;}
53
55
58 inline const Aws::String& GetId() const { return m_id; }
59 inline bool IdHasBeenSet() const { return m_idHasBeenSet; }
60 template<typename IdT = Aws::String>
61 void SetId(IdT&& value) { m_idHasBeenSet = true; m_id = std::forward<IdT>(value); }
62 template<typename IdT = Aws::String>
63 ServiceNetworkEndpointAssociation& WithId(IdT&& value) { SetId(std::forward<IdT>(value)); return *this;}
65
67
70 inline const Aws::String& GetServiceNetworkArn() const { return m_serviceNetworkArn; }
71 inline bool ServiceNetworkArnHasBeenSet() const { return m_serviceNetworkArnHasBeenSet; }
72 template<typename ServiceNetworkArnT = Aws::String>
73 void SetServiceNetworkArn(ServiceNetworkArnT&& value) { m_serviceNetworkArnHasBeenSet = true; m_serviceNetworkArn = std::forward<ServiceNetworkArnT>(value); }
74 template<typename ServiceNetworkArnT = Aws::String>
75 ServiceNetworkEndpointAssociation& WithServiceNetworkArn(ServiceNetworkArnT&& value) { SetServiceNetworkArn(std::forward<ServiceNetworkArnT>(value)); return *this;}
77
79
82 inline const Aws::String& GetState() const { return m_state; }
83 inline bool StateHasBeenSet() const { return m_stateHasBeenSet; }
84 template<typename StateT = Aws::String>
85 void SetState(StateT&& value) { m_stateHasBeenSet = true; m_state = std::forward<StateT>(value); }
86 template<typename StateT = Aws::String>
87 ServiceNetworkEndpointAssociation& WithState(StateT&& value) { SetState(std::forward<StateT>(value)); return *this;}
89
91
94 inline const Aws::String& GetVpcEndpointId() const { return m_vpcEndpointId; }
95 inline bool VpcEndpointIdHasBeenSet() const { return m_vpcEndpointIdHasBeenSet; }
96 template<typename VpcEndpointIdT = Aws::String>
97 void SetVpcEndpointId(VpcEndpointIdT&& value) { m_vpcEndpointIdHasBeenSet = true; m_vpcEndpointId = std::forward<VpcEndpointIdT>(value); }
98 template<typename VpcEndpointIdT = Aws::String>
99 ServiceNetworkEndpointAssociation& WithVpcEndpointId(VpcEndpointIdT&& value) { SetVpcEndpointId(std::forward<VpcEndpointIdT>(value)); return *this;}
101
103
106 inline const Aws::String& GetVpcEndpointOwnerId() const { return m_vpcEndpointOwnerId; }
107 inline bool VpcEndpointOwnerIdHasBeenSet() const { return m_vpcEndpointOwnerIdHasBeenSet; }
108 template<typename VpcEndpointOwnerIdT = Aws::String>
109 void SetVpcEndpointOwnerId(VpcEndpointOwnerIdT&& value) { m_vpcEndpointOwnerIdHasBeenSet = true; m_vpcEndpointOwnerId = std::forward<VpcEndpointOwnerIdT>(value); }
110 template<typename VpcEndpointOwnerIdT = Aws::String>
111 ServiceNetworkEndpointAssociation& WithVpcEndpointOwnerId(VpcEndpointOwnerIdT&& value) { SetVpcEndpointOwnerId(std::forward<VpcEndpointOwnerIdT>(value)); return *this;}
113
115
118 inline const Aws::String& GetVpcId() const { return m_vpcId; }
119 inline bool VpcIdHasBeenSet() const { return m_vpcIdHasBeenSet; }
120 template<typename VpcIdT = Aws::String>
121 void SetVpcId(VpcIdT&& value) { m_vpcIdHasBeenSet = true; m_vpcId = std::forward<VpcIdT>(value); }
122 template<typename VpcIdT = Aws::String>
123 ServiceNetworkEndpointAssociation& WithVpcId(VpcIdT&& value) { SetVpcId(std::forward<VpcIdT>(value)); return *this;}
125 private:
126
127 Aws::Utils::DateTime m_createdAt{};
128 bool m_createdAtHasBeenSet = false;
129
130 Aws::String m_id;
131 bool m_idHasBeenSet = false;
132
133 Aws::String m_serviceNetworkArn;
134 bool m_serviceNetworkArnHasBeenSet = false;
135
136 Aws::String m_state;
137 bool m_stateHasBeenSet = false;
138
139 Aws::String m_vpcEndpointId;
140 bool m_vpcEndpointIdHasBeenSet = false;
141
142 Aws::String m_vpcEndpointOwnerId;
143 bool m_vpcEndpointOwnerIdHasBeenSet = false;
144
145 Aws::String m_vpcId;
146 bool m_vpcIdHasBeenSet = false;
147 };
148
149} // namespace Model
150} // namespace VPCLattice
151} // namespace Aws
ServiceNetworkEndpointAssociation & WithServiceNetworkArn(ServiceNetworkArnT &&value)
ServiceNetworkEndpointAssociation & WithVpcEndpointId(VpcEndpointIdT &&value)
AWS_VPCLATTICE_API ServiceNetworkEndpointAssociation()=default
ServiceNetworkEndpointAssociation & WithState(StateT &&value)
AWS_VPCLATTICE_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_VPCLATTICE_API ServiceNetworkEndpointAssociation & operator=(Aws::Utils::Json::JsonView jsonValue)
ServiceNetworkEndpointAssociation & WithVpcId(VpcIdT &&value)
ServiceNetworkEndpointAssociation & WithVpcEndpointOwnerId(VpcEndpointOwnerIdT &&value)
ServiceNetworkEndpointAssociation & WithCreatedAt(CreatedAtT &&value)
AWS_VPCLATTICE_API ServiceNetworkEndpointAssociation(Aws::Utils::Json::JsonView jsonValue)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue