AWS SDK for C++

AWS SDK for C++ Version 1.11.719

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