AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
CreateClusterRequest.h
1
6#pragma once
7#include <aws/medialive/MediaLive_EXPORTS.h>
8#include <aws/medialive/MediaLiveRequest.h>
9#include <aws/medialive/model/ClusterType.h>
10#include <aws/core/utils/memory/stl/AWSString.h>
11#include <aws/medialive/model/ClusterNetworkSettingsCreateRequest.h>
12#include <aws/core/utils/memory/stl/AWSMap.h>
13#include <utility>
14#include <aws/core/utils/UUID.h>
15
16namespace Aws
17{
18namespace MediaLive
19{
20namespace Model
21{
22
33 {
34 public:
35 AWS_MEDIALIVE_API CreateClusterRequest();
36
37 // Service request name is the Operation name which will send this request out,
38 // each operation should has unique request name, so that we can get operation's name from this request.
39 // Note: this is not true for response, multiple operations may have the same response name,
40 // so we can not get operation's name from response.
41 inline virtual const char* GetServiceRequestName() const override { return "CreateCluster"; }
42
43 AWS_MEDIALIVE_API Aws::String SerializePayload() const override;
44
45
47
52 inline const ClusterType& GetClusterType() const{ return m_clusterType; }
53 inline bool ClusterTypeHasBeenSet() const { return m_clusterTypeHasBeenSet; }
54 inline void SetClusterType(const ClusterType& value) { m_clusterTypeHasBeenSet = true; m_clusterType = value; }
55 inline void SetClusterType(ClusterType&& value) { m_clusterTypeHasBeenSet = true; m_clusterType = std::move(value); }
56 inline CreateClusterRequest& WithClusterType(const ClusterType& value) { SetClusterType(value); return *this;}
57 inline CreateClusterRequest& WithClusterType(ClusterType&& value) { SetClusterType(std::move(value)); return *this;}
59
61
66 inline const Aws::String& GetInstanceRoleArn() const{ return m_instanceRoleArn; }
67 inline bool InstanceRoleArnHasBeenSet() const { return m_instanceRoleArnHasBeenSet; }
68 inline void SetInstanceRoleArn(const Aws::String& value) { m_instanceRoleArnHasBeenSet = true; m_instanceRoleArn = value; }
69 inline void SetInstanceRoleArn(Aws::String&& value) { m_instanceRoleArnHasBeenSet = true; m_instanceRoleArn = std::move(value); }
70 inline void SetInstanceRoleArn(const char* value) { m_instanceRoleArnHasBeenSet = true; m_instanceRoleArn.assign(value); }
71 inline CreateClusterRequest& WithInstanceRoleArn(const Aws::String& value) { SetInstanceRoleArn(value); return *this;}
72 inline CreateClusterRequest& WithInstanceRoleArn(Aws::String&& value) { SetInstanceRoleArn(std::move(value)); return *this;}
73 inline CreateClusterRequest& WithInstanceRoleArn(const char* value) { SetInstanceRoleArn(value); return *this;}
75
77
81 inline const Aws::String& GetName() const{ return m_name; }
82 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
83 inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
84 inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
85 inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
86 inline CreateClusterRequest& WithName(const Aws::String& value) { SetName(value); return *this;}
87 inline CreateClusterRequest& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
88 inline CreateClusterRequest& WithName(const char* value) { SetName(value); return *this;}
90
92
96 inline const ClusterNetworkSettingsCreateRequest& GetNetworkSettings() const{ return m_networkSettings; }
97 inline bool NetworkSettingsHasBeenSet() const { return m_networkSettingsHasBeenSet; }
98 inline void SetNetworkSettings(const ClusterNetworkSettingsCreateRequest& value) { m_networkSettingsHasBeenSet = true; m_networkSettings = value; }
99 inline void SetNetworkSettings(ClusterNetworkSettingsCreateRequest&& value) { m_networkSettingsHasBeenSet = true; m_networkSettings = std::move(value); }
103
105
108 inline const Aws::String& GetRequestId() const{ return m_requestId; }
109 inline bool RequestIdHasBeenSet() const { return m_requestIdHasBeenSet; }
110 inline void SetRequestId(const Aws::String& value) { m_requestIdHasBeenSet = true; m_requestId = value; }
111 inline void SetRequestId(Aws::String&& value) { m_requestIdHasBeenSet = true; m_requestId = std::move(value); }
112 inline void SetRequestId(const char* value) { m_requestIdHasBeenSet = true; m_requestId.assign(value); }
113 inline CreateClusterRequest& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;}
114 inline CreateClusterRequest& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;}
115 inline CreateClusterRequest& WithRequestId(const char* value) { SetRequestId(value); return *this;}
117
119
122 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const{ return m_tags; }
123 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
124 inline void SetTags(const Aws::Map<Aws::String, Aws::String>& value) { m_tagsHasBeenSet = true; m_tags = value; }
125 inline void SetTags(Aws::Map<Aws::String, Aws::String>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
126 inline CreateClusterRequest& WithTags(const Aws::Map<Aws::String, Aws::String>& value) { SetTags(value); return *this;}
127 inline CreateClusterRequest& WithTags(Aws::Map<Aws::String, Aws::String>&& value) { SetTags(std::move(value)); return *this;}
128 inline CreateClusterRequest& AddTags(const Aws::String& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; }
129 inline CreateClusterRequest& AddTags(Aws::String&& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; }
130 inline CreateClusterRequest& AddTags(const Aws::String& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; }
131 inline CreateClusterRequest& AddTags(Aws::String&& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), std::move(value)); return *this; }
132 inline CreateClusterRequest& AddTags(const char* key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; }
133 inline CreateClusterRequest& AddTags(Aws::String&& key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; }
134 inline CreateClusterRequest& AddTags(const char* key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; }
136 private:
137
138 ClusterType m_clusterType;
139 bool m_clusterTypeHasBeenSet = false;
140
141 Aws::String m_instanceRoleArn;
142 bool m_instanceRoleArnHasBeenSet = false;
143
144 Aws::String m_name;
145 bool m_nameHasBeenSet = false;
146
147 ClusterNetworkSettingsCreateRequest m_networkSettings;
148 bool m_networkSettingsHasBeenSet = false;
149
150 Aws::String m_requestId;
151 bool m_requestIdHasBeenSet = false;
152
154 bool m_tagsHasBeenSet = false;
155 };
156
157} // namespace Model
158} // namespace MediaLive
159} // namespace Aws
CreateClusterRequest & WithInstanceRoleArn(const Aws::String &value)
CreateClusterRequest & AddTags(Aws::String &&key, const Aws::String &value)
CreateClusterRequest & AddTags(Aws::String &&key, const char *value)
CreateClusterRequest & AddTags(Aws::String &&key, Aws::String &&value)
const ClusterNetworkSettingsCreateRequest & GetNetworkSettings() const
void SetClusterType(const ClusterType &value)
void SetTags(const Aws::Map< Aws::String, Aws::String > &value)
CreateClusterRequest & WithTags(const Aws::Map< Aws::String, Aws::String > &value)
CreateClusterRequest & WithClusterType(const ClusterType &value)
CreateClusterRequest & WithName(const Aws::String &value)
AWS_MEDIALIVE_API Aws::String SerializePayload() const override
CreateClusterRequest & AddTags(const Aws::String &key, const Aws::String &value)
virtual const char * GetServiceRequestName() const override
CreateClusterRequest & WithClusterType(ClusterType &&value)
const Aws::Map< Aws::String, Aws::String > & GetTags() const
CreateClusterRequest & AddTags(const Aws::String &key, Aws::String &&value)
CreateClusterRequest & WithRequestId(const Aws::String &value)
void SetNetworkSettings(const ClusterNetworkSettingsCreateRequest &value)
CreateClusterRequest & WithInstanceRoleArn(const char *value)
CreateClusterRequest & WithName(Aws::String &&value)
void SetTags(Aws::Map< Aws::String, Aws::String > &&value)
CreateClusterRequest & AddTags(const char *key, const char *value)
CreateClusterRequest & WithName(const char *value)
CreateClusterRequest & WithRequestId(Aws::String &&value)
CreateClusterRequest & WithNetworkSettings(ClusterNetworkSettingsCreateRequest &&value)
void SetInstanceRoleArn(const Aws::String &value)
CreateClusterRequest & WithRequestId(const char *value)
CreateClusterRequest & WithNetworkSettings(const ClusterNetworkSettingsCreateRequest &value)
CreateClusterRequest & WithTags(Aws::Map< Aws::String, Aws::String > &&value)
CreateClusterRequest & AddTags(const char *key, Aws::String &&value)
void SetNetworkSettings(ClusterNetworkSettingsCreateRequest &&value)
CreateClusterRequest & WithInstanceRoleArn(Aws::String &&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