AWS SDK for C++

AWS SDK for C++ Version 1.11.743

Loading...
Searching...
No Matches
ClusterNetworkSettings.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/medialive/MediaLive_EXPORTS.h>
10#include <aws/medialive/model/InterfaceMapping.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Utils {
16namespace Json {
17class JsonValue;
18class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace MediaLive {
22namespace Model {
23
31 public:
32 AWS_MEDIALIVE_API ClusterNetworkSettings() = default;
35 AWS_MEDIALIVE_API Aws::Utils::Json::JsonValue Jsonize() const;
36
38
45 inline const Aws::String& GetDefaultRoute() const { return m_defaultRoute; }
46 inline bool DefaultRouteHasBeenSet() const { return m_defaultRouteHasBeenSet; }
47 template <typename DefaultRouteT = Aws::String>
48 void SetDefaultRoute(DefaultRouteT&& value) {
49 m_defaultRouteHasBeenSet = true;
50 m_defaultRoute = std::forward<DefaultRouteT>(value);
51 }
52 template <typename DefaultRouteT = Aws::String>
53 ClusterNetworkSettings& WithDefaultRoute(DefaultRouteT&& value) {
54 SetDefaultRoute(std::forward<DefaultRouteT>(value));
55 return *this;
56 }
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) {
69 m_interfaceMappingsHasBeenSet = true;
70 m_interfaceMappings = std::forward<InterfaceMappingsT>(value);
71 }
72 template <typename InterfaceMappingsT = Aws::Vector<InterfaceMapping>>
73 ClusterNetworkSettings& WithInterfaceMappings(InterfaceMappingsT&& value) {
74 SetInterfaceMappings(std::forward<InterfaceMappingsT>(value));
75 return *this;
76 }
77 template <typename InterfaceMappingsT = InterfaceMapping>
78 ClusterNetworkSettings& AddInterfaceMappings(InterfaceMappingsT&& value) {
79 m_interfaceMappingsHasBeenSet = true;
80 m_interfaceMappings.emplace_back(std::forward<InterfaceMappingsT>(value));
81 return *this;
82 }
84 private:
85 Aws::String m_defaultRoute;
86
87 Aws::Vector<InterfaceMapping> m_interfaceMappings;
88 bool m_defaultRouteHasBeenSet = false;
89 bool m_interfaceMappingsHasBeenSet = false;
90};
91
92} // namespace Model
93} // namespace MediaLive
94} // 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