AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
CreateManagedEndpointRequest.h
1
6#pragma once
7#include <aws/emr-containers/EMRContainers_EXPORTS.h>
8#include <aws/emr-containers/EMRContainersRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/emr-containers/model/ConfigurationOverrides.h>
11#include <aws/core/utils/memory/stl/AWSMap.h>
12#include <utility>
13#include <aws/core/utils/UUID.h>
14
15namespace Aws
16{
17namespace EMRContainers
18{
19namespace Model
20{
21
25 {
26 public:
27 AWS_EMRCONTAINERS_API CreateManagedEndpointRequest() = default;
28
29 // Service request name is the Operation name which will send this request out,
30 // each operation should has unique request name, so that we can get operation's name from this request.
31 // Note: this is not true for response, multiple operations may have the same response name,
32 // so we can not get operation's name from response.
33 inline virtual const char* GetServiceRequestName() const override { return "CreateManagedEndpoint"; }
34
35 AWS_EMRCONTAINERS_API Aws::String SerializePayload() const override;
36
37
39
42 inline const Aws::String& GetName() const { return m_name; }
43 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
44 template<typename NameT = Aws::String>
45 void SetName(NameT&& value) { m_nameHasBeenSet = true; m_name = std::forward<NameT>(value); }
46 template<typename NameT = Aws::String>
47 CreateManagedEndpointRequest& WithName(NameT&& value) { SetName(std::forward<NameT>(value)); return *this;}
49
51
54 inline const Aws::String& GetVirtualClusterId() const { return m_virtualClusterId; }
55 inline bool VirtualClusterIdHasBeenSet() const { return m_virtualClusterIdHasBeenSet; }
56 template<typename VirtualClusterIdT = Aws::String>
57 void SetVirtualClusterId(VirtualClusterIdT&& value) { m_virtualClusterIdHasBeenSet = true; m_virtualClusterId = std::forward<VirtualClusterIdT>(value); }
58 template<typename VirtualClusterIdT = Aws::String>
59 CreateManagedEndpointRequest& WithVirtualClusterId(VirtualClusterIdT&& value) { SetVirtualClusterId(std::forward<VirtualClusterIdT>(value)); return *this;}
61
63
66 inline const Aws::String& GetType() const { return m_type; }
67 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
68 template<typename TypeT = Aws::String>
69 void SetType(TypeT&& value) { m_typeHasBeenSet = true; m_type = std::forward<TypeT>(value); }
70 template<typename TypeT = Aws::String>
71 CreateManagedEndpointRequest& WithType(TypeT&& value) { SetType(std::forward<TypeT>(value)); return *this;}
73
75
78 inline const Aws::String& GetReleaseLabel() const { return m_releaseLabel; }
79 inline bool ReleaseLabelHasBeenSet() const { return m_releaseLabelHasBeenSet; }
80 template<typename ReleaseLabelT = Aws::String>
81 void SetReleaseLabel(ReleaseLabelT&& value) { m_releaseLabelHasBeenSet = true; m_releaseLabel = std::forward<ReleaseLabelT>(value); }
82 template<typename ReleaseLabelT = Aws::String>
83 CreateManagedEndpointRequest& WithReleaseLabel(ReleaseLabelT&& value) { SetReleaseLabel(std::forward<ReleaseLabelT>(value)); return *this;}
85
87
90 inline const Aws::String& GetExecutionRoleArn() const { return m_executionRoleArn; }
91 inline bool ExecutionRoleArnHasBeenSet() const { return m_executionRoleArnHasBeenSet; }
92 template<typename ExecutionRoleArnT = Aws::String>
93 void SetExecutionRoleArn(ExecutionRoleArnT&& value) { m_executionRoleArnHasBeenSet = true; m_executionRoleArn = std::forward<ExecutionRoleArnT>(value); }
94 template<typename ExecutionRoleArnT = Aws::String>
95 CreateManagedEndpointRequest& WithExecutionRoleArn(ExecutionRoleArnT&& value) { SetExecutionRoleArn(std::forward<ExecutionRoleArnT>(value)); return *this;}
97
99
103 inline const ConfigurationOverrides& GetConfigurationOverrides() const { return m_configurationOverrides; }
104 inline bool ConfigurationOverridesHasBeenSet() const { return m_configurationOverridesHasBeenSet; }
105 template<typename ConfigurationOverridesT = ConfigurationOverrides>
106 void SetConfigurationOverrides(ConfigurationOverridesT&& value) { m_configurationOverridesHasBeenSet = true; m_configurationOverrides = std::forward<ConfigurationOverridesT>(value); }
107 template<typename ConfigurationOverridesT = ConfigurationOverrides>
108 CreateManagedEndpointRequest& WithConfigurationOverrides(ConfigurationOverridesT&& value) { SetConfigurationOverrides(std::forward<ConfigurationOverridesT>(value)); return *this;}
110
112
115 inline const Aws::String& GetClientToken() const { return m_clientToken; }
116 inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; }
117 template<typename ClientTokenT = Aws::String>
118 void SetClientToken(ClientTokenT&& value) { m_clientTokenHasBeenSet = true; m_clientToken = std::forward<ClientTokenT>(value); }
119 template<typename ClientTokenT = Aws::String>
120 CreateManagedEndpointRequest& WithClientToken(ClientTokenT&& value) { SetClientToken(std::forward<ClientTokenT>(value)); return *this;}
122
124
127 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
128 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
129 template<typename TagsT = Aws::Map<Aws::String, Aws::String>>
130 void SetTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags = std::forward<TagsT>(value); }
131 template<typename TagsT = Aws::Map<Aws::String, Aws::String>>
132 CreateManagedEndpointRequest& WithTags(TagsT&& value) { SetTags(std::forward<TagsT>(value)); return *this;}
133 template<typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
134 CreateManagedEndpointRequest& AddTags(TagsKeyT&& key, TagsValueT&& value) {
135 m_tagsHasBeenSet = true; m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value)); return *this;
136 }
138 private:
139
140 Aws::String m_name;
141 bool m_nameHasBeenSet = false;
142
143 Aws::String m_virtualClusterId;
144 bool m_virtualClusterIdHasBeenSet = false;
145
146 Aws::String m_type;
147 bool m_typeHasBeenSet = false;
148
149 Aws::String m_releaseLabel;
150 bool m_releaseLabelHasBeenSet = false;
151
152 Aws::String m_executionRoleArn;
153 bool m_executionRoleArnHasBeenSet = false;
154
155 ConfigurationOverrides m_configurationOverrides;
156 bool m_configurationOverridesHasBeenSet = false;
157
159 bool m_clientTokenHasBeenSet = true;
160
162 bool m_tagsHasBeenSet = false;
163 };
164
165} // namespace Model
166} // namespace EMRContainers
167} // namespace Aws
CreateManagedEndpointRequest & WithExecutionRoleArn(ExecutionRoleArnT &&value)
CreateManagedEndpointRequest & WithVirtualClusterId(VirtualClusterIdT &&value)
AWS_EMRCONTAINERS_API CreateManagedEndpointRequest()=default
const Aws::Map< Aws::String, Aws::String > & GetTags() const
CreateManagedEndpointRequest & AddTags(TagsKeyT &&key, TagsValueT &&value)
CreateManagedEndpointRequest & WithClientToken(ClientTokenT &&value)
AWS_EMRCONTAINERS_API Aws::String SerializePayload() const override
CreateManagedEndpointRequest & WithReleaseLabel(ReleaseLabelT &&value)
CreateManagedEndpointRequest & WithConfigurationOverrides(ConfigurationOverridesT &&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