AWS SDK for C++

AWS SDK for C++ Version 1.11.612

Loading...
Searching...
No Matches
ComputeQuotaTarget.h
1
6#pragma once
7#include <aws/sagemaker/SageMaker_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.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
33 {
34 public:
35 AWS_SAGEMAKER_API ComputeQuotaTarget() = default;
36 AWS_SAGEMAKER_API ComputeQuotaTarget(Aws::Utils::Json::JsonView jsonValue);
38 AWS_SAGEMAKER_API Aws::Utils::Json::JsonValue Jsonize() const;
39
40
42
45 inline const Aws::String& GetTeamName() const { return m_teamName; }
46 inline bool TeamNameHasBeenSet() const { return m_teamNameHasBeenSet; }
47 template<typename TeamNameT = Aws::String>
48 void SetTeamName(TeamNameT&& value) { m_teamNameHasBeenSet = true; m_teamName = std::forward<TeamNameT>(value); }
49 template<typename TeamNameT = Aws::String>
50 ComputeQuotaTarget& WithTeamName(TeamNameT&& value) { SetTeamName(std::forward<TeamNameT>(value)); return *this;}
52
54
60 inline int GetFairShareWeight() const { return m_fairShareWeight; }
61 inline bool FairShareWeightHasBeenSet() const { return m_fairShareWeightHasBeenSet; }
62 inline void SetFairShareWeight(int value) { m_fairShareWeightHasBeenSet = true; m_fairShareWeight = value; }
63 inline ComputeQuotaTarget& WithFairShareWeight(int value) { SetFairShareWeight(value); return *this;}
65 private:
66
67 Aws::String m_teamName;
68 bool m_teamNameHasBeenSet = false;
69
70 int m_fairShareWeight{0};
71 bool m_fairShareWeightHasBeenSet = false;
72 };
73
74} // namespace Model
75} // namespace SageMaker
76} // namespace Aws
ComputeQuotaTarget & WithFairShareWeight(int value)
AWS_SAGEMAKER_API ComputeQuotaTarget & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_SAGEMAKER_API ComputeQuotaTarget()=default
ComputeQuotaTarget & WithTeamName(TeamNameT &&value)
AWS_SAGEMAKER_API ComputeQuotaTarget(Aws::Utils::Json::JsonView jsonValue)
AWS_SAGEMAKER_API Aws::Utils::Json::JsonValue Jsonize() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue