/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include #include #include #include namespace Aws { namespace EMRContainers { namespace Model { /** */ class CreateManagedEndpointRequest : public EMRContainersRequest { public: AWS_EMRCONTAINERS_API CreateManagedEndpointRequest(); // Service request name is the Operation name which will send this request out, // each operation should has unique request name, so that we can get operation's name from this request. // Note: this is not true for response, multiple operations may have the same response name, // so we can not get operation's name from response. inline virtual const char* GetServiceRequestName() const override { return "CreateManagedEndpoint"; } AWS_EMRCONTAINERS_API Aws::String SerializePayload() const override; /** *

The name of the managed endpoint.

*/ inline const Aws::String& GetName() const{ return m_name; } /** *

The name of the managed endpoint.

*/ inline bool NameHasBeenSet() const { return m_nameHasBeenSet; } /** *

The name of the managed endpoint.

*/ inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; } /** *

The name of the managed endpoint.

*/ inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); } /** *

The name of the managed endpoint.

*/ inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); } /** *

The name of the managed endpoint.

*/ inline CreateManagedEndpointRequest& WithName(const Aws::String& value) { SetName(value); return *this;} /** *

The name of the managed endpoint.

*/ inline CreateManagedEndpointRequest& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;} /** *

The name of the managed endpoint.

*/ inline CreateManagedEndpointRequest& WithName(const char* value) { SetName(value); return *this;} /** *

The ID of the virtual cluster for which a managed endpoint is created.

*/ inline const Aws::String& GetVirtualClusterId() const{ return m_virtualClusterId; } /** *

The ID of the virtual cluster for which a managed endpoint is created.

*/ inline bool VirtualClusterIdHasBeenSet() const { return m_virtualClusterIdHasBeenSet; } /** *

The ID of the virtual cluster for which a managed endpoint is created.

*/ inline void SetVirtualClusterId(const Aws::String& value) { m_virtualClusterIdHasBeenSet = true; m_virtualClusterId = value; } /** *

The ID of the virtual cluster for which a managed endpoint is created.

*/ inline void SetVirtualClusterId(Aws::String&& value) { m_virtualClusterIdHasBeenSet = true; m_virtualClusterId = std::move(value); } /** *

The ID of the virtual cluster for which a managed endpoint is created.

*/ inline void SetVirtualClusterId(const char* value) { m_virtualClusterIdHasBeenSet = true; m_virtualClusterId.assign(value); } /** *

The ID of the virtual cluster for which a managed endpoint is created.

*/ inline CreateManagedEndpointRequest& WithVirtualClusterId(const Aws::String& value) { SetVirtualClusterId(value); return *this;} /** *

The ID of the virtual cluster for which a managed endpoint is created.

*/ inline CreateManagedEndpointRequest& WithVirtualClusterId(Aws::String&& value) { SetVirtualClusterId(std::move(value)); return *this;} /** *

The ID of the virtual cluster for which a managed endpoint is created.

*/ inline CreateManagedEndpointRequest& WithVirtualClusterId(const char* value) { SetVirtualClusterId(value); return *this;} /** *

The type of the managed endpoint.

*/ inline const Aws::String& GetType() const{ return m_type; } /** *

The type of the managed endpoint.

*/ inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; } /** *

The type of the managed endpoint.

*/ inline void SetType(const Aws::String& value) { m_typeHasBeenSet = true; m_type = value; } /** *

The type of the managed endpoint.

*/ inline void SetType(Aws::String&& value) { m_typeHasBeenSet = true; m_type = std::move(value); } /** *

The type of the managed endpoint.

*/ inline void SetType(const char* value) { m_typeHasBeenSet = true; m_type.assign(value); } /** *

The type of the managed endpoint.

*/ inline CreateManagedEndpointRequest& WithType(const Aws::String& value) { SetType(value); return *this;} /** *

The type of the managed endpoint.

*/ inline CreateManagedEndpointRequest& WithType(Aws::String&& value) { SetType(std::move(value)); return *this;} /** *

The type of the managed endpoint.

*/ inline CreateManagedEndpointRequest& WithType(const char* value) { SetType(value); return *this;} /** *

The Amazon EMR release version.

*/ inline const Aws::String& GetReleaseLabel() const{ return m_releaseLabel; } /** *

The Amazon EMR release version.

*/ inline bool ReleaseLabelHasBeenSet() const { return m_releaseLabelHasBeenSet; } /** *

The Amazon EMR release version.

*/ inline void SetReleaseLabel(const Aws::String& value) { m_releaseLabelHasBeenSet = true; m_releaseLabel = value; } /** *

The Amazon EMR release version.

*/ inline void SetReleaseLabel(Aws::String&& value) { m_releaseLabelHasBeenSet = true; m_releaseLabel = std::move(value); } /** *

The Amazon EMR release version.

*/ inline void SetReleaseLabel(const char* value) { m_releaseLabelHasBeenSet = true; m_releaseLabel.assign(value); } /** *

The Amazon EMR release version.

*/ inline CreateManagedEndpointRequest& WithReleaseLabel(const Aws::String& value) { SetReleaseLabel(value); return *this;} /** *

The Amazon EMR release version.

*/ inline CreateManagedEndpointRequest& WithReleaseLabel(Aws::String&& value) { SetReleaseLabel(std::move(value)); return *this;} /** *

The Amazon EMR release version.

*/ inline CreateManagedEndpointRequest& WithReleaseLabel(const char* value) { SetReleaseLabel(value); return *this;} /** *

The ARN of the execution role.

*/ inline const Aws::String& GetExecutionRoleArn() const{ return m_executionRoleArn; } /** *

The ARN of the execution role.

*/ inline bool ExecutionRoleArnHasBeenSet() const { return m_executionRoleArnHasBeenSet; } /** *

The ARN of the execution role.

*/ inline void SetExecutionRoleArn(const Aws::String& value) { m_executionRoleArnHasBeenSet = true; m_executionRoleArn = value; } /** *

The ARN of the execution role.

*/ inline void SetExecutionRoleArn(Aws::String&& value) { m_executionRoleArnHasBeenSet = true; m_executionRoleArn = std::move(value); } /** *

The ARN of the execution role.

*/ inline void SetExecutionRoleArn(const char* value) { m_executionRoleArnHasBeenSet = true; m_executionRoleArn.assign(value); } /** *

The ARN of the execution role.

*/ inline CreateManagedEndpointRequest& WithExecutionRoleArn(const Aws::String& value) { SetExecutionRoleArn(value); return *this;} /** *

The ARN of the execution role.

*/ inline CreateManagedEndpointRequest& WithExecutionRoleArn(Aws::String&& value) { SetExecutionRoleArn(std::move(value)); return *this;} /** *

The ARN of the execution role.

*/ inline CreateManagedEndpointRequest& WithExecutionRoleArn(const char* value) { SetExecutionRoleArn(value); return *this;} /** *

The configuration settings that will be used to override existing * configurations.

*/ inline const ConfigurationOverrides& GetConfigurationOverrides() const{ return m_configurationOverrides; } /** *

The configuration settings that will be used to override existing * configurations.

*/ inline bool ConfigurationOverridesHasBeenSet() const { return m_configurationOverridesHasBeenSet; } /** *

The configuration settings that will be used to override existing * configurations.

*/ inline void SetConfigurationOverrides(const ConfigurationOverrides& value) { m_configurationOverridesHasBeenSet = true; m_configurationOverrides = value; } /** *

The configuration settings that will be used to override existing * configurations.

*/ inline void SetConfigurationOverrides(ConfigurationOverrides&& value) { m_configurationOverridesHasBeenSet = true; m_configurationOverrides = std::move(value); } /** *

The configuration settings that will be used to override existing * configurations.

*/ inline CreateManagedEndpointRequest& WithConfigurationOverrides(const ConfigurationOverrides& value) { SetConfigurationOverrides(value); return *this;} /** *

The configuration settings that will be used to override existing * configurations.

*/ inline CreateManagedEndpointRequest& WithConfigurationOverrides(ConfigurationOverrides&& value) { SetConfigurationOverrides(std::move(value)); return *this;} /** *

The client idempotency token for this create call.

*/ inline const Aws::String& GetClientToken() const{ return m_clientToken; } /** *

The client idempotency token for this create call.

*/ inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; } /** *

The client idempotency token for this create call.

*/ inline void SetClientToken(const Aws::String& value) { m_clientTokenHasBeenSet = true; m_clientToken = value; } /** *

The client idempotency token for this create call.

*/ inline void SetClientToken(Aws::String&& value) { m_clientTokenHasBeenSet = true; m_clientToken = std::move(value); } /** *

The client idempotency token for this create call.

*/ inline void SetClientToken(const char* value) { m_clientTokenHasBeenSet = true; m_clientToken.assign(value); } /** *

The client idempotency token for this create call.

*/ inline CreateManagedEndpointRequest& WithClientToken(const Aws::String& value) { SetClientToken(value); return *this;} /** *

The client idempotency token for this create call.

*/ inline CreateManagedEndpointRequest& WithClientToken(Aws::String&& value) { SetClientToken(std::move(value)); return *this;} /** *

The client idempotency token for this create call.

*/ inline CreateManagedEndpointRequest& WithClientToken(const char* value) { SetClientToken(value); return *this;} /** *

The tags of the managed endpoint.

*/ inline const Aws::Map& GetTags() const{ return m_tags; } /** *

The tags of the managed endpoint.

*/ inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; } /** *

The tags of the managed endpoint.

*/ inline void SetTags(const Aws::Map& value) { m_tagsHasBeenSet = true; m_tags = value; } /** *

The tags of the managed endpoint.

*/ inline void SetTags(Aws::Map&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); } /** *

The tags of the managed endpoint.

*/ inline CreateManagedEndpointRequest& WithTags(const Aws::Map& value) { SetTags(value); return *this;} /** *

The tags of the managed endpoint.

*/ inline CreateManagedEndpointRequest& WithTags(Aws::Map&& value) { SetTags(std::move(value)); return *this;} /** *

The tags of the managed endpoint.

*/ inline CreateManagedEndpointRequest& AddTags(const Aws::String& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; } /** *

The tags of the managed endpoint.

*/ inline CreateManagedEndpointRequest& AddTags(Aws::String&& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; } /** *

The tags of the managed endpoint.

*/ inline CreateManagedEndpointRequest& AddTags(const Aws::String& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; } /** *

The tags of the managed endpoint.

*/ inline CreateManagedEndpointRequest& AddTags(Aws::String&& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), std::move(value)); return *this; } /** *

The tags of the managed endpoint.

*/ inline CreateManagedEndpointRequest& AddTags(const char* key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; } /** *

The tags of the managed endpoint.

*/ inline CreateManagedEndpointRequest& AddTags(Aws::String&& key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; } /** *

The tags of the managed endpoint.

*/ inline CreateManagedEndpointRequest& AddTags(const char* key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; } private: Aws::String m_name; bool m_nameHasBeenSet = false; Aws::String m_virtualClusterId; bool m_virtualClusterIdHasBeenSet = false; Aws::String m_type; bool m_typeHasBeenSet = false; Aws::String m_releaseLabel; bool m_releaseLabelHasBeenSet = false; Aws::String m_executionRoleArn; bool m_executionRoleArnHasBeenSet = false; ConfigurationOverrides m_configurationOverrides; bool m_configurationOverridesHasBeenSet = false; Aws::String m_clientToken; bool m_clientTokenHasBeenSet = false; Aws::Map m_tags; bool m_tagsHasBeenSet = false; }; } // namespace Model } // namespace EMRContainers } // namespace Aws