AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
CreateNetworkRequest.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/core/utils/memory/stl/AWSMap.h>
12#include <aws/medialive/model/IpPoolCreateRequest.h>
13#include <aws/medialive/model/RouteCreateRequest.h>
14#include <utility>
15#include <aws/core/utils/UUID.h>
16
17namespace Aws
18{
19namespace MediaLive
20{
21namespace Model
22{
23
30 {
31 public:
32 AWS_MEDIALIVE_API CreateNetworkRequest();
33
34 // Service request name is the Operation name which will send this request out,
35 // each operation should has unique request name, so that we can get operation's name from this request.
36 // Note: this is not true for response, multiple operations may have the same response name,
37 // so we can not get operation's name from response.
38 inline virtual const char* GetServiceRequestName() const override { return "CreateNetwork"; }
39
40 AWS_MEDIALIVE_API Aws::String SerializePayload() const override;
41
42
44
51 inline const Aws::Vector<IpPoolCreateRequest>& GetIpPools() const{ return m_ipPools; }
52 inline bool IpPoolsHasBeenSet() const { return m_ipPoolsHasBeenSet; }
53 inline void SetIpPools(const Aws::Vector<IpPoolCreateRequest>& value) { m_ipPoolsHasBeenSet = true; m_ipPools = value; }
54 inline void SetIpPools(Aws::Vector<IpPoolCreateRequest>&& value) { m_ipPoolsHasBeenSet = true; m_ipPools = std::move(value); }
55 inline CreateNetworkRequest& WithIpPools(const Aws::Vector<IpPoolCreateRequest>& value) { SetIpPools(value); return *this;}
56 inline CreateNetworkRequest& WithIpPools(Aws::Vector<IpPoolCreateRequest>&& value) { SetIpPools(std::move(value)); return *this;}
57 inline CreateNetworkRequest& AddIpPools(const IpPoolCreateRequest& value) { m_ipPoolsHasBeenSet = true; m_ipPools.push_back(value); return *this; }
58 inline CreateNetworkRequest& AddIpPools(IpPoolCreateRequest&& value) { m_ipPoolsHasBeenSet = true; m_ipPools.push_back(std::move(value)); return *this; }
60
62
66 inline const Aws::String& GetName() const{ return m_name; }
67 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
68 inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
69 inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
70 inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
71 inline CreateNetworkRequest& WithName(const Aws::String& value) { SetName(value); return *this;}
72 inline CreateNetworkRequest& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
73 inline CreateNetworkRequest& WithName(const char* value) { SetName(value); return *this;}
75
77
81 inline const Aws::String& GetRequestId() const{ return m_requestId; }
82 inline bool RequestIdHasBeenSet() const { return m_requestIdHasBeenSet; }
83 inline void SetRequestId(const Aws::String& value) { m_requestIdHasBeenSet = true; m_requestId = value; }
84 inline void SetRequestId(Aws::String&& value) { m_requestIdHasBeenSet = true; m_requestId = std::move(value); }
85 inline void SetRequestId(const char* value) { m_requestIdHasBeenSet = true; m_requestId.assign(value); }
86 inline CreateNetworkRequest& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;}
87 inline CreateNetworkRequest& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;}
88 inline CreateNetworkRequest& WithRequestId(const char* value) { SetRequestId(value); return *this;}
90
92
96 inline const Aws::Vector<RouteCreateRequest>& GetRoutes() const{ return m_routes; }
97 inline bool RoutesHasBeenSet() const { return m_routesHasBeenSet; }
98 inline void SetRoutes(const Aws::Vector<RouteCreateRequest>& value) { m_routesHasBeenSet = true; m_routes = value; }
99 inline void SetRoutes(Aws::Vector<RouteCreateRequest>&& value) { m_routesHasBeenSet = true; m_routes = std::move(value); }
100 inline CreateNetworkRequest& WithRoutes(const Aws::Vector<RouteCreateRequest>& value) { SetRoutes(value); return *this;}
101 inline CreateNetworkRequest& WithRoutes(Aws::Vector<RouteCreateRequest>&& value) { SetRoutes(std::move(value)); return *this;}
102 inline CreateNetworkRequest& AddRoutes(const RouteCreateRequest& value) { m_routesHasBeenSet = true; m_routes.push_back(value); return *this; }
103 inline CreateNetworkRequest& AddRoutes(RouteCreateRequest&& value) { m_routesHasBeenSet = true; m_routes.push_back(std::move(value)); return *this; }
105
107
110 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const{ return m_tags; }
111 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
112 inline void SetTags(const Aws::Map<Aws::String, Aws::String>& value) { m_tagsHasBeenSet = true; m_tags = value; }
113 inline void SetTags(Aws::Map<Aws::String, Aws::String>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
114 inline CreateNetworkRequest& WithTags(const Aws::Map<Aws::String, Aws::String>& value) { SetTags(value); return *this;}
115 inline CreateNetworkRequest& WithTags(Aws::Map<Aws::String, Aws::String>&& value) { SetTags(std::move(value)); return *this;}
116 inline CreateNetworkRequest& AddTags(const Aws::String& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; }
117 inline CreateNetworkRequest& AddTags(Aws::String&& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; }
118 inline CreateNetworkRequest& AddTags(const Aws::String& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; }
119 inline CreateNetworkRequest& AddTags(Aws::String&& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), std::move(value)); return *this; }
120 inline CreateNetworkRequest& AddTags(const char* key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; }
121 inline CreateNetworkRequest& AddTags(Aws::String&& key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; }
122 inline CreateNetworkRequest& AddTags(const char* key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; }
124 private:
125
127 bool m_ipPoolsHasBeenSet = false;
128
129 Aws::String m_name;
130 bool m_nameHasBeenSet = false;
131
132 Aws::String m_requestId;
133 bool m_requestIdHasBeenSet = false;
134
136 bool m_routesHasBeenSet = false;
137
139 bool m_tagsHasBeenSet = false;
140 };
141
142} // namespace Model
143} // namespace MediaLive
144} // namespace Aws
CreateNetworkRequest & WithName(Aws::String &&value)
void SetTags(Aws::Map< Aws::String, Aws::String > &&value)
const Aws::Vector< IpPoolCreateRequest > & GetIpPools() const
CreateNetworkRequest & AddTags(const Aws::String &key, const Aws::String &value)
CreateNetworkRequest & WithRequestId(Aws::String &&value)
CreateNetworkRequest & WithTags(Aws::Map< Aws::String, Aws::String > &&value)
void SetRoutes(const Aws::Vector< RouteCreateRequest > &value)
CreateNetworkRequest & WithRoutes(Aws::Vector< RouteCreateRequest > &&value)
CreateNetworkRequest & AddTags(const char *key, const char *value)
CreateNetworkRequest & WithName(const char *value)
CreateNetworkRequest & WithTags(const Aws::Map< Aws::String, Aws::String > &value)
void SetTags(const Aws::Map< Aws::String, Aws::String > &value)
CreateNetworkRequest & AddIpPools(const IpPoolCreateRequest &value)
const Aws::Map< Aws::String, Aws::String > & GetTags() const
CreateNetworkRequest & AddIpPools(IpPoolCreateRequest &&value)
AWS_MEDIALIVE_API Aws::String SerializePayload() const override
CreateNetworkRequest & AddTags(const char *key, Aws::String &&value)
CreateNetworkRequest & AddTags(Aws::String &&key, Aws::String &&value)
CreateNetworkRequest & WithIpPools(const Aws::Vector< IpPoolCreateRequest > &value)
CreateNetworkRequest & AddRoutes(RouteCreateRequest &&value)
CreateNetworkRequest & AddTags(Aws::String &&key, const Aws::String &value)
void SetIpPools(Aws::Vector< IpPoolCreateRequest > &&value)
CreateNetworkRequest & WithIpPools(Aws::Vector< IpPoolCreateRequest > &&value)
CreateNetworkRequest & AddTags(const Aws::String &key, Aws::String &&value)
CreateNetworkRequest & AddTags(Aws::String &&key, const char *value)
void SetRoutes(Aws::Vector< RouteCreateRequest > &&value)
CreateNetworkRequest & AddRoutes(const RouteCreateRequest &value)
virtual const char * GetServiceRequestName() const override
void SetIpPools(const Aws::Vector< IpPoolCreateRequest > &value)
CreateNetworkRequest & WithRequestId(const char *value)
CreateNetworkRequest & WithRequestId(const Aws::String &value)
CreateNetworkRequest & WithName(const Aws::String &value)
const Aws::Vector< RouteCreateRequest > & GetRoutes() const
CreateNetworkRequest & WithRoutes(const Aws::Vector< RouteCreateRequest > &value)
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector