AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
FleetProxyRule.h
1
6#pragma once
7#include <aws/codebuild/CodeBuild_EXPORTS.h>
8#include <aws/codebuild/model/FleetProxyRuleType.h>
9#include <aws/codebuild/model/FleetProxyRuleEffectType.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <aws/core/utils/memory/stl/AWSString.h>
12#include <utility>
13
14namespace Aws
15{
16namespace Utils
17{
18namespace Json
19{
20 class JsonValue;
21 class JsonView;
22} // namespace Json
23} // namespace Utils
24namespace CodeBuild
25{
26namespace Model
27{
28
36 {
37 public:
38 AWS_CODEBUILD_API FleetProxyRule();
39 AWS_CODEBUILD_API FleetProxyRule(Aws::Utils::Json::JsonView jsonValue);
41 AWS_CODEBUILD_API Aws::Utils::Json::JsonValue Jsonize() const;
42
43
45
48 inline const FleetProxyRuleType& GetType() const{ return m_type; }
49 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
50 inline void SetType(const FleetProxyRuleType& value) { m_typeHasBeenSet = true; m_type = value; }
51 inline void SetType(FleetProxyRuleType&& value) { m_typeHasBeenSet = true; m_type = std::move(value); }
52 inline FleetProxyRule& WithType(const FleetProxyRuleType& value) { SetType(value); return *this;}
53 inline FleetProxyRule& WithType(FleetProxyRuleType&& value) { SetType(std::move(value)); return *this;}
55
57
60 inline const FleetProxyRuleEffectType& GetEffect() const{ return m_effect; }
61 inline bool EffectHasBeenSet() const { return m_effectHasBeenSet; }
62 inline void SetEffect(const FleetProxyRuleEffectType& value) { m_effectHasBeenSet = true; m_effect = value; }
63 inline void SetEffect(FleetProxyRuleEffectType&& value) { m_effectHasBeenSet = true; m_effect = std::move(value); }
64 inline FleetProxyRule& WithEffect(const FleetProxyRuleEffectType& value) { SetEffect(value); return *this;}
65 inline FleetProxyRule& WithEffect(FleetProxyRuleEffectType&& value) { SetEffect(std::move(value)); return *this;}
67
69
72 inline const Aws::Vector<Aws::String>& GetEntities() const{ return m_entities; }
73 inline bool EntitiesHasBeenSet() const { return m_entitiesHasBeenSet; }
74 inline void SetEntities(const Aws::Vector<Aws::String>& value) { m_entitiesHasBeenSet = true; m_entities = value; }
75 inline void SetEntities(Aws::Vector<Aws::String>&& value) { m_entitiesHasBeenSet = true; m_entities = std::move(value); }
76 inline FleetProxyRule& WithEntities(const Aws::Vector<Aws::String>& value) { SetEntities(value); return *this;}
77 inline FleetProxyRule& WithEntities(Aws::Vector<Aws::String>&& value) { SetEntities(std::move(value)); return *this;}
78 inline FleetProxyRule& AddEntities(const Aws::String& value) { m_entitiesHasBeenSet = true; m_entities.push_back(value); return *this; }
79 inline FleetProxyRule& AddEntities(Aws::String&& value) { m_entitiesHasBeenSet = true; m_entities.push_back(std::move(value)); return *this; }
80 inline FleetProxyRule& AddEntities(const char* value) { m_entitiesHasBeenSet = true; m_entities.push_back(value); return *this; }
82 private:
83
84 FleetProxyRuleType m_type;
85 bool m_typeHasBeenSet = false;
86
88 bool m_effectHasBeenSet = false;
89
90 Aws::Vector<Aws::String> m_entities;
91 bool m_entitiesHasBeenSet = false;
92 };
93
94} // namespace Model
95} // namespace CodeBuild
96} // namespace Aws
const FleetProxyRuleType & GetType() const
FleetProxyRule & AddEntities(const Aws::String &value)
AWS_CODEBUILD_API Aws::Utils::Json::JsonValue Jsonize() const
FleetProxyRule & WithEntities(const Aws::Vector< Aws::String > &value)
AWS_CODEBUILD_API FleetProxyRule(Aws::Utils::Json::JsonView jsonValue)
void SetEffect(FleetProxyRuleEffectType &&value)
void SetEffect(const FleetProxyRuleEffectType &value)
FleetProxyRule & AddEntities(const char *value)
const Aws::Vector< Aws::String > & GetEntities() const
AWS_CODEBUILD_API FleetProxyRule & operator=(Aws::Utils::Json::JsonView jsonValue)
const FleetProxyRuleEffectType & GetEffect() const
FleetProxyRule & WithType(const FleetProxyRuleType &value)
FleetProxyRule & WithEffect(const FleetProxyRuleEffectType &value)
void SetEntities(Aws::Vector< Aws::String > &&value)
FleetProxyRule & AddEntities(Aws::String &&value)
void SetType(FleetProxyRuleType &&value)
void SetType(const FleetProxyRuleType &value)
void SetEntities(const Aws::Vector< Aws::String > &value)
FleetProxyRule & WithType(FleetProxyRuleType &&value)
FleetProxyRule & WithEffect(FleetProxyRuleEffectType &&value)
FleetProxyRule & WithEntities(Aws::Vector< Aws::String > &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue