/** * 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 SageMaker { namespace Model { /** */ class CreateSpaceRequest : public SageMakerRequest { public: AWS_SAGEMAKER_API CreateSpaceRequest(); // 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 "CreateSpace"; } AWS_SAGEMAKER_API Aws::String SerializePayload() const override; AWS_SAGEMAKER_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override; /** *

The ID of the associated Domain.

*/ inline const Aws::String& GetDomainId() const{ return m_domainId; } /** *

The ID of the associated Domain.

*/ inline bool DomainIdHasBeenSet() const { return m_domainIdHasBeenSet; } /** *

The ID of the associated Domain.

*/ inline void SetDomainId(const Aws::String& value) { m_domainIdHasBeenSet = true; m_domainId = value; } /** *

The ID of the associated Domain.

*/ inline void SetDomainId(Aws::String&& value) { m_domainIdHasBeenSet = true; m_domainId = std::move(value); } /** *

The ID of the associated Domain.

*/ inline void SetDomainId(const char* value) { m_domainIdHasBeenSet = true; m_domainId.assign(value); } /** *

The ID of the associated Domain.

*/ inline CreateSpaceRequest& WithDomainId(const Aws::String& value) { SetDomainId(value); return *this;} /** *

The ID of the associated Domain.

*/ inline CreateSpaceRequest& WithDomainId(Aws::String&& value) { SetDomainId(std::move(value)); return *this;} /** *

The ID of the associated Domain.

*/ inline CreateSpaceRequest& WithDomainId(const char* value) { SetDomainId(value); return *this;} /** *

The name of the space.

*/ inline const Aws::String& GetSpaceName() const{ return m_spaceName; } /** *

The name of the space.

*/ inline bool SpaceNameHasBeenSet() const { return m_spaceNameHasBeenSet; } /** *

The name of the space.

*/ inline void SetSpaceName(const Aws::String& value) { m_spaceNameHasBeenSet = true; m_spaceName = value; } /** *

The name of the space.

*/ inline void SetSpaceName(Aws::String&& value) { m_spaceNameHasBeenSet = true; m_spaceName = std::move(value); } /** *

The name of the space.

*/ inline void SetSpaceName(const char* value) { m_spaceNameHasBeenSet = true; m_spaceName.assign(value); } /** *

The name of the space.

*/ inline CreateSpaceRequest& WithSpaceName(const Aws::String& value) { SetSpaceName(value); return *this;} /** *

The name of the space.

*/ inline CreateSpaceRequest& WithSpaceName(Aws::String&& value) { SetSpaceName(std::move(value)); return *this;} /** *

The name of the space.

*/ inline CreateSpaceRequest& WithSpaceName(const char* value) { SetSpaceName(value); return *this;} /** *

Tags to associated with the space. Each tag consists of a key and an optional * value. Tag keys must be unique for each resource. Tags are searchable using the * Search API.

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

Tags to associated with the space. Each tag consists of a key and an optional * value. Tag keys must be unique for each resource. Tags are searchable using the * Search API.

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

Tags to associated with the space. Each tag consists of a key and an optional * value. Tag keys must be unique for each resource. Tags are searchable using the * Search API.

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

Tags to associated with the space. Each tag consists of a key and an optional * value. Tag keys must be unique for each resource. Tags are searchable using the * Search API.

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

Tags to associated with the space. Each tag consists of a key and an optional * value. Tag keys must be unique for each resource. Tags are searchable using the * Search API.

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

Tags to associated with the space. Each tag consists of a key and an optional * value. Tag keys must be unique for each resource. Tags are searchable using the * Search API.

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

Tags to associated with the space. Each tag consists of a key and an optional * value. Tag keys must be unique for each resource. Tags are searchable using the * Search API.

*/ inline CreateSpaceRequest& AddTags(const Tag& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; } /** *

Tags to associated with the space. Each tag consists of a key and an optional * value. Tag keys must be unique for each resource. Tags are searchable using the * Search API.

*/ inline CreateSpaceRequest& AddTags(Tag&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(value)); return *this; } /** *

A collection of space settings.

*/ inline const SpaceSettings& GetSpaceSettings() const{ return m_spaceSettings; } /** *

A collection of space settings.

*/ inline bool SpaceSettingsHasBeenSet() const { return m_spaceSettingsHasBeenSet; } /** *

A collection of space settings.

*/ inline void SetSpaceSettings(const SpaceSettings& value) { m_spaceSettingsHasBeenSet = true; m_spaceSettings = value; } /** *

A collection of space settings.

*/ inline void SetSpaceSettings(SpaceSettings&& value) { m_spaceSettingsHasBeenSet = true; m_spaceSettings = std::move(value); } /** *

A collection of space settings.

*/ inline CreateSpaceRequest& WithSpaceSettings(const SpaceSettings& value) { SetSpaceSettings(value); return *this;} /** *

A collection of space settings.

*/ inline CreateSpaceRequest& WithSpaceSettings(SpaceSettings&& value) { SetSpaceSettings(std::move(value)); return *this;} private: Aws::String m_domainId; bool m_domainIdHasBeenSet = false; Aws::String m_spaceName; bool m_spaceNameHasBeenSet = false; Aws::Vector m_tags; bool m_tagsHasBeenSet = false; SpaceSettings m_spaceSettings; bool m_spaceSettingsHasBeenSet = false; }; } // namespace Model } // namespace SageMaker } // namespace Aws