AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
ThroughputConfig.h
1
6#pragma once
7#include <aws/sagemaker/SageMaker_EXPORTS.h>
8#include <aws/sagemaker/model/ThroughputMode.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
44 {
45 public:
46 AWS_SAGEMAKER_API ThroughputConfig();
47 AWS_SAGEMAKER_API ThroughputConfig(Aws::Utils::Json::JsonView jsonValue);
49 AWS_SAGEMAKER_API Aws::Utils::Json::JsonValue Jsonize() const;
50
51
53
57 inline const ThroughputMode& GetThroughputMode() const{ return m_throughputMode; }
58 inline bool ThroughputModeHasBeenSet() const { return m_throughputModeHasBeenSet; }
59 inline void SetThroughputMode(const ThroughputMode& value) { m_throughputModeHasBeenSet = true; m_throughputMode = value; }
60 inline void SetThroughputMode(ThroughputMode&& value) { m_throughputModeHasBeenSet = true; m_throughputMode = std::move(value); }
61 inline ThroughputConfig& WithThroughputMode(const ThroughputMode& value) { SetThroughputMode(value); return *this;}
62 inline ThroughputConfig& WithThroughputMode(ThroughputMode&& value) { SetThroughputMode(std::move(value)); return *this;}
64
66
71 inline int GetProvisionedReadCapacityUnits() const{ return m_provisionedReadCapacityUnits; }
72 inline bool ProvisionedReadCapacityUnitsHasBeenSet() const { return m_provisionedReadCapacityUnitsHasBeenSet; }
73 inline void SetProvisionedReadCapacityUnits(int value) { m_provisionedReadCapacityUnitsHasBeenSet = true; m_provisionedReadCapacityUnits = value; }
76
78
83 inline int GetProvisionedWriteCapacityUnits() const{ return m_provisionedWriteCapacityUnits; }
84 inline bool ProvisionedWriteCapacityUnitsHasBeenSet() const { return m_provisionedWriteCapacityUnitsHasBeenSet; }
85 inline void SetProvisionedWriteCapacityUnits(int value) { m_provisionedWriteCapacityUnitsHasBeenSet = true; m_provisionedWriteCapacityUnits = value; }
88 private:
89
90 ThroughputMode m_throughputMode;
91 bool m_throughputModeHasBeenSet = false;
92
93 int m_provisionedReadCapacityUnits;
94 bool m_provisionedReadCapacityUnitsHasBeenSet = false;
95
96 int m_provisionedWriteCapacityUnits;
97 bool m_provisionedWriteCapacityUnitsHasBeenSet = false;
98 };
99
100} // namespace Model
101} // namespace SageMaker
102} // namespace Aws
void SetThroughputMode(const ThroughputMode &value)
AWS_SAGEMAKER_API ThroughputConfig & operator=(Aws::Utils::Json::JsonView jsonValue)
const ThroughputMode & GetThroughputMode() const
AWS_SAGEMAKER_API Aws::Utils::Json::JsonValue Jsonize() const
ThroughputConfig & WithThroughputMode(const ThroughputMode &value)
ThroughputConfig & WithThroughputMode(ThroughputMode &&value)
AWS_SAGEMAKER_API ThroughputConfig(Aws::Utils::Json::JsonView jsonValue)
ThroughputConfig & WithProvisionedReadCapacityUnits(int value)
void SetThroughputMode(ThroughputMode &&value)
ThroughputConfig & WithProvisionedWriteCapacityUnits(int value)
Aws::Utils::Json::JsonValue JsonValue