AWS SDK for C++

AWS SDK for C++ Version 1.11.746

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