7#include <aws/crt/cbor/Cbor.h>
8#include <aws/gamelift/GameLift_EXPORTS.h>
9#include <aws/gamelift/model/IpProtocol.h>
33 AWS_GAMELIFT_API
ContainerPortRange(
const std::shared_ptr<Aws::Crt::Cbor::CborDecoder>& decoder);
35 AWS_GAMELIFT_API
void CborEncode(Aws::Crt::Cbor::CborEncoder& encoder)
const;
44 m_fromPortHasBeenSet =
true;
59 inline int64_t
GetToPort()
const {
return m_toPort; }
62 m_toPortHasBeenSet =
true;
78 m_protocolHasBeenSet =
true;
87 int64_t m_fromPort{0};
92 bool m_fromPortHasBeenSet =
false;
93 bool m_toPortHasBeenSet =
false;
94 bool m_protocolHasBeenSet =
false;
AWS_GAMELIFT_API ContainerPortRange & operator=(const std::shared_ptr< Aws::Crt::Cbor::CborDecoder > &decoder)
void SetProtocol(IpProtocol value)
AWS_GAMELIFT_API ContainerPortRange()=default
AWS_GAMELIFT_API void CborEncode(Aws::Crt::Cbor::CborEncoder &encoder) const
IpProtocol GetProtocol() const
void SetFromPort(int64_t value)
ContainerPortRange & WithProtocol(IpProtocol value)
int64_t GetToPort() const
ContainerPortRange & WithFromPort(int64_t value)
bool FromPortHasBeenSet() const
int64_t GetFromPort() const
bool ProtocolHasBeenSet() const
AWS_GAMELIFT_API ContainerPortRange(const std::shared_ptr< Aws::Crt::Cbor::CborDecoder > &decoder)
void SetToPort(int64_t value)
ContainerPortRange & WithToPort(int64_t value)
bool ToPortHasBeenSet() const