AWS SDK for C++

AWS SDK for C++ Version 1.11.719

Loading...
Searching...
No Matches
RSessionAppSettings.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSVector.h>
8#include <aws/sagemaker/SageMaker_EXPORTS.h>
9#include <aws/sagemaker/model/CustomImage.h>
10#include <aws/sagemaker/model/ResourceSpec.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Utils {
16namespace Json {
17class JsonValue;
18class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace SageMaker {
22namespace Model {
23
31 public:
32 AWS_SAGEMAKER_API RSessionAppSettings() = default;
33 AWS_SAGEMAKER_API RSessionAppSettings(Aws::Utils::Json::JsonView jsonValue);
35 AWS_SAGEMAKER_API Aws::Utils::Json::JsonValue Jsonize() const;
36
38
39 inline const ResourceSpec& GetDefaultResourceSpec() const { return m_defaultResourceSpec; }
40 inline bool DefaultResourceSpecHasBeenSet() const { return m_defaultResourceSpecHasBeenSet; }
41 template <typename DefaultResourceSpecT = ResourceSpec>
42 void SetDefaultResourceSpec(DefaultResourceSpecT&& value) {
43 m_defaultResourceSpecHasBeenSet = true;
44 m_defaultResourceSpec = std::forward<DefaultResourceSpecT>(value);
45 }
46 template <typename DefaultResourceSpecT = ResourceSpec>
47 RSessionAppSettings& WithDefaultResourceSpec(DefaultResourceSpecT&& value) {
48 SetDefaultResourceSpec(std::forward<DefaultResourceSpecT>(value));
49 return *this;
50 }
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) {
62 m_customImagesHasBeenSet = true;
63 m_customImages = std::forward<CustomImagesT>(value);
64 }
65 template <typename CustomImagesT = Aws::Vector<CustomImage>>
66 RSessionAppSettings& WithCustomImages(CustomImagesT&& value) {
67 SetCustomImages(std::forward<CustomImagesT>(value));
68 return *this;
69 }
70 template <typename CustomImagesT = CustomImage>
71 RSessionAppSettings& AddCustomImages(CustomImagesT&& value) {
72 m_customImagesHasBeenSet = true;
73 m_customImages.emplace_back(std::forward<CustomImagesT>(value));
74 return *this;
75 }
77 private:
78 ResourceSpec m_defaultResourceSpec;
79
80 Aws::Vector<CustomImage> m_customImages;
81 bool m_defaultResourceSpecHasBeenSet = false;
82 bool m_customImagesHasBeenSet = false;
83};
84
85} // namespace Model
86} // namespace SageMaker
87} // 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