/** * 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 CreateHubRequest : public SageMakerRequest { public: AWS_SAGEMAKER_API CreateHubRequest(); // 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 "CreateHub"; } AWS_SAGEMAKER_API Aws::String SerializePayload() const override; AWS_SAGEMAKER_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override; /** *

The name of the hub to create.

*/ inline const Aws::String& GetHubName() const{ return m_hubName; } /** *

The name of the hub to create.

*/ inline bool HubNameHasBeenSet() const { return m_hubNameHasBeenSet; } /** *

The name of the hub to create.

*/ inline void SetHubName(const Aws::String& value) { m_hubNameHasBeenSet = true; m_hubName = value; } /** *

The name of the hub to create.

*/ inline void SetHubName(Aws::String&& value) { m_hubNameHasBeenSet = true; m_hubName = std::move(value); } /** *

The name of the hub to create.

*/ inline void SetHubName(const char* value) { m_hubNameHasBeenSet = true; m_hubName.assign(value); } /** *

The name of the hub to create.

*/ inline CreateHubRequest& WithHubName(const Aws::String& value) { SetHubName(value); return *this;} /** *

The name of the hub to create.

*/ inline CreateHubRequest& WithHubName(Aws::String&& value) { SetHubName(std::move(value)); return *this;} /** *

The name of the hub to create.

*/ inline CreateHubRequest& WithHubName(const char* value) { SetHubName(value); return *this;} /** *

A description of the hub.

*/ inline const Aws::String& GetHubDescription() const{ return m_hubDescription; } /** *

A description of the hub.

*/ inline bool HubDescriptionHasBeenSet() const { return m_hubDescriptionHasBeenSet; } /** *

A description of the hub.

*/ inline void SetHubDescription(const Aws::String& value) { m_hubDescriptionHasBeenSet = true; m_hubDescription = value; } /** *

A description of the hub.

*/ inline void SetHubDescription(Aws::String&& value) { m_hubDescriptionHasBeenSet = true; m_hubDescription = std::move(value); } /** *

A description of the hub.

*/ inline void SetHubDescription(const char* value) { m_hubDescriptionHasBeenSet = true; m_hubDescription.assign(value); } /** *

A description of the hub.

*/ inline CreateHubRequest& WithHubDescription(const Aws::String& value) { SetHubDescription(value); return *this;} /** *

A description of the hub.

*/ inline CreateHubRequest& WithHubDescription(Aws::String&& value) { SetHubDescription(std::move(value)); return *this;} /** *

A description of the hub.

*/ inline CreateHubRequest& WithHubDescription(const char* value) { SetHubDescription(value); return *this;} /** *

The display name of the hub.

*/ inline const Aws::String& GetHubDisplayName() const{ return m_hubDisplayName; } /** *

The display name of the hub.

*/ inline bool HubDisplayNameHasBeenSet() const { return m_hubDisplayNameHasBeenSet; } /** *

The display name of the hub.

*/ inline void SetHubDisplayName(const Aws::String& value) { m_hubDisplayNameHasBeenSet = true; m_hubDisplayName = value; } /** *

The display name of the hub.

*/ inline void SetHubDisplayName(Aws::String&& value) { m_hubDisplayNameHasBeenSet = true; m_hubDisplayName = std::move(value); } /** *

The display name of the hub.

*/ inline void SetHubDisplayName(const char* value) { m_hubDisplayNameHasBeenSet = true; m_hubDisplayName.assign(value); } /** *

The display name of the hub.

*/ inline CreateHubRequest& WithHubDisplayName(const Aws::String& value) { SetHubDisplayName(value); return *this;} /** *

The display name of the hub.

*/ inline CreateHubRequest& WithHubDisplayName(Aws::String&& value) { SetHubDisplayName(std::move(value)); return *this;} /** *

The display name of the hub.

*/ inline CreateHubRequest& WithHubDisplayName(const char* value) { SetHubDisplayName(value); return *this;} /** *

The searchable keywords for the hub.

*/ inline const Aws::Vector& GetHubSearchKeywords() const{ return m_hubSearchKeywords; } /** *

The searchable keywords for the hub.

*/ inline bool HubSearchKeywordsHasBeenSet() const { return m_hubSearchKeywordsHasBeenSet; } /** *

The searchable keywords for the hub.

*/ inline void SetHubSearchKeywords(const Aws::Vector& value) { m_hubSearchKeywordsHasBeenSet = true; m_hubSearchKeywords = value; } /** *

The searchable keywords for the hub.

*/ inline void SetHubSearchKeywords(Aws::Vector&& value) { m_hubSearchKeywordsHasBeenSet = true; m_hubSearchKeywords = std::move(value); } /** *

The searchable keywords for the hub.

*/ inline CreateHubRequest& WithHubSearchKeywords(const Aws::Vector& value) { SetHubSearchKeywords(value); return *this;} /** *

The searchable keywords for the hub.

*/ inline CreateHubRequest& WithHubSearchKeywords(Aws::Vector&& value) { SetHubSearchKeywords(std::move(value)); return *this;} /** *

The searchable keywords for the hub.

*/ inline CreateHubRequest& AddHubSearchKeywords(const Aws::String& value) { m_hubSearchKeywordsHasBeenSet = true; m_hubSearchKeywords.push_back(value); return *this; } /** *

The searchable keywords for the hub.

*/ inline CreateHubRequest& AddHubSearchKeywords(Aws::String&& value) { m_hubSearchKeywordsHasBeenSet = true; m_hubSearchKeywords.push_back(std::move(value)); return *this; } /** *

The searchable keywords for the hub.

*/ inline CreateHubRequest& AddHubSearchKeywords(const char* value) { m_hubSearchKeywordsHasBeenSet = true; m_hubSearchKeywords.push_back(value); return *this; } /** *

The Amazon S3 storage configuration for the hub.

*/ inline const HubS3StorageConfig& GetS3StorageConfig() const{ return m_s3StorageConfig; } /** *

The Amazon S3 storage configuration for the hub.

*/ inline bool S3StorageConfigHasBeenSet() const { return m_s3StorageConfigHasBeenSet; } /** *

The Amazon S3 storage configuration for the hub.

*/ inline void SetS3StorageConfig(const HubS3StorageConfig& value) { m_s3StorageConfigHasBeenSet = true; m_s3StorageConfig = value; } /** *

The Amazon S3 storage configuration for the hub.

*/ inline void SetS3StorageConfig(HubS3StorageConfig&& value) { m_s3StorageConfigHasBeenSet = true; m_s3StorageConfig = std::move(value); } /** *

The Amazon S3 storage configuration for the hub.

*/ inline CreateHubRequest& WithS3StorageConfig(const HubS3StorageConfig& value) { SetS3StorageConfig(value); return *this;} /** *

The Amazon S3 storage configuration for the hub.

*/ inline CreateHubRequest& WithS3StorageConfig(HubS3StorageConfig&& value) { SetS3StorageConfig(std::move(value)); return *this;} /** *

Any tags to associate with the hub.

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

Any tags to associate with the hub.

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

Any tags to associate with the hub.

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

Any tags to associate with the hub.

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

Any tags to associate with the hub.

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

Any tags to associate with the hub.

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

Any tags to associate with the hub.

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

Any tags to associate with the hub.

*/ inline CreateHubRequest& AddTags(Tag&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(value)); return *this; } private: Aws::String m_hubName; bool m_hubNameHasBeenSet = false; Aws::String m_hubDescription; bool m_hubDescriptionHasBeenSet = false; Aws::String m_hubDisplayName; bool m_hubDisplayNameHasBeenSet = false; Aws::Vector m_hubSearchKeywords; bool m_hubSearchKeywordsHasBeenSet = false; HubS3StorageConfig m_s3StorageConfig; bool m_s3StorageConfigHasBeenSet = false; Aws::Vector m_tags; bool m_tagsHasBeenSet = false; }; } // namespace Model } // namespace SageMaker } // namespace Aws