AWS SDK for C++

AWS SDK for C++ Version 1.11.757

Loading...
Searching...
No Matches
DescribeNetworkSummary.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/IpPool.h>
11#include <aws/medialive/model/NetworkState.h>
12#include <aws/medialive/model/Route.h>
13
14#include <utility>
15
16namespace Aws {
17namespace Utils {
18namespace Json {
19class JsonValue;
20class JsonView;
21} // namespace Json
22} // namespace Utils
23namespace MediaLive {
24namespace Model {
25
32 public:
33 AWS_MEDIALIVE_API DescribeNetworkSummary() = default;
36 AWS_MEDIALIVE_API Aws::Utils::Json::JsonValue Jsonize() const;
37
39
43 inline const Aws::String& GetArn() const { return m_arn; }
44 inline bool ArnHasBeenSet() const { return m_arnHasBeenSet; }
45 template <typename ArnT = Aws::String>
46 void SetArn(ArnT&& value) {
47 m_arnHasBeenSet = true;
48 m_arn = std::forward<ArnT>(value);
49 }
50 template <typename ArnT = Aws::String>
52 SetArn(std::forward<ArnT>(value));
53 return *this;
54 }
56
58
59 inline const Aws::Vector<Aws::String>& GetAssociatedClusterIds() const { return m_associatedClusterIds; }
60 inline bool AssociatedClusterIdsHasBeenSet() const { return m_associatedClusterIdsHasBeenSet; }
61 template <typename AssociatedClusterIdsT = Aws::Vector<Aws::String>>
62 void SetAssociatedClusterIds(AssociatedClusterIdsT&& value) {
63 m_associatedClusterIdsHasBeenSet = true;
64 m_associatedClusterIds = std::forward<AssociatedClusterIdsT>(value);
65 }
66 template <typename AssociatedClusterIdsT = Aws::Vector<Aws::String>>
67 DescribeNetworkSummary& WithAssociatedClusterIds(AssociatedClusterIdsT&& value) {
68 SetAssociatedClusterIds(std::forward<AssociatedClusterIdsT>(value));
69 return *this;
70 }
71 template <typename AssociatedClusterIdsT = Aws::String>
72 DescribeNetworkSummary& AddAssociatedClusterIds(AssociatedClusterIdsT&& value) {
73 m_associatedClusterIdsHasBeenSet = true;
74 m_associatedClusterIds.emplace_back(std::forward<AssociatedClusterIdsT>(value));
75 return *this;
76 }
78
80
84 inline const Aws::String& GetId() const { return m_id; }
85 inline bool IdHasBeenSet() const { return m_idHasBeenSet; }
86 template <typename IdT = Aws::String>
87 void SetId(IdT&& value) {
88 m_idHasBeenSet = true;
89 m_id = std::forward<IdT>(value);
90 }
91 template <typename IdT = Aws::String>
93 SetId(std::forward<IdT>(value));
94 return *this;
95 }
97
99
106 inline const Aws::Vector<IpPool>& GetIpPools() const { return m_ipPools; }
107 inline bool IpPoolsHasBeenSet() const { return m_ipPoolsHasBeenSet; }
108 template <typename IpPoolsT = Aws::Vector<IpPool>>
109 void SetIpPools(IpPoolsT&& value) {
110 m_ipPoolsHasBeenSet = true;
111 m_ipPools = std::forward<IpPoolsT>(value);
112 }
113 template <typename IpPoolsT = Aws::Vector<IpPool>>
115 SetIpPools(std::forward<IpPoolsT>(value));
116 return *this;
117 }
118 template <typename IpPoolsT = IpPool>
120 m_ipPoolsHasBeenSet = true;
121 m_ipPools.emplace_back(std::forward<IpPoolsT>(value));
122 return *this;
123 }
125
127
130 inline const Aws::String& GetName() const { return m_name; }
131 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
132 template <typename NameT = Aws::String>
133 void SetName(NameT&& value) {
134 m_nameHasBeenSet = true;
135 m_name = std::forward<NameT>(value);
136 }
137 template <typename NameT = Aws::String>
139 SetName(std::forward<NameT>(value));
140 return *this;
141 }
143
145
149 inline const Aws::Vector<Route>& GetRoutes() const { return m_routes; }
150 inline bool RoutesHasBeenSet() const { return m_routesHasBeenSet; }
151 template <typename RoutesT = Aws::Vector<Route>>
152 void SetRoutes(RoutesT&& value) {
153 m_routesHasBeenSet = true;
154 m_routes = std::forward<RoutesT>(value);
155 }
156 template <typename RoutesT = Aws::Vector<Route>>
158 SetRoutes(std::forward<RoutesT>(value));
159 return *this;
160 }
161 template <typename RoutesT = Route>
163 m_routesHasBeenSet = true;
164 m_routes.emplace_back(std::forward<RoutesT>(value));
165 return *this;
166 }
168
170
173 inline NetworkState GetState() const { return m_state; }
174 inline bool StateHasBeenSet() const { return m_stateHasBeenSet; }
175 inline void SetState(NetworkState value) {
176 m_stateHasBeenSet = true;
177 m_state = value;
178 }
180 SetState(value);
181 return *this;
182 }
184 private:
185 Aws::String m_arn;
186
187 Aws::Vector<Aws::String> m_associatedClusterIds;
188
189 Aws::String m_id;
190
191 Aws::Vector<IpPool> m_ipPools;
192
193 Aws::String m_name;
194
195 Aws::Vector<Route> m_routes;
196
198 bool m_arnHasBeenSet = false;
199 bool m_associatedClusterIdsHasBeenSet = false;
200 bool m_idHasBeenSet = false;
201 bool m_ipPoolsHasBeenSet = false;
202 bool m_nameHasBeenSet = false;
203 bool m_routesHasBeenSet = false;
204 bool m_stateHasBeenSet = false;
205};
206
207} // namespace Model
208} // namespace MediaLive
209} // namespace Aws
AWS_MEDIALIVE_API DescribeNetworkSummary & operator=(Aws::Utils::Json::JsonView jsonValue)
DescribeNetworkSummary & WithRoutes(RoutesT &&value)
DescribeNetworkSummary & AddRoutes(RoutesT &&value)
DescribeNetworkSummary & WithId(IdT &&value)
DescribeNetworkSummary & WithState(NetworkState value)
const Aws::Vector< Route > & GetRoutes() const
void SetAssociatedClusterIds(AssociatedClusterIdsT &&value)
DescribeNetworkSummary & AddIpPools(IpPoolsT &&value)
AWS_MEDIALIVE_API Aws::Utils::Json::JsonValue Jsonize() const
DescribeNetworkSummary & WithArn(ArnT &&value)
DescribeNetworkSummary & WithName(NameT &&value)
AWS_MEDIALIVE_API DescribeNetworkSummary()=default
AWS_MEDIALIVE_API DescribeNetworkSummary(Aws::Utils::Json::JsonView jsonValue)
const Aws::Vector< Aws::String > & GetAssociatedClusterIds() const
DescribeNetworkSummary & WithIpPools(IpPoolsT &&value)
DescribeNetworkSummary & WithAssociatedClusterIds(AssociatedClusterIdsT &&value)
const Aws::Vector< IpPool > & GetIpPools() const
DescribeNetworkSummary & AddAssociatedClusterIds(AssociatedClusterIdsT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue