AWS SDK for C++

AWS SDK for C++ Version 1.11.748

Loading...
Searching...
No Matches
GatewayNetwork.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/mediaconnect/MediaConnect_EXPORTS.h>
9
10#include <utility>
11
12namespace Aws {
13namespace Utils {
14namespace Json {
15class JsonValue;
16class JsonView;
17} // namespace Json
18} // namespace Utils
19namespace MediaConnect {
20namespace Model {
21
28 public:
29 AWS_MEDIACONNECT_API GatewayNetwork() = default;
30 AWS_MEDIACONNECT_API GatewayNetwork(Aws::Utils::Json::JsonView jsonValue);
31 AWS_MEDIACONNECT_API GatewayNetwork& operator=(Aws::Utils::Json::JsonView jsonValue);
32 AWS_MEDIACONNECT_API Aws::Utils::Json::JsonValue Jsonize() const;
33
35
40 inline const Aws::String& GetCidrBlock() const { return m_cidrBlock; }
41 inline bool CidrBlockHasBeenSet() const { return m_cidrBlockHasBeenSet; }
42 template <typename CidrBlockT = Aws::String>
43 void SetCidrBlock(CidrBlockT&& value) {
44 m_cidrBlockHasBeenSet = true;
45 m_cidrBlock = std::forward<CidrBlockT>(value);
46 }
47 template <typename CidrBlockT = Aws::String>
48 GatewayNetwork& WithCidrBlock(CidrBlockT&& value) {
49 SetCidrBlock(std::forward<CidrBlockT>(value));
50 return *this;
51 }
53
55
59 inline const Aws::String& GetName() const { return m_name; }
60 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
61 template <typename NameT = Aws::String>
62 void SetName(NameT&& value) {
63 m_nameHasBeenSet = true;
64 m_name = std::forward<NameT>(value);
65 }
66 template <typename NameT = Aws::String>
67 GatewayNetwork& WithName(NameT&& value) {
68 SetName(std::forward<NameT>(value));
69 return *this;
70 }
72 private:
73 Aws::String m_cidrBlock;
74
75 Aws::String m_name;
76 bool m_cidrBlockHasBeenSet = false;
77 bool m_nameHasBeenSet = false;
78};
79
80} // namespace Model
81} // namespace MediaConnect
82} // namespace Aws
AWS_MEDIACONNECT_API GatewayNetwork(Aws::Utils::Json::JsonView jsonValue)
AWS_MEDIACONNECT_API Aws::Utils::Json::JsonValue Jsonize() const
const Aws::String & GetCidrBlock() const
GatewayNetwork & WithCidrBlock(CidrBlockT &&value)
GatewayNetwork & WithName(NameT &&value)
AWS_MEDIACONNECT_API GatewayNetwork & operator=(Aws::Utils::Json::JsonView jsonValue)
const Aws::String & GetName() const
AWS_MEDIACONNECT_API GatewayNetwork()=default
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue