AWS SDK for C++

AWS SDK for C++ Version 1.11.606

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() = default;
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 ClusterType GetClusterType() const { return m_clusterType; }
53 inline bool ClusterTypeHasBeenSet() const { return m_clusterTypeHasBeenSet; }
54 inline void SetClusterType(ClusterType value) { m_clusterTypeHasBeenSet = true; m_clusterType = value; }
55 inline CreateClusterRequest& WithClusterType(ClusterType value) { SetClusterType(value); return *this;}
57
59
64 inline const Aws::String& GetInstanceRoleArn() const { return m_instanceRoleArn; }
65 inline bool InstanceRoleArnHasBeenSet() const { return m_instanceRoleArnHasBeenSet; }
66 template<typename InstanceRoleArnT = Aws::String>
67 void SetInstanceRoleArn(InstanceRoleArnT&& value) { m_instanceRoleArnHasBeenSet = true; m_instanceRoleArn = std::forward<InstanceRoleArnT>(value); }
68 template<typename InstanceRoleArnT = Aws::String>
69 CreateClusterRequest& WithInstanceRoleArn(InstanceRoleArnT&& value) { SetInstanceRoleArn(std::forward<InstanceRoleArnT>(value)); return *this;}
71
73
77 inline const Aws::String& GetName() const { return m_name; }
78 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
79 template<typename NameT = Aws::String>
80 void SetName(NameT&& value) { m_nameHasBeenSet = true; m_name = std::forward<NameT>(value); }
81 template<typename NameT = Aws::String>
82 CreateClusterRequest& WithName(NameT&& value) { SetName(std::forward<NameT>(value)); return *this;}
84
86
90 inline const ClusterNetworkSettingsCreateRequest& GetNetworkSettings() const { return m_networkSettings; }
91 inline bool NetworkSettingsHasBeenSet() const { return m_networkSettingsHasBeenSet; }
92 template<typename NetworkSettingsT = ClusterNetworkSettingsCreateRequest>
93 void SetNetworkSettings(NetworkSettingsT&& value) { m_networkSettingsHasBeenSet = true; m_networkSettings = std::forward<NetworkSettingsT>(value); }
94 template<typename NetworkSettingsT = ClusterNetworkSettingsCreateRequest>
95 CreateClusterRequest& WithNetworkSettings(NetworkSettingsT&& value) { SetNetworkSettings(std::forward<NetworkSettingsT>(value)); return *this;}
97
99
102 inline const Aws::String& GetRequestId() const { return m_requestId; }
103 inline bool RequestIdHasBeenSet() const { return m_requestIdHasBeenSet; }
104 template<typename RequestIdT = Aws::String>
105 void SetRequestId(RequestIdT&& value) { m_requestIdHasBeenSet = true; m_requestId = std::forward<RequestIdT>(value); }
106 template<typename RequestIdT = Aws::String>
107 CreateClusterRequest& WithRequestId(RequestIdT&& value) { SetRequestId(std::forward<RequestIdT>(value)); return *this;}
109
111
114 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
115 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
116 template<typename TagsT = Aws::Map<Aws::String, Aws::String>>
117 void SetTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags = std::forward<TagsT>(value); }
118 template<typename TagsT = Aws::Map<Aws::String, Aws::String>>
119 CreateClusterRequest& WithTags(TagsT&& value) { SetTags(std::forward<TagsT>(value)); return *this;}
120 template<typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
121 CreateClusterRequest& AddTags(TagsKeyT&& key, TagsValueT&& value) {
122 m_tagsHasBeenSet = true; m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value)); return *this;
123 }
125 private:
126
127 ClusterType m_clusterType{ClusterType::NOT_SET};
128 bool m_clusterTypeHasBeenSet = false;
129
130 Aws::String m_instanceRoleArn;
131 bool m_instanceRoleArnHasBeenSet = false;
132
133 Aws::String m_name;
134 bool m_nameHasBeenSet = false;
135
136 ClusterNetworkSettingsCreateRequest m_networkSettings;
137 bool m_networkSettingsHasBeenSet = false;
138
140 bool m_requestIdHasBeenSet = true;
141
143 bool m_tagsHasBeenSet = false;
144 };
145
146} // namespace Model
147} // namespace MediaLive
148} // namespace Aws
AWS_MEDIALIVE_API CreateClusterRequest()=default
void SetNetworkSettings(NetworkSettingsT &&value)
CreateClusterRequest & WithInstanceRoleArn(InstanceRoleArnT &&value)
const ClusterNetworkSettingsCreateRequest & GetNetworkSettings() const
void SetInstanceRoleArn(InstanceRoleArnT &&value)
CreateClusterRequest & WithTags(TagsT &&value)
AWS_MEDIALIVE_API Aws::String SerializePayload() const override
CreateClusterRequest & WithClusterType(ClusterType value)
CreateClusterRequest & AddTags(TagsKeyT &&key, TagsValueT &&value)
virtual const char * GetServiceRequestName() const override
CreateClusterRequest & WithNetworkSettings(NetworkSettingsT &&value)
const Aws::Map< Aws::String, Aws::String > & GetTags() const
CreateClusterRequest & WithRequestId(RequestIdT &&value)
CreateClusterRequest & WithName(NameT &&value)
static Aws::Utils::UUID PseudoRandomUUID()
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