/** * 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 CreateVirtualClusterRequest : public EMRContainersRequest { public: AWS_EMRCONTAINERS_API CreateVirtualClusterRequest(); // 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 "CreateVirtualCluster"; } AWS_EMRCONTAINERS_API Aws::String SerializePayload() const override; /** *

The specified name of the virtual cluster.

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

The specified name of the virtual cluster.

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

The specified name of the virtual cluster.

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

The specified name of the virtual cluster.

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

The specified name of the virtual cluster.

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

The specified name of the virtual cluster.

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

The specified name of the virtual cluster.

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

The specified name of the virtual cluster.

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

The container provider of the virtual cluster.

*/ inline const ContainerProvider& GetContainerProvider() const{ return m_containerProvider; } /** *

The container provider of the virtual cluster.

*/ inline bool ContainerProviderHasBeenSet() const { return m_containerProviderHasBeenSet; } /** *

The container provider of the virtual cluster.

*/ inline void SetContainerProvider(const ContainerProvider& value) { m_containerProviderHasBeenSet = true; m_containerProvider = value; } /** *

The container provider of the virtual cluster.

*/ inline void SetContainerProvider(ContainerProvider&& value) { m_containerProviderHasBeenSet = true; m_containerProvider = std::move(value); } /** *

The container provider of the virtual cluster.

*/ inline CreateVirtualClusterRequest& WithContainerProvider(const ContainerProvider& value) { SetContainerProvider(value); return *this;} /** *

The container provider of the virtual cluster.

*/ inline CreateVirtualClusterRequest& WithContainerProvider(ContainerProvider&& value) { SetContainerProvider(std::move(value)); return *this;} /** *

The client token of the virtual cluster.

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

The client token of the virtual cluster.

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

The client token of the virtual cluster.

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

The client token of the virtual cluster.

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

The client token of the virtual cluster.

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

The client token of the virtual cluster.

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

The client token of the virtual cluster.

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

The client token of the virtual cluster.

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

The tags assigned to the virtual cluster.

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

The tags assigned to the virtual cluster.

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

The tags assigned to the virtual cluster.

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

The tags assigned to the virtual cluster.

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

The tags assigned to the virtual cluster.

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

The tags assigned to the virtual cluster.

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

The tags assigned to the virtual cluster.

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

The tags assigned to the virtual cluster.

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

The tags assigned to the virtual cluster.

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

The tags assigned to the virtual cluster.

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

The tags assigned to the virtual cluster.

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

The tags assigned to the virtual cluster.

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

The tags assigned to the virtual cluster.

*/ inline CreateVirtualClusterRequest& 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; ContainerProvider m_containerProvider; bool m_containerProviderHasBeenSet = false; Aws::String m_clientToken; bool m_clientTokenHasBeenSet = false; Aws::Map m_tags; bool m_tagsHasBeenSet = false; }; } // namespace Model } // namespace EMRContainers } // namespace Aws