AWS SDK for C++

AWS SDK for C++ Version 1.11.612

Loading...
Searching...
No Matches
RSessionAppSettings.h
1
6#pragma once
7#include <aws/sagemaker/SageMaker_EXPORTS.h>
8#include <aws/sagemaker/model/ResourceSpec.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/sagemaker/model/CustomImage.h>
11#include <utility>
12
13namespace Aws
14{
15namespace Utils
16{
17namespace Json
18{
19 class JsonValue;
20 class JsonView;
21} // namespace Json
22} // namespace Utils
23namespace SageMaker
24{
25namespace Model
26{
27
35 {
36 public:
37 AWS_SAGEMAKER_API RSessionAppSettings() = default;
38 AWS_SAGEMAKER_API RSessionAppSettings(Aws::Utils::Json::JsonView jsonValue);
40 AWS_SAGEMAKER_API Aws::Utils::Json::JsonValue Jsonize() const;
41
42
44
45 inline const ResourceSpec& GetDefaultResourceSpec() const { return m_defaultResourceSpec; }
46 inline bool DefaultResourceSpecHasBeenSet() const { return m_defaultResourceSpecHasBeenSet; }
47 template<typename DefaultResourceSpecT = ResourceSpec>
48 void SetDefaultResourceSpec(DefaultResourceSpecT&& value) { m_defaultResourceSpecHasBeenSet = true; m_defaultResourceSpec = std::forward<DefaultResourceSpecT>(value); }
49 template<typename DefaultResourceSpecT = ResourceSpec>
50 RSessionAppSettings& WithDefaultResourceSpec(DefaultResourceSpecT&& value) { SetDefaultResourceSpec(std::forward<DefaultResourceSpecT>(value)); return *this;}
52
54
58 inline const Aws::Vector<CustomImage>& GetCustomImages() const { return m_customImages; }
59 inline bool CustomImagesHasBeenSet() const { return m_customImagesHasBeenSet; }
60 template<typename CustomImagesT = Aws::Vector<CustomImage>>
61 void SetCustomImages(CustomImagesT&& value) { m_customImagesHasBeenSet = true; m_customImages = std::forward<CustomImagesT>(value); }
62 template<typename CustomImagesT = Aws::Vector<CustomImage>>
63 RSessionAppSettings& WithCustomImages(CustomImagesT&& value) { SetCustomImages(std::forward<CustomImagesT>(value)); return *this;}
64 template<typename CustomImagesT = CustomImage>
65 RSessionAppSettings& AddCustomImages(CustomImagesT&& value) { m_customImagesHasBeenSet = true; m_customImages.emplace_back(std::forward<CustomImagesT>(value)); return *this; }
67 private:
68
69 ResourceSpec m_defaultResourceSpec;
70 bool m_defaultResourceSpecHasBeenSet = false;
71
72 Aws::Vector<CustomImage> m_customImages;
73 bool m_customImagesHasBeenSet = false;
74 };
75
76} // namespace Model
77} // namespace SageMaker
78} // namespace Aws
AWS_SAGEMAKER_API RSessionAppSettings & operator=(Aws::Utils::Json::JsonView jsonValue)
const ResourceSpec & GetDefaultResourceSpec() const
void SetDefaultResourceSpec(DefaultResourceSpecT &&value)
const Aws::Vector< CustomImage > & GetCustomImages() const
RSessionAppSettings & WithDefaultResourceSpec(DefaultResourceSpecT &&value)
RSessionAppSettings & AddCustomImages(CustomImagesT &&value)
AWS_SAGEMAKER_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_SAGEMAKER_API RSessionAppSettings()=default
RSessionAppSettings & WithCustomImages(CustomImagesT &&value)
AWS_SAGEMAKER_API RSessionAppSettings(Aws::Utils::Json::JsonView jsonValue)
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue