AWS SDK for C++

AWS SDK for C++ Version 1.11.719

Loading...
Searching...
No Matches
ResourceSharingConfig.h
1
6#pragma once
7#include <aws/sagemaker/SageMaker_EXPORTS.h>
8#include <aws/sagemaker/model/ResourceSharingStrategy.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
28 public:
29 AWS_SAGEMAKER_API ResourceSharingConfig() = default;
32 AWS_SAGEMAKER_API Aws::Utils::Json::JsonValue Jsonize() const;
33
35
44 inline ResourceSharingStrategy GetStrategy() const { return m_strategy; }
45 inline bool StrategyHasBeenSet() const { return m_strategyHasBeenSet; }
47 m_strategyHasBeenSet = true;
48 m_strategy = value;
49 }
51 SetStrategy(value);
52 return *this;
53 }
55
57
62 inline int GetBorrowLimit() const { return m_borrowLimit; }
63 inline bool BorrowLimitHasBeenSet() const { return m_borrowLimitHasBeenSet; }
64 inline void SetBorrowLimit(int value) {
65 m_borrowLimitHasBeenSet = true;
66 m_borrowLimit = value;
67 }
69 SetBorrowLimit(value);
70 return *this;
71 }
73 private:
75
76 int m_borrowLimit{0};
77 bool m_strategyHasBeenSet = false;
78 bool m_borrowLimitHasBeenSet = false;
79};
80
81} // namespace Model
82} // namespace SageMaker
83} // namespace Aws
AWS_SAGEMAKER_API ResourceSharingConfig & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetStrategy(ResourceSharingStrategy value)
AWS_SAGEMAKER_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_SAGEMAKER_API ResourceSharingConfig()=default
ResourceSharingConfig & WithStrategy(ResourceSharingStrategy value)
AWS_SAGEMAKER_API ResourceSharingConfig(Aws::Utils::Json::JsonView jsonValue)
ResourceSharingConfig & WithBorrowLimit(int value)
Aws::Utils::Json::JsonValue JsonValue