AWS SDK for C++

AWS SDK for C++ Version 1.11.804

Loading...
Searching...
No Matches
ClusterLifeCycleConfig.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/sagemaker/SageMaker_EXPORTS.h>
9
10#include <utility>
11
12namespace Aws {
13namespace Utils {
14namespace Json {
15class JsonValue;
16class JsonView;
17} // namespace Json
18} // namespace Utils
19namespace SageMaker {
20namespace Model {
21
29 public:
30 AWS_SAGEMAKER_API ClusterLifeCycleConfig() = default;
33 AWS_SAGEMAKER_API Aws::Utils::Json::JsonValue Jsonize() const;
34
36
47 inline const Aws::String& GetSourceS3Uri() const { return m_sourceS3Uri; }
48 inline bool SourceS3UriHasBeenSet() const { return m_sourceS3UriHasBeenSet; }
49 template <typename SourceS3UriT = Aws::String>
50 void SetSourceS3Uri(SourceS3UriT&& value) {
51 m_sourceS3UriHasBeenSet = true;
52 m_sourceS3Uri = std::forward<SourceS3UriT>(value);
53 }
54 template <typename SourceS3UriT = Aws::String>
55 ClusterLifeCycleConfig& WithSourceS3Uri(SourceS3UriT&& value) {
56 SetSourceS3Uri(std::forward<SourceS3UriT>(value));
57 return *this;
58 }
60
62
67 inline const Aws::String& GetOnCreate() const { return m_onCreate; }
68 inline bool OnCreateHasBeenSet() const { return m_onCreateHasBeenSet; }
69 template <typename OnCreateT = Aws::String>
70 void SetOnCreate(OnCreateT&& value) {
71 m_onCreateHasBeenSet = true;
72 m_onCreate = std::forward<OnCreateT>(value);
73 }
74 template <typename OnCreateT = Aws::String>
76 SetOnCreate(std::forward<OnCreateT>(value));
77 return *this;
78 }
80
82
87 inline const Aws::String& GetOnInitComplete() const { return m_onInitComplete; }
88 inline bool OnInitCompleteHasBeenSet() const { return m_onInitCompleteHasBeenSet; }
89 template <typename OnInitCompleteT = Aws::String>
90 void SetOnInitComplete(OnInitCompleteT&& value) {
91 m_onInitCompleteHasBeenSet = true;
92 m_onInitComplete = std::forward<OnInitCompleteT>(value);
93 }
94 template <typename OnInitCompleteT = Aws::String>
95 ClusterLifeCycleConfig& WithOnInitComplete(OnInitCompleteT&& value) {
96 SetOnInitComplete(std::forward<OnInitCompleteT>(value));
97 return *this;
98 }
100 private:
101 Aws::String m_sourceS3Uri;
102
103 Aws::String m_onCreate;
104
105 Aws::String m_onInitComplete;
106 bool m_sourceS3UriHasBeenSet = false;
107 bool m_onCreateHasBeenSet = false;
108 bool m_onInitCompleteHasBeenSet = false;
109};
110
111} // namespace Model
112} // namespace SageMaker
113} // namespace Aws
ClusterLifeCycleConfig & WithOnInitComplete(OnInitCompleteT &&value)
AWS_SAGEMAKER_API ClusterLifeCycleConfig(Aws::Utils::Json::JsonView jsonValue)
ClusterLifeCycleConfig & WithSourceS3Uri(SourceS3UriT &&value)
AWS_SAGEMAKER_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_SAGEMAKER_API ClusterLifeCycleConfig()=default
ClusterLifeCycleConfig & WithOnCreate(OnCreateT &&value)
AWS_SAGEMAKER_API ClusterLifeCycleConfig & operator=(Aws::Utils::Json::JsonView jsonValue)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue