AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
ProxyConfiguration.h
1
6#pragma once
7#include <aws/codebuild/CodeBuild_EXPORTS.h>
8#include <aws/codebuild/model/FleetProxyRuleBehavior.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/codebuild/model/FleetProxyRule.h>
11#include <utility>
12
13namespace Aws
14{
15namespace Utils
16{
17namespace Json
18{
19 class JsonValue;
20 class JsonView;
21} // namespace Json
22} // namespace Utils
23namespace CodeBuild
24{
25namespace Model
26{
27
35 {
36 public:
37 AWS_CODEBUILD_API ProxyConfiguration();
38 AWS_CODEBUILD_API ProxyConfiguration(Aws::Utils::Json::JsonView jsonValue);
40 AWS_CODEBUILD_API Aws::Utils::Json::JsonValue Jsonize() const;
41
42
44
47 inline const FleetProxyRuleBehavior& GetDefaultBehavior() const{ return m_defaultBehavior; }
48 inline bool DefaultBehaviorHasBeenSet() const { return m_defaultBehaviorHasBeenSet; }
49 inline void SetDefaultBehavior(const FleetProxyRuleBehavior& value) { m_defaultBehaviorHasBeenSet = true; m_defaultBehavior = value; }
50 inline void SetDefaultBehavior(FleetProxyRuleBehavior&& value) { m_defaultBehaviorHasBeenSet = true; m_defaultBehavior = std::move(value); }
52 inline ProxyConfiguration& WithDefaultBehavior(FleetProxyRuleBehavior&& value) { SetDefaultBehavior(std::move(value)); return *this;}
54
56
60 inline const Aws::Vector<FleetProxyRule>& GetOrderedProxyRules() const{ return m_orderedProxyRules; }
61 inline bool OrderedProxyRulesHasBeenSet() const { return m_orderedProxyRulesHasBeenSet; }
62 inline void SetOrderedProxyRules(const Aws::Vector<FleetProxyRule>& value) { m_orderedProxyRulesHasBeenSet = true; m_orderedProxyRules = value; }
63 inline void SetOrderedProxyRules(Aws::Vector<FleetProxyRule>&& value) { m_orderedProxyRulesHasBeenSet = true; m_orderedProxyRules = std::move(value); }
66 inline ProxyConfiguration& AddOrderedProxyRules(const FleetProxyRule& value) { m_orderedProxyRulesHasBeenSet = true; m_orderedProxyRules.push_back(value); return *this; }
67 inline ProxyConfiguration& AddOrderedProxyRules(FleetProxyRule&& value) { m_orderedProxyRulesHasBeenSet = true; m_orderedProxyRules.push_back(std::move(value)); return *this; }
69 private:
70
71 FleetProxyRuleBehavior m_defaultBehavior;
72 bool m_defaultBehaviorHasBeenSet = false;
73
74 Aws::Vector<FleetProxyRule> m_orderedProxyRules;
75 bool m_orderedProxyRulesHasBeenSet = false;
76 };
77
78} // namespace Model
79} // namespace CodeBuild
80} // namespace Aws
void SetOrderedProxyRules(Aws::Vector< FleetProxyRule > &&value)
AWS_CODEBUILD_API Aws::Utils::Json::JsonValue Jsonize() const
void SetOrderedProxyRules(const Aws::Vector< FleetProxyRule > &value)
ProxyConfiguration & AddOrderedProxyRules(FleetProxyRule &&value)
ProxyConfiguration & AddOrderedProxyRules(const FleetProxyRule &value)
AWS_CODEBUILD_API ProxyConfiguration & operator=(Aws::Utils::Json::JsonView jsonValue)
const Aws::Vector< FleetProxyRule > & GetOrderedProxyRules() const
ProxyConfiguration & WithDefaultBehavior(FleetProxyRuleBehavior &&value)
const FleetProxyRuleBehavior & GetDefaultBehavior() const
AWS_CODEBUILD_API ProxyConfiguration(Aws::Utils::Json::JsonView jsonValue)
ProxyConfiguration & WithOrderedProxyRules(const Aws::Vector< FleetProxyRule > &value)
ProxyConfiguration & WithDefaultBehavior(const FleetProxyRuleBehavior &value)
void SetDefaultBehavior(FleetProxyRuleBehavior &&value)
void SetDefaultBehavior(const FleetProxyRuleBehavior &value)
ProxyConfiguration & WithOrderedProxyRules(Aws::Vector< FleetProxyRule > &&value)
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue