AWS SDK for C++

AWS SDK for C++ Version 1.11.719

Loading...
Searching...
No Matches
FleetProxyRule.h
1
6#pragma once
7#include <aws/codebuild/CodeBuild_EXPORTS.h>
8#include <aws/codebuild/model/FleetProxyRuleEffectType.h>
9#include <aws/codebuild/model/FleetProxyRuleType.h>
10#include <aws/core/utils/memory/stl/AWSString.h>
11#include <aws/core/utils/memory/stl/AWSVector.h>
12
13#include <utility>
14
15namespace Aws {
16namespace Utils {
17namespace Json {
18class JsonValue;
19class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace CodeBuild {
23namespace Model {
24
32 public:
33 AWS_CODEBUILD_API FleetProxyRule() = default;
34 AWS_CODEBUILD_API FleetProxyRule(Aws::Utils::Json::JsonView jsonValue);
36 AWS_CODEBUILD_API Aws::Utils::Json::JsonValue Jsonize() const;
37
39
42 inline FleetProxyRuleType GetType() const { return m_type; }
43 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
44 inline void SetType(FleetProxyRuleType value) {
45 m_typeHasBeenSet = true;
46 m_type = value;
47 }
49 SetType(value);
50 return *this;
51 }
53
55
58 inline FleetProxyRuleEffectType GetEffect() const { return m_effect; }
59 inline bool EffectHasBeenSet() const { return m_effectHasBeenSet; }
61 m_effectHasBeenSet = true;
62 m_effect = value;
63 }
65 SetEffect(value);
66 return *this;
67 }
69
71
74 inline const Aws::Vector<Aws::String>& GetEntities() const { return m_entities; }
75 inline bool EntitiesHasBeenSet() const { return m_entitiesHasBeenSet; }
76 template <typename EntitiesT = Aws::Vector<Aws::String>>
77 void SetEntities(EntitiesT&& value) {
78 m_entitiesHasBeenSet = true;
79 m_entities = std::forward<EntitiesT>(value);
80 }
81 template <typename EntitiesT = Aws::Vector<Aws::String>>
82 FleetProxyRule& WithEntities(EntitiesT&& value) {
83 SetEntities(std::forward<EntitiesT>(value));
84 return *this;
85 }
86 template <typename EntitiesT = Aws::String>
87 FleetProxyRule& AddEntities(EntitiesT&& value) {
88 m_entitiesHasBeenSet = true;
89 m_entities.emplace_back(std::forward<EntitiesT>(value));
90 return *this;
91 }
93 private:
95
97
98 Aws::Vector<Aws::String> m_entities;
99 bool m_typeHasBeenSet = false;
100 bool m_effectHasBeenSet = false;
101 bool m_entitiesHasBeenSet = false;
102};
103
104} // namespace Model
105} // namespace CodeBuild
106} // namespace Aws
AWS_CODEBUILD_API Aws::Utils::Json::JsonValue Jsonize() const
FleetProxyRuleType GetType() const
AWS_CODEBUILD_API FleetProxyRule(Aws::Utils::Json::JsonView jsonValue)
FleetProxyRule & AddEntities(EntitiesT &&value)
const Aws::Vector< Aws::String > & GetEntities() const
void SetEntities(EntitiesT &&value)
AWS_CODEBUILD_API FleetProxyRule & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetType(FleetProxyRuleType value)
FleetProxyRule & WithEntities(EntitiesT &&value)
FleetProxyRule & WithEffect(FleetProxyRuleEffectType value)
FleetProxyRuleEffectType GetEffect() const
AWS_CODEBUILD_API FleetProxyRule()=default
FleetProxyRule & WithType(FleetProxyRuleType value)
void SetEffect(FleetProxyRuleEffectType value)
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue