/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include
#include
#include
#include
#include
namespace Aws
{
namespace Utils
{
namespace Json
{
class JsonValue;
class JsonView;
} // namespace Json
} // namespace Utils
namespace SageMaker
{
namespace Model
{
/**
* A collection of settings that apply to an RSessionGateway
* app.
See Also:
AWS
* API Reference
*/
class RSessionAppSettings
{
public:
AWS_SAGEMAKER_API RSessionAppSettings();
AWS_SAGEMAKER_API RSessionAppSettings(Aws::Utils::Json::JsonView jsonValue);
AWS_SAGEMAKER_API RSessionAppSettings& operator=(Aws::Utils::Json::JsonView jsonValue);
AWS_SAGEMAKER_API Aws::Utils::Json::JsonValue Jsonize() const;
inline const ResourceSpec& GetDefaultResourceSpec() const{ return m_defaultResourceSpec; }
inline bool DefaultResourceSpecHasBeenSet() const { return m_defaultResourceSpecHasBeenSet; }
inline void SetDefaultResourceSpec(const ResourceSpec& value) { m_defaultResourceSpecHasBeenSet = true; m_defaultResourceSpec = value; }
inline void SetDefaultResourceSpec(ResourceSpec&& value) { m_defaultResourceSpecHasBeenSet = true; m_defaultResourceSpec = std::move(value); }
inline RSessionAppSettings& WithDefaultResourceSpec(const ResourceSpec& value) { SetDefaultResourceSpec(value); return *this;}
inline RSessionAppSettings& WithDefaultResourceSpec(ResourceSpec&& value) { SetDefaultResourceSpec(std::move(value)); return *this;}
/**
* A list of custom SageMaker images that are configured to run as a RSession
* app.
*/
inline const Aws::Vector& GetCustomImages() const{ return m_customImages; }
/**
* A list of custom SageMaker images that are configured to run as a RSession
* app.
*/
inline bool CustomImagesHasBeenSet() const { return m_customImagesHasBeenSet; }
/**
* A list of custom SageMaker images that are configured to run as a RSession
* app.
*/
inline void SetCustomImages(const Aws::Vector& value) { m_customImagesHasBeenSet = true; m_customImages = value; }
/**
* A list of custom SageMaker images that are configured to run as a RSession
* app.
*/
inline void SetCustomImages(Aws::Vector&& value) { m_customImagesHasBeenSet = true; m_customImages = std::move(value); }
/**
* A list of custom SageMaker images that are configured to run as a RSession
* app.
*/
inline RSessionAppSettings& WithCustomImages(const Aws::Vector& value) { SetCustomImages(value); return *this;}
/**
* A list of custom SageMaker images that are configured to run as a RSession
* app.
*/
inline RSessionAppSettings& WithCustomImages(Aws::Vector&& value) { SetCustomImages(std::move(value)); return *this;}
/**
* A list of custom SageMaker images that are configured to run as a RSession
* app.
*/
inline RSessionAppSettings& AddCustomImages(const CustomImage& value) { m_customImagesHasBeenSet = true; m_customImages.push_back(value); return *this; }
/**
* A list of custom SageMaker images that are configured to run as a RSession
* app.
*/
inline RSessionAppSettings& AddCustomImages(CustomImage&& value) { m_customImagesHasBeenSet = true; m_customImages.push_back(std::move(value)); return *this; }
private:
ResourceSpec m_defaultResourceSpec;
bool m_defaultResourceSpecHasBeenSet = false;
Aws::Vector m_customImages;
bool m_customImagesHasBeenSet = false;
};
} // namespace Model
} // namespace SageMaker
} // namespace Aws