7#include <aws/lambda-microvms/LambdaMicrovms_EXPORTS.h>
8#include <aws/lambda-microvms/model/PortRange.h>
9#include <aws/lambda-microvms/model/Unit.h>
20namespace LambdaMicrovms {
40 inline int GetPort()
const {
return m_port; }
43 m_portHasBeenSet =
true;
58 template <
typename RangeT = PortRange>
60 m_rangeHasBeenSet =
true;
61 m_range = std::forward<RangeT>(value);
63 template <
typename RangeT = PortRange>
65 SetRange(std::forward<RangeT>(value));
76 template <
typename AllPortsT = Unit>
78 m_allPortsHasBeenSet =
true;
79 m_allPorts = std::forward<AllPortsT>(value);
81 template <
typename AllPortsT = Unit>
93 bool m_portHasBeenSet =
false;
94 bool m_rangeHasBeenSet =
false;
95 bool m_allPortsHasBeenSet =
false;
AWS_LAMBDAMICROVMS_API PortSpecification()=default
bool PortHasBeenSet() const
PortSpecification & WithPort(int value)
PortSpecification & WithRange(RangeT &&value)
void SetRange(RangeT &&value)
void SetAllPorts(AllPortsT &&value)
const PortRange & GetRange() const
AWS_LAMBDAMICROVMS_API PortSpecification(Aws::Utils::Json::JsonView jsonValue)
AWS_LAMBDAMICROVMS_API PortSpecification & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_LAMBDAMICROVMS_API Aws::Utils::Json::JsonValue Jsonize() const
bool RangeHasBeenSet() const
const Unit & GetAllPorts() const
PortSpecification & WithAllPorts(AllPortsT &&value)
bool AllPortsHasBeenSet() const
Aws::Utils::Json::JsonValue JsonValue