AWS SDK for C++

AWS SDK for C++ Version 1.11.873

Loading...
Searching...
No Matches
ScoringStrategy.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSVector.h>
8#include <aws/eks/EKS_EXPORTS.h>
9#include <aws/eks/model/ResourceWeight.h>
10#include <aws/eks/model/ScoringStrategyType.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Utils {
16namespace Json {
17class JsonValue;
18class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace EKS {
22namespace Model {
23
31 public:
32 AWS_EKS_API ScoringStrategy() = default;
36
38
42 inline ScoringStrategyType GetType() const { return m_type; }
43 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
44 inline void SetType(ScoringStrategyType value) {
45 m_typeHasBeenSet = true;
46 m_type = value;
47 }
49 SetType(value);
50 return *this;
51 }
53
55
58 inline const Aws::Vector<ResourceWeight>& GetResources() const { return m_resources; }
59 inline bool ResourcesHasBeenSet() const { return m_resourcesHasBeenSet; }
60 template <typename ResourcesT = Aws::Vector<ResourceWeight>>
61 void SetResources(ResourcesT&& value) {
62 m_resourcesHasBeenSet = true;
63 m_resources = std::forward<ResourcesT>(value);
64 }
65 template <typename ResourcesT = Aws::Vector<ResourceWeight>>
66 ScoringStrategy& WithResources(ResourcesT&& value) {
67 SetResources(std::forward<ResourcesT>(value));
68 return *this;
69 }
70 template <typename ResourcesT = ResourceWeight>
71 ScoringStrategy& AddResources(ResourcesT&& value) {
72 m_resourcesHasBeenSet = true;
73 m_resources.emplace_back(std::forward<ResourcesT>(value));
74 return *this;
75 }
77 private:
79
81 bool m_typeHasBeenSet = false;
82 bool m_resourcesHasBeenSet = false;
83};
84
85} // namespace Model
86} // namespace EKS
87} // namespace Aws
AWS_EKS_API ScoringStrategy()=default
AWS_EKS_API ScoringStrategy(Aws::Utils::Json::JsonView jsonValue)
ScoringStrategy & WithType(ScoringStrategyType value)
ScoringStrategy & WithResources(ResourcesT &&value)
const Aws::Vector< ResourceWeight > & GetResources() const
AWS_EKS_API Aws::Utils::Json::JsonValue Jsonize() const
ScoringStrategyType GetType() const
ScoringStrategy & AddResources(ResourcesT &&value)
AWS_EKS_API ScoringStrategy & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetType(ScoringStrategyType value)
void SetResources(ResourcesT &&value)
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue