AWS SDK for C++

AWS SDK for C++ Version 1.11.873

Loading...
Searching...
No Matches
ResourceWeight.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/eks/EKS_EXPORTS.h>
9
10#include <utility>
11
12namespace Aws {
13namespace Utils {
14namespace Json {
15class JsonValue;
16class JsonView;
17} // namespace Json
18} // namespace Utils
19namespace EKS {
20namespace Model {
21
29 public:
30 AWS_EKS_API ResourceWeight() = default;
34
36
40 inline const Aws::String& GetName() const { return m_name; }
41 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
42 template <typename NameT = Aws::String>
43 void SetName(NameT&& value) {
44 m_nameHasBeenSet = true;
45 m_name = std::forward<NameT>(value);
46 }
47 template <typename NameT = Aws::String>
48 ResourceWeight& WithName(NameT&& value) {
49 SetName(std::forward<NameT>(value));
50 return *this;
51 }
53
55
59 inline int GetWeight() const { return m_weight; }
60 inline bool WeightHasBeenSet() const { return m_weightHasBeenSet; }
61 inline void SetWeight(int value) {
62 m_weightHasBeenSet = true;
63 m_weight = value;
64 }
65 inline ResourceWeight& WithWeight(int value) {
66 SetWeight(value);
67 return *this;
68 }
70 private:
71 Aws::String m_name;
72
73 int m_weight{0};
74 bool m_nameHasBeenSet = false;
75 bool m_weightHasBeenSet = false;
76};
77
78} // namespace Model
79} // namespace EKS
80} // namespace Aws
ResourceWeight & WithName(NameT &&value)
AWS_EKS_API ResourceWeight()=default
ResourceWeight & WithWeight(int value)
AWS_EKS_API ResourceWeight & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_EKS_API ResourceWeight(Aws::Utils::Json::JsonView jsonValue)
AWS_EKS_API Aws::Utils::Json::JsonValue Jsonize() const
const Aws::String & GetName() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue