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

The name of the Studio Lifecycle Configuration to create.

*/ inline const Aws::String& GetStudioLifecycleConfigName() const{ return m_studioLifecycleConfigName; } /** *

The name of the Studio Lifecycle Configuration to create.

*/ inline bool StudioLifecycleConfigNameHasBeenSet() const { return m_studioLifecycleConfigNameHasBeenSet; } /** *

The name of the Studio Lifecycle Configuration to create.

*/ inline void SetStudioLifecycleConfigName(const Aws::String& value) { m_studioLifecycleConfigNameHasBeenSet = true; m_studioLifecycleConfigName = value; } /** *

The name of the Studio Lifecycle Configuration to create.

*/ inline void SetStudioLifecycleConfigName(Aws::String&& value) { m_studioLifecycleConfigNameHasBeenSet = true; m_studioLifecycleConfigName = std::move(value); } /** *

The name of the Studio Lifecycle Configuration to create.

*/ inline void SetStudioLifecycleConfigName(const char* value) { m_studioLifecycleConfigNameHasBeenSet = true; m_studioLifecycleConfigName.assign(value); } /** *

The name of the Studio Lifecycle Configuration to create.

*/ inline CreateStudioLifecycleConfigRequest& WithStudioLifecycleConfigName(const Aws::String& value) { SetStudioLifecycleConfigName(value); return *this;} /** *

The name of the Studio Lifecycle Configuration to create.

*/ inline CreateStudioLifecycleConfigRequest& WithStudioLifecycleConfigName(Aws::String&& value) { SetStudioLifecycleConfigName(std::move(value)); return *this;} /** *

The name of the Studio Lifecycle Configuration to create.

*/ inline CreateStudioLifecycleConfigRequest& WithStudioLifecycleConfigName(const char* value) { SetStudioLifecycleConfigName(value); return *this;} /** *

The content of your Studio Lifecycle Configuration script. This content must * be base64 encoded.

*/ inline const Aws::String& GetStudioLifecycleConfigContent() const{ return m_studioLifecycleConfigContent; } /** *

The content of your Studio Lifecycle Configuration script. This content must * be base64 encoded.

*/ inline bool StudioLifecycleConfigContentHasBeenSet() const { return m_studioLifecycleConfigContentHasBeenSet; } /** *

The content of your Studio Lifecycle Configuration script. This content must * be base64 encoded.

*/ inline void SetStudioLifecycleConfigContent(const Aws::String& value) { m_studioLifecycleConfigContentHasBeenSet = true; m_studioLifecycleConfigContent = value; } /** *

The content of your Studio Lifecycle Configuration script. This content must * be base64 encoded.

*/ inline void SetStudioLifecycleConfigContent(Aws::String&& value) { m_studioLifecycleConfigContentHasBeenSet = true; m_studioLifecycleConfigContent = std::move(value); } /** *

The content of your Studio Lifecycle Configuration script. This content must * be base64 encoded.

*/ inline void SetStudioLifecycleConfigContent(const char* value) { m_studioLifecycleConfigContentHasBeenSet = true; m_studioLifecycleConfigContent.assign(value); } /** *

The content of your Studio Lifecycle Configuration script. This content must * be base64 encoded.

*/ inline CreateStudioLifecycleConfigRequest& WithStudioLifecycleConfigContent(const Aws::String& value) { SetStudioLifecycleConfigContent(value); return *this;} /** *

The content of your Studio Lifecycle Configuration script. This content must * be base64 encoded.

*/ inline CreateStudioLifecycleConfigRequest& WithStudioLifecycleConfigContent(Aws::String&& value) { SetStudioLifecycleConfigContent(std::move(value)); return *this;} /** *

The content of your Studio Lifecycle Configuration script. This content must * be base64 encoded.

*/ inline CreateStudioLifecycleConfigRequest& WithStudioLifecycleConfigContent(const char* value) { SetStudioLifecycleConfigContent(value); return *this;} /** *

The App type that the Lifecycle Configuration is attached to.

*/ inline const StudioLifecycleConfigAppType& GetStudioLifecycleConfigAppType() const{ return m_studioLifecycleConfigAppType; } /** *

The App type that the Lifecycle Configuration is attached to.

*/ inline bool StudioLifecycleConfigAppTypeHasBeenSet() const { return m_studioLifecycleConfigAppTypeHasBeenSet; } /** *

The App type that the Lifecycle Configuration is attached to.

*/ inline void SetStudioLifecycleConfigAppType(const StudioLifecycleConfigAppType& value) { m_studioLifecycleConfigAppTypeHasBeenSet = true; m_studioLifecycleConfigAppType = value; } /** *

The App type that the Lifecycle Configuration is attached to.

*/ inline void SetStudioLifecycleConfigAppType(StudioLifecycleConfigAppType&& value) { m_studioLifecycleConfigAppTypeHasBeenSet = true; m_studioLifecycleConfigAppType = std::move(value); } /** *

The App type that the Lifecycle Configuration is attached to.

*/ inline CreateStudioLifecycleConfigRequest& WithStudioLifecycleConfigAppType(const StudioLifecycleConfigAppType& value) { SetStudioLifecycleConfigAppType(value); return *this;} /** *

The App type that the Lifecycle Configuration is attached to.

*/ inline CreateStudioLifecycleConfigRequest& WithStudioLifecycleConfigAppType(StudioLifecycleConfigAppType&& value) { SetStudioLifecycleConfigAppType(std::move(value)); return *this;} /** *

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

*/ inline CreateStudioLifecycleConfigRequest& AddTags(Tag&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(value)); return *this; } private: Aws::String m_studioLifecycleConfigName; bool m_studioLifecycleConfigNameHasBeenSet = false; Aws::String m_studioLifecycleConfigContent; bool m_studioLifecycleConfigContentHasBeenSet = false; StudioLifecycleConfigAppType m_studioLifecycleConfigAppType; bool m_studioLifecycleConfigAppTypeHasBeenSet = false; Aws::Vector m_tags; bool m_tagsHasBeenSet = false; }; } // namespace Model } // namespace SageMaker } // namespace Aws