AWS SDK for C++

AWS SDK for C++ Version 1.11.609

Loading...
Searching...
No Matches
ClusterNetworkSettings.h
1
6#pragma once
7#include <aws/medialive/MediaLive_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/medialive/model/InterfaceMapping.h>
11#include <utility>
12
13namespace Aws
14{
15namespace Utils
16{
17namespace Json
18{
19 class JsonValue;
20 class JsonView;
21} // namespace Json
22} // namespace Utils
23namespace MediaLive
24{
25namespace Model
26{
27
35 {
36 public:
37 AWS_MEDIALIVE_API ClusterNetworkSettings() = default;
40 AWS_MEDIALIVE_API Aws::Utils::Json::JsonValue Jsonize() const;
41
42
44
51 inline const Aws::String& GetDefaultRoute() const { return m_defaultRoute; }
52 inline bool DefaultRouteHasBeenSet() const { return m_defaultRouteHasBeenSet; }
53 template<typename DefaultRouteT = Aws::String>
54 void SetDefaultRoute(DefaultRouteT&& value) { m_defaultRouteHasBeenSet = true; m_defaultRoute = std::forward<DefaultRouteT>(value); }
55 template<typename DefaultRouteT = Aws::String>
56 ClusterNetworkSettings& WithDefaultRoute(DefaultRouteT&& value) { SetDefaultRoute(std::forward<DefaultRouteT>(value)); return *this;}
58
60
65 inline const Aws::Vector<InterfaceMapping>& GetInterfaceMappings() const { return m_interfaceMappings; }
66 inline bool InterfaceMappingsHasBeenSet() const { return m_interfaceMappingsHasBeenSet; }
67 template<typename InterfaceMappingsT = Aws::Vector<InterfaceMapping>>
68 void SetInterfaceMappings(InterfaceMappingsT&& value) { m_interfaceMappingsHasBeenSet = true; m_interfaceMappings = std::forward<InterfaceMappingsT>(value); }
69 template<typename InterfaceMappingsT = Aws::Vector<InterfaceMapping>>
70 ClusterNetworkSettings& WithInterfaceMappings(InterfaceMappingsT&& value) { SetInterfaceMappings(std::forward<InterfaceMappingsT>(value)); return *this;}
71 template<typename InterfaceMappingsT = InterfaceMapping>
72 ClusterNetworkSettings& AddInterfaceMappings(InterfaceMappingsT&& value) { m_interfaceMappingsHasBeenSet = true; m_interfaceMappings.emplace_back(std::forward<InterfaceMappingsT>(value)); return *this; }
74 private:
75
76 Aws::String m_defaultRoute;
77 bool m_defaultRouteHasBeenSet = false;
78
79 Aws::Vector<InterfaceMapping> m_interfaceMappings;
80 bool m_interfaceMappingsHasBeenSet = false;
81 };
82
83} // namespace Model
84} // namespace MediaLive
85} // namespace Aws
ClusterNetworkSettings & WithDefaultRoute(DefaultRouteT &&value)
AWS_MEDIALIVE_API ClusterNetworkSettings()=default
AWS_MEDIALIVE_API ClusterNetworkSettings(Aws::Utils::Json::JsonView jsonValue)
void SetInterfaceMappings(InterfaceMappingsT &&value)
ClusterNetworkSettings & WithInterfaceMappings(InterfaceMappingsT &&value)
AWS_MEDIALIVE_API ClusterNetworkSettings & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_MEDIALIVE_API Aws::Utils::Json::JsonValue Jsonize() const
ClusterNetworkSettings & AddInterfaceMappings(InterfaceMappingsT &&value)
const Aws::Vector< InterfaceMapping > & GetInterfaceMappings() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue