AWS SDK for C++

AWS SDK for C++ Version 1.11.609

Loading...
Searching...
No Matches
Route.h
1
6#pragma once
7#include <aws/medialive/MediaLive_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <utility>
10
11namespace Aws
12{
13namespace Utils
14{
15namespace Json
16{
17 class JsonValue;
18 class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace MediaLive
22{
23namespace Model
24{
25
32 class Route
33 {
34 public:
35 AWS_MEDIALIVE_API Route() = default;
36 AWS_MEDIALIVE_API Route(Aws::Utils::Json::JsonView jsonValue);
37 AWS_MEDIALIVE_API Route& operator=(Aws::Utils::Json::JsonView jsonValue);
38 AWS_MEDIALIVE_API Aws::Utils::Json::JsonValue Jsonize() const;
39
40
42
45 inline const Aws::String& GetCidr() const { return m_cidr; }
46 inline bool CidrHasBeenSet() const { return m_cidrHasBeenSet; }
47 template<typename CidrT = Aws::String>
48 void SetCidr(CidrT&& value) { m_cidrHasBeenSet = true; m_cidr = std::forward<CidrT>(value); }
49 template<typename CidrT = Aws::String>
50 Route& WithCidr(CidrT&& value) { SetCidr(std::forward<CidrT>(value)); return *this;}
52
54
57 inline const Aws::String& GetGateway() const { return m_gateway; }
58 inline bool GatewayHasBeenSet() const { return m_gatewayHasBeenSet; }
59 template<typename GatewayT = Aws::String>
60 void SetGateway(GatewayT&& value) { m_gatewayHasBeenSet = true; m_gateway = std::forward<GatewayT>(value); }
61 template<typename GatewayT = Aws::String>
62 Route& WithGateway(GatewayT&& value) { SetGateway(std::forward<GatewayT>(value)); return *this;}
64 private:
65
66 Aws::String m_cidr;
67 bool m_cidrHasBeenSet = false;
68
69 Aws::String m_gateway;
70 bool m_gatewayHasBeenSet = false;
71 };
72
73} // namespace Model
74} // namespace MediaLive
75} // namespace Aws
Route & WithGateway(GatewayT &&value)
Definition Route.h:62
void SetCidr(CidrT &&value)
Definition Route.h:48
void SetGateway(GatewayT &&value)
Definition Route.h:60
AWS_MEDIALIVE_API Route & operator=(Aws::Utils::Json::JsonView jsonValue)
bool GatewayHasBeenSet() const
Definition Route.h:58
bool CidrHasBeenSet() const
Definition Route.h:46
const Aws::String & GetGateway() const
Definition Route.h:57
Route & WithCidr(CidrT &&value)
Definition Route.h:50
AWS_MEDIALIVE_API Route()=default
AWS_MEDIALIVE_API Aws::Utils::Json::JsonValue Jsonize() const
const Aws::String & GetCidr() const
Definition Route.h:45
AWS_MEDIALIVE_API Route(Aws::Utils::Json::JsonView jsonValue)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue