AWS SDK for C++

AWS SDK for C++ Version 1.11.612

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#include <utility>
10
11namespace Aws
12{
13namespace Utils
14{
15namespace Json
16{
17 class JsonValue;
18 class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace SageMaker
22{
23namespace Model
24{
25
32 {
33 public:
34 AWS_SAGEMAKER_API ResourceSharingConfig() = default;
37 AWS_SAGEMAKER_API Aws::Utils::Json::JsonValue Jsonize() const;
38
39
41
50 inline ResourceSharingStrategy GetStrategy() const { return m_strategy; }
51 inline bool StrategyHasBeenSet() const { return m_strategyHasBeenSet; }
52 inline void SetStrategy(ResourceSharingStrategy value) { m_strategyHasBeenSet = true; m_strategy = value; }
55
57
62 inline int GetBorrowLimit() const { return m_borrowLimit; }
63 inline bool BorrowLimitHasBeenSet() const { return m_borrowLimitHasBeenSet; }
64 inline void SetBorrowLimit(int value) { m_borrowLimitHasBeenSet = true; m_borrowLimit = value; }
65 inline ResourceSharingConfig& WithBorrowLimit(int value) { SetBorrowLimit(value); return *this;}
67 private:
68
70 bool m_strategyHasBeenSet = false;
71
72 int m_borrowLimit{0};
73 bool m_borrowLimitHasBeenSet = false;
74 };
75
76} // namespace Model
77} // namespace SageMaker
78} // 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