/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include #include #include namespace Aws { namespace Utils { namespace Json { class JsonValue; class JsonView; } // namespace Json } // namespace Utils namespace SageMaker { namespace Model { /** *

The JupyterServer app settings.

See Also:

AWS * API Reference

*/ class JupyterServerAppSettings { public: AWS_SAGEMAKER_API JupyterServerAppSettings(); AWS_SAGEMAKER_API JupyterServerAppSettings(Aws::Utils::Json::JsonView jsonValue); AWS_SAGEMAKER_API JupyterServerAppSettings& operator=(Aws::Utils::Json::JsonView jsonValue); AWS_SAGEMAKER_API Aws::Utils::Json::JsonValue Jsonize() const; /** *

The default instance type and the Amazon Resource Name (ARN) of the default * SageMaker image used by the JupyterServer app. If you use the * LifecycleConfigArns parameter, then this parameter is also * required.

*/ inline const ResourceSpec& GetDefaultResourceSpec() const{ return m_defaultResourceSpec; } /** *

The default instance type and the Amazon Resource Name (ARN) of the default * SageMaker image used by the JupyterServer app. If you use the * LifecycleConfigArns parameter, then this parameter is also * required.

*/ inline bool DefaultResourceSpecHasBeenSet() const { return m_defaultResourceSpecHasBeenSet; } /** *

The default instance type and the Amazon Resource Name (ARN) of the default * SageMaker image used by the JupyterServer app. If you use the * LifecycleConfigArns parameter, then this parameter is also * required.

*/ inline void SetDefaultResourceSpec(const ResourceSpec& value) { m_defaultResourceSpecHasBeenSet = true; m_defaultResourceSpec = value; } /** *

The default instance type and the Amazon Resource Name (ARN) of the default * SageMaker image used by the JupyterServer app. If you use the * LifecycleConfigArns parameter, then this parameter is also * required.

*/ inline void SetDefaultResourceSpec(ResourceSpec&& value) { m_defaultResourceSpecHasBeenSet = true; m_defaultResourceSpec = std::move(value); } /** *

The default instance type and the Amazon Resource Name (ARN) of the default * SageMaker image used by the JupyterServer app. If you use the * LifecycleConfigArns parameter, then this parameter is also * required.

*/ inline JupyterServerAppSettings& WithDefaultResourceSpec(const ResourceSpec& value) { SetDefaultResourceSpec(value); return *this;} /** *

The default instance type and the Amazon Resource Name (ARN) of the default * SageMaker image used by the JupyterServer app. If you use the * LifecycleConfigArns parameter, then this parameter is also * required.

*/ inline JupyterServerAppSettings& WithDefaultResourceSpec(ResourceSpec&& value) { SetDefaultResourceSpec(std::move(value)); return *this;} /** *

The Amazon Resource Name (ARN) of the Lifecycle Configurations attached to * the JupyterServerApp. If you use this parameter, the * DefaultResourceSpec parameter is also required.

To * remove a Lifecycle Config, you must set LifecycleConfigArns to an * empty list.

*/ inline const Aws::Vector& GetLifecycleConfigArns() const{ return m_lifecycleConfigArns; } /** *

The Amazon Resource Name (ARN) of the Lifecycle Configurations attached to * the JupyterServerApp. If you use this parameter, the * DefaultResourceSpec parameter is also required.

To * remove a Lifecycle Config, you must set LifecycleConfigArns to an * empty list.

*/ inline bool LifecycleConfigArnsHasBeenSet() const { return m_lifecycleConfigArnsHasBeenSet; } /** *

The Amazon Resource Name (ARN) of the Lifecycle Configurations attached to * the JupyterServerApp. If you use this parameter, the * DefaultResourceSpec parameter is also required.

To * remove a Lifecycle Config, you must set LifecycleConfigArns to an * empty list.

*/ inline void SetLifecycleConfigArns(const Aws::Vector& value) { m_lifecycleConfigArnsHasBeenSet = true; m_lifecycleConfigArns = value; } /** *

The Amazon Resource Name (ARN) of the Lifecycle Configurations attached to * the JupyterServerApp. If you use this parameter, the * DefaultResourceSpec parameter is also required.

To * remove a Lifecycle Config, you must set LifecycleConfigArns to an * empty list.

*/ inline void SetLifecycleConfigArns(Aws::Vector&& value) { m_lifecycleConfigArnsHasBeenSet = true; m_lifecycleConfigArns = std::move(value); } /** *

The Amazon Resource Name (ARN) of the Lifecycle Configurations attached to * the JupyterServerApp. If you use this parameter, the * DefaultResourceSpec parameter is also required.

To * remove a Lifecycle Config, you must set LifecycleConfigArns to an * empty list.

*/ inline JupyterServerAppSettings& WithLifecycleConfigArns(const Aws::Vector& value) { SetLifecycleConfigArns(value); return *this;} /** *

The Amazon Resource Name (ARN) of the Lifecycle Configurations attached to * the JupyterServerApp. If you use this parameter, the * DefaultResourceSpec parameter is also required.

To * remove a Lifecycle Config, you must set LifecycleConfigArns to an * empty list.

*/ inline JupyterServerAppSettings& WithLifecycleConfigArns(Aws::Vector&& value) { SetLifecycleConfigArns(std::move(value)); return *this;} /** *

The Amazon Resource Name (ARN) of the Lifecycle Configurations attached to * the JupyterServerApp. If you use this parameter, the * DefaultResourceSpec parameter is also required.

To * remove a Lifecycle Config, you must set LifecycleConfigArns to an * empty list.

*/ inline JupyterServerAppSettings& AddLifecycleConfigArns(const Aws::String& value) { m_lifecycleConfigArnsHasBeenSet = true; m_lifecycleConfigArns.push_back(value); return *this; } /** *

The Amazon Resource Name (ARN) of the Lifecycle Configurations attached to * the JupyterServerApp. If you use this parameter, the * DefaultResourceSpec parameter is also required.

To * remove a Lifecycle Config, you must set LifecycleConfigArns to an * empty list.

*/ inline JupyterServerAppSettings& AddLifecycleConfigArns(Aws::String&& value) { m_lifecycleConfigArnsHasBeenSet = true; m_lifecycleConfigArns.push_back(std::move(value)); return *this; } /** *

The Amazon Resource Name (ARN) of the Lifecycle Configurations attached to * the JupyterServerApp. If you use this parameter, the * DefaultResourceSpec parameter is also required.

To * remove a Lifecycle Config, you must set LifecycleConfigArns to an * empty list.

*/ inline JupyterServerAppSettings& AddLifecycleConfigArns(const char* value) { m_lifecycleConfigArnsHasBeenSet = true; m_lifecycleConfigArns.push_back(value); return *this; } /** *

A list of Git repositories that SageMaker automatically displays to users for * cloning in the JupyterServer application.

*/ inline const Aws::Vector& GetCodeRepositories() const{ return m_codeRepositories; } /** *

A list of Git repositories that SageMaker automatically displays to users for * cloning in the JupyterServer application.

*/ inline bool CodeRepositoriesHasBeenSet() const { return m_codeRepositoriesHasBeenSet; } /** *

A list of Git repositories that SageMaker automatically displays to users for * cloning in the JupyterServer application.

*/ inline void SetCodeRepositories(const Aws::Vector& value) { m_codeRepositoriesHasBeenSet = true; m_codeRepositories = value; } /** *

A list of Git repositories that SageMaker automatically displays to users for * cloning in the JupyterServer application.

*/ inline void SetCodeRepositories(Aws::Vector&& value) { m_codeRepositoriesHasBeenSet = true; m_codeRepositories = std::move(value); } /** *

A list of Git repositories that SageMaker automatically displays to users for * cloning in the JupyterServer application.

*/ inline JupyterServerAppSettings& WithCodeRepositories(const Aws::Vector& value) { SetCodeRepositories(value); return *this;} /** *

A list of Git repositories that SageMaker automatically displays to users for * cloning in the JupyterServer application.

*/ inline JupyterServerAppSettings& WithCodeRepositories(Aws::Vector&& value) { SetCodeRepositories(std::move(value)); return *this;} /** *

A list of Git repositories that SageMaker automatically displays to users for * cloning in the JupyterServer application.

*/ inline JupyterServerAppSettings& AddCodeRepositories(const CodeRepository& value) { m_codeRepositoriesHasBeenSet = true; m_codeRepositories.push_back(value); return *this; } /** *

A list of Git repositories that SageMaker automatically displays to users for * cloning in the JupyterServer application.

*/ inline JupyterServerAppSettings& AddCodeRepositories(CodeRepository&& value) { m_codeRepositoriesHasBeenSet = true; m_codeRepositories.push_back(std::move(value)); return *this; } private: ResourceSpec m_defaultResourceSpec; bool m_defaultResourceSpecHasBeenSet = false; Aws::Vector m_lifecycleConfigArns; bool m_lifecycleConfigArnsHasBeenSet = false; Aws::Vector m_codeRepositories; bool m_codeRepositoriesHasBeenSet = false; }; } // namespace Model } // namespace SageMaker } // namespace Aws