AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
UpdateNetworkRequest.h
1
6#pragma once
7#include <aws/medialive/MediaLive_EXPORTS.h>
8#include <aws/medialive/MediaLiveRequest.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/core/utils/memory/stl/AWSString.h>
11#include <aws/medialive/model/IpPoolUpdateRequest.h>
12#include <aws/medialive/model/RouteUpdateRequest.h>
13#include <utility>
14
15namespace Aws
16{
17namespace MediaLive
18{
19namespace Model
20{
21
28 {
29 public:
30 AWS_MEDIALIVE_API UpdateNetworkRequest();
31
32 // Service request name is the Operation name which will send this request out,
33 // each operation should has unique request name, so that we can get operation's name from this request.
34 // Note: this is not true for response, multiple operations may have the same response name,
35 // so we can not get operation's name from response.
36 inline virtual const char* GetServiceRequestName() const override { return "UpdateNetwork"; }
37
38 AWS_MEDIALIVE_API Aws::String SerializePayload() const override;
39
40
42
50 inline const Aws::Vector<IpPoolUpdateRequest>& GetIpPools() const{ return m_ipPools; }
51 inline bool IpPoolsHasBeenSet() const { return m_ipPoolsHasBeenSet; }
52 inline void SetIpPools(const Aws::Vector<IpPoolUpdateRequest>& value) { m_ipPoolsHasBeenSet = true; m_ipPools = value; }
53 inline void SetIpPools(Aws::Vector<IpPoolUpdateRequest>&& value) { m_ipPoolsHasBeenSet = true; m_ipPools = std::move(value); }
54 inline UpdateNetworkRequest& WithIpPools(const Aws::Vector<IpPoolUpdateRequest>& value) { SetIpPools(value); return *this;}
55 inline UpdateNetworkRequest& WithIpPools(Aws::Vector<IpPoolUpdateRequest>&& value) { SetIpPools(std::move(value)); return *this;}
56 inline UpdateNetworkRequest& AddIpPools(const IpPoolUpdateRequest& value) { m_ipPoolsHasBeenSet = true; m_ipPools.push_back(value); return *this; }
57 inline UpdateNetworkRequest& AddIpPools(IpPoolUpdateRequest&& value) { m_ipPoolsHasBeenSet = true; m_ipPools.push_back(std::move(value)); return *this; }
59
61
65 inline const Aws::String& GetName() const{ return m_name; }
66 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
67 inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
68 inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
69 inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
70 inline UpdateNetworkRequest& WithName(const Aws::String& value) { SetName(value); return *this;}
71 inline UpdateNetworkRequest& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
72 inline UpdateNetworkRequest& WithName(const char* value) { SetName(value); return *this;}
74
76
79 inline const Aws::String& GetNetworkId() const{ return m_networkId; }
80 inline bool NetworkIdHasBeenSet() const { return m_networkIdHasBeenSet; }
81 inline void SetNetworkId(const Aws::String& value) { m_networkIdHasBeenSet = true; m_networkId = value; }
82 inline void SetNetworkId(Aws::String&& value) { m_networkIdHasBeenSet = true; m_networkId = std::move(value); }
83 inline void SetNetworkId(const char* value) { m_networkIdHasBeenSet = true; m_networkId.assign(value); }
84 inline UpdateNetworkRequest& WithNetworkId(const Aws::String& value) { SetNetworkId(value); return *this;}
85 inline UpdateNetworkRequest& WithNetworkId(Aws::String&& value) { SetNetworkId(std::move(value)); return *this;}
86 inline UpdateNetworkRequest& WithNetworkId(const char* value) { SetNetworkId(value); return *this;}
88
90
95 inline const Aws::Vector<RouteUpdateRequest>& GetRoutes() const{ return m_routes; }
96 inline bool RoutesHasBeenSet() const { return m_routesHasBeenSet; }
97 inline void SetRoutes(const Aws::Vector<RouteUpdateRequest>& value) { m_routesHasBeenSet = true; m_routes = value; }
98 inline void SetRoutes(Aws::Vector<RouteUpdateRequest>&& value) { m_routesHasBeenSet = true; m_routes = std::move(value); }
99 inline UpdateNetworkRequest& WithRoutes(const Aws::Vector<RouteUpdateRequest>& value) { SetRoutes(value); return *this;}
100 inline UpdateNetworkRequest& WithRoutes(Aws::Vector<RouteUpdateRequest>&& value) { SetRoutes(std::move(value)); return *this;}
101 inline UpdateNetworkRequest& AddRoutes(const RouteUpdateRequest& value) { m_routesHasBeenSet = true; m_routes.push_back(value); return *this; }
102 inline UpdateNetworkRequest& AddRoutes(RouteUpdateRequest&& value) { m_routesHasBeenSet = true; m_routes.push_back(std::move(value)); return *this; }
104 private:
105
107 bool m_ipPoolsHasBeenSet = false;
108
109 Aws::String m_name;
110 bool m_nameHasBeenSet = false;
111
112 Aws::String m_networkId;
113 bool m_networkIdHasBeenSet = false;
114
116 bool m_routesHasBeenSet = false;
117 };
118
119} // namespace Model
120} // namespace MediaLive
121} // namespace Aws
UpdateNetworkRequest & WithName(const Aws::String &value)
UpdateNetworkRequest & WithIpPools(const Aws::Vector< IpPoolUpdateRequest > &value)
UpdateNetworkRequest & WithName(Aws::String &&value)
UpdateNetworkRequest & WithRoutes(const Aws::Vector< RouteUpdateRequest > &value)
UpdateNetworkRequest & WithName(const char *value)
UpdateNetworkRequest & WithNetworkId(Aws::String &&value)
void SetIpPools(Aws::Vector< IpPoolUpdateRequest > &&value)
UpdateNetworkRequest & WithIpPools(Aws::Vector< IpPoolUpdateRequest > &&value)
void SetIpPools(const Aws::Vector< IpPoolUpdateRequest > &value)
const Aws::Vector< RouteUpdateRequest > & GetRoutes() const
UpdateNetworkRequest & AddIpPools(IpPoolUpdateRequest &&value)
virtual const char * GetServiceRequestName() const override
UpdateNetworkRequest & AddRoutes(RouteUpdateRequest &&value)
UpdateNetworkRequest & WithNetworkId(const char *value)
UpdateNetworkRequest & AddRoutes(const RouteUpdateRequest &value)
void SetRoutes(const Aws::Vector< RouteUpdateRequest > &value)
AWS_MEDIALIVE_API Aws::String SerializePayload() const override
void SetRoutes(Aws::Vector< RouteUpdateRequest > &&value)
UpdateNetworkRequest & AddIpPools(const IpPoolUpdateRequest &value)
UpdateNetworkRequest & WithRoutes(Aws::Vector< RouteUpdateRequest > &&value)
UpdateNetworkRequest & WithNetworkId(const Aws::String &value)
const Aws::Vector< IpPoolUpdateRequest > & GetIpPools() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector