AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
AssociationSetDetails.h
1
6#pragma once
7#include <aws/securityhub/SecurityHub_EXPORTS.h>
8#include <aws/securityhub/model/AssociationStateDetails.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 SecurityHub
23{
24namespace Model
25{
26
34 {
35 public:
36 AWS_SECURITYHUB_API AssociationSetDetails() = default;
37 AWS_SECURITYHUB_API AssociationSetDetails(Aws::Utils::Json::JsonView jsonValue);
39 AWS_SECURITYHUB_API Aws::Utils::Json::JsonValue Jsonize() const;
40
41
43
47 inline const AssociationStateDetails& GetAssociationState() const { return m_associationState; }
48 inline bool AssociationStateHasBeenSet() const { return m_associationStateHasBeenSet; }
49 template<typename AssociationStateT = AssociationStateDetails>
50 void SetAssociationState(AssociationStateT&& value) { m_associationStateHasBeenSet = true; m_associationState = std::forward<AssociationStateT>(value); }
51 template<typename AssociationStateT = AssociationStateDetails>
52 AssociationSetDetails& WithAssociationState(AssociationStateT&& value) { SetAssociationState(std::forward<AssociationStateT>(value)); return *this;}
54
56
59 inline const Aws::String& GetGatewayId() const { return m_gatewayId; }
60 inline bool GatewayIdHasBeenSet() const { return m_gatewayIdHasBeenSet; }
61 template<typename GatewayIdT = Aws::String>
62 void SetGatewayId(GatewayIdT&& value) { m_gatewayIdHasBeenSet = true; m_gatewayId = std::forward<GatewayIdT>(value); }
63 template<typename GatewayIdT = Aws::String>
64 AssociationSetDetails& WithGatewayId(GatewayIdT&& value) { SetGatewayId(std::forward<GatewayIdT>(value)); return *this;}
66
68
71 inline bool GetMain() const { return m_main; }
72 inline bool MainHasBeenSet() const { return m_mainHasBeenSet; }
73 inline void SetMain(bool value) { m_mainHasBeenSet = true; m_main = value; }
74 inline AssociationSetDetails& WithMain(bool value) { SetMain(value); return *this;}
76
78
81 inline const Aws::String& GetRouteTableAssociationId() const { return m_routeTableAssociationId; }
82 inline bool RouteTableAssociationIdHasBeenSet() const { return m_routeTableAssociationIdHasBeenSet; }
83 template<typename RouteTableAssociationIdT = Aws::String>
84 void SetRouteTableAssociationId(RouteTableAssociationIdT&& value) { m_routeTableAssociationIdHasBeenSet = true; m_routeTableAssociationId = std::forward<RouteTableAssociationIdT>(value); }
85 template<typename RouteTableAssociationIdT = Aws::String>
86 AssociationSetDetails& WithRouteTableAssociationId(RouteTableAssociationIdT&& value) { SetRouteTableAssociationId(std::forward<RouteTableAssociationIdT>(value)); return *this;}
88
90
93 inline const Aws::String& GetRouteTableId() const { return m_routeTableId; }
94 inline bool RouteTableIdHasBeenSet() const { return m_routeTableIdHasBeenSet; }
95 template<typename RouteTableIdT = Aws::String>
96 void SetRouteTableId(RouteTableIdT&& value) { m_routeTableIdHasBeenSet = true; m_routeTableId = std::forward<RouteTableIdT>(value); }
97 template<typename RouteTableIdT = Aws::String>
98 AssociationSetDetails& WithRouteTableId(RouteTableIdT&& value) { SetRouteTableId(std::forward<RouteTableIdT>(value)); return *this;}
100
102
106 inline const Aws::String& GetSubnetId() const { return m_subnetId; }
107 inline bool SubnetIdHasBeenSet() const { return m_subnetIdHasBeenSet; }
108 template<typename SubnetIdT = Aws::String>
109 void SetSubnetId(SubnetIdT&& value) { m_subnetIdHasBeenSet = true; m_subnetId = std::forward<SubnetIdT>(value); }
110 template<typename SubnetIdT = Aws::String>
111 AssociationSetDetails& WithSubnetId(SubnetIdT&& value) { SetSubnetId(std::forward<SubnetIdT>(value)); return *this;}
113 private:
114
115 AssociationStateDetails m_associationState;
116 bool m_associationStateHasBeenSet = false;
117
118 Aws::String m_gatewayId;
119 bool m_gatewayIdHasBeenSet = false;
120
121 bool m_main{false};
122 bool m_mainHasBeenSet = false;
123
124 Aws::String m_routeTableAssociationId;
125 bool m_routeTableAssociationIdHasBeenSet = false;
126
127 Aws::String m_routeTableId;
128 bool m_routeTableIdHasBeenSet = false;
129
130 Aws::String m_subnetId;
131 bool m_subnetIdHasBeenSet = false;
132 };
133
134} // namespace Model
135} // namespace SecurityHub
136} // namespace Aws
AssociationSetDetails & WithSubnetId(SubnetIdT &&value)
AssociationSetDetails & WithRouteTableId(RouteTableIdT &&value)
void SetAssociationState(AssociationStateT &&value)
AssociationSetDetails & WithRouteTableAssociationId(RouteTableAssociationIdT &&value)
AssociationSetDetails & WithMain(bool value)
AssociationSetDetails & WithGatewayId(GatewayIdT &&value)
AWS_SECURITYHUB_API AssociationSetDetails(Aws::Utils::Json::JsonView jsonValue)
AWS_SECURITYHUB_API AssociationSetDetails & operator=(Aws::Utils::Json::JsonView jsonValue)
AssociationSetDetails & WithAssociationState(AssociationStateT &&value)
void SetRouteTableAssociationId(RouteTableAssociationIdT &&value)
AWS_SECURITYHUB_API AssociationSetDetails()=default
AWS_SECURITYHUB_API Aws::Utils::Json::JsonValue Jsonize() const
const AssociationStateDetails & GetAssociationState() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue