AWS SDK for C++

AWS SDK for C++ Version 1.11.718

Loading...
Searching...
No Matches
OnlineStoreConfig.h
1
6#pragma once
7#include <aws/sagemaker/SageMaker_EXPORTS.h>
8#include <aws/sagemaker/model/OnlineStoreSecurityConfig.h>
9#include <aws/sagemaker/model/StorageType.h>
10#include <aws/sagemaker/model/TtlDuration.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
34 public:
35 AWS_SAGEMAKER_API OnlineStoreConfig() = default;
36 AWS_SAGEMAKER_API OnlineStoreConfig(Aws::Utils::Json::JsonView jsonValue);
38 AWS_SAGEMAKER_API Aws::Utils::Json::JsonValue Jsonize() const;
39
41
45 inline const OnlineStoreSecurityConfig& GetSecurityConfig() const { return m_securityConfig; }
46 inline bool SecurityConfigHasBeenSet() const { return m_securityConfigHasBeenSet; }
47 template <typename SecurityConfigT = OnlineStoreSecurityConfig>
48 void SetSecurityConfig(SecurityConfigT&& value) {
49 m_securityConfigHasBeenSet = true;
50 m_securityConfig = std::forward<SecurityConfigT>(value);
51 }
52 template <typename SecurityConfigT = OnlineStoreSecurityConfig>
53 OnlineStoreConfig& WithSecurityConfig(SecurityConfigT&& value) {
54 SetSecurityConfig(std::forward<SecurityConfigT>(value));
55 return *this;
56 }
58
60
66 inline bool GetEnableOnlineStore() const { return m_enableOnlineStore; }
67 inline bool EnableOnlineStoreHasBeenSet() const { return m_enableOnlineStoreHasBeenSet; }
68 inline void SetEnableOnlineStore(bool value) {
69 m_enableOnlineStoreHasBeenSet = true;
70 m_enableOnlineStore = value;
71 }
74 return *this;
75 }
77
79
86 inline const TtlDuration& GetTtlDuration() const { return m_ttlDuration; }
87 inline bool TtlDurationHasBeenSet() const { return m_ttlDurationHasBeenSet; }
88 template <typename TtlDurationT = TtlDuration>
89 void SetTtlDuration(TtlDurationT&& value) {
90 m_ttlDurationHasBeenSet = true;
91 m_ttlDuration = std::forward<TtlDurationT>(value);
92 }
93 template <typename TtlDurationT = TtlDuration>
94 OnlineStoreConfig& WithTtlDuration(TtlDurationT&& value) {
95 SetTtlDuration(std::forward<TtlDurationT>(value));
96 return *this;
97 }
99
101
108 inline StorageType GetStorageType() const { return m_storageType; }
109 inline bool StorageTypeHasBeenSet() const { return m_storageTypeHasBeenSet; }
110 inline void SetStorageType(StorageType value) {
111 m_storageTypeHasBeenSet = true;
112 m_storageType = value;
113 }
115 SetStorageType(value);
116 return *this;
117 }
119 private:
120 OnlineStoreSecurityConfig m_securityConfig;
121
122 bool m_enableOnlineStore{false};
123
124 TtlDuration m_ttlDuration;
125
126 StorageType m_storageType{StorageType::NOT_SET};
127 bool m_securityConfigHasBeenSet = false;
128 bool m_enableOnlineStoreHasBeenSet = false;
129 bool m_ttlDurationHasBeenSet = false;
130 bool m_storageTypeHasBeenSet = false;
131};
132
133} // namespace Model
134} // namespace SageMaker
135} // namespace Aws
OnlineStoreConfig & WithEnableOnlineStore(bool value)
AWS_SAGEMAKER_API OnlineStoreConfig()=default
void SetTtlDuration(TtlDurationT &&value)
const TtlDuration & GetTtlDuration() const
AWS_SAGEMAKER_API OnlineStoreConfig(Aws::Utils::Json::JsonView jsonValue)
OnlineStoreConfig & WithTtlDuration(TtlDurationT &&value)
void SetSecurityConfig(SecurityConfigT &&value)
OnlineStoreConfig & WithSecurityConfig(SecurityConfigT &&value)
AWS_SAGEMAKER_API OnlineStoreConfig & operator=(Aws::Utils::Json::JsonView jsonValue)
OnlineStoreConfig & WithStorageType(StorageType value)
AWS_SAGEMAKER_API Aws::Utils::Json::JsonValue Jsonize() const
const OnlineStoreSecurityConfig & GetSecurityConfig() const
Aws::Utils::Json::JsonValue JsonValue