AWS SDK for C++

AWS SDK for C++ Version 1.11.934

Loading...
Searching...
No Matches
ProxyConfiguration.h
1
6#pragma once
7#include <aws/bedrock-agentcore/BedrockAgentCore_EXPORTS.h>
8#include <aws/bedrock-agentcore/model/Proxy.h>
9#include <aws/bedrock-agentcore/model/ProxyBypass.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Utils {
16namespace Json {
17class JsonValue;
18class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace BedrockAgentCore {
22namespace Model {
23
32 public:
33 AWS_BEDROCKAGENTCORE_API ProxyConfiguration() = default;
34 AWS_BEDROCKAGENTCORE_API ProxyConfiguration(Aws::Utils::Json::JsonView jsonValue);
35 AWS_BEDROCKAGENTCORE_API ProxyConfiguration& operator=(Aws::Utils::Json::JsonView jsonValue);
36 AWS_BEDROCKAGENTCORE_API Aws::Utils::Json::JsonValue Jsonize() const;
37
39
45 inline const Aws::Vector<Proxy>& GetProxies() const { return m_proxies; }
46 inline bool ProxiesHasBeenSet() const { return m_proxiesHasBeenSet; }
47 template <typename ProxiesT = Aws::Vector<Proxy>>
48 void SetProxies(ProxiesT&& value) {
49 m_proxiesHasBeenSet = true;
50 m_proxies = std::forward<ProxiesT>(value);
51 }
52 template <typename ProxiesT = Aws::Vector<Proxy>>
53 ProxyConfiguration& WithProxies(ProxiesT&& value) {
54 SetProxies(std::forward<ProxiesT>(value));
55 return *this;
56 }
57 template <typename ProxiesT = Proxy>
58 ProxyConfiguration& AddProxies(ProxiesT&& value) {
59 m_proxiesHasBeenSet = true;
60 m_proxies.emplace_back(std::forward<ProxiesT>(value));
61 return *this;
62 }
64
66
71 inline const ProxyBypass& GetBypass() const { return m_bypass; }
72 inline bool BypassHasBeenSet() const { return m_bypassHasBeenSet; }
73 template <typename BypassT = ProxyBypass>
74 void SetBypass(BypassT&& value) {
75 m_bypassHasBeenSet = true;
76 m_bypass = std::forward<BypassT>(value);
77 }
78 template <typename BypassT = ProxyBypass>
79 ProxyConfiguration& WithBypass(BypassT&& value) {
80 SetBypass(std::forward<BypassT>(value));
81 return *this;
82 }
84 private:
85 Aws::Vector<Proxy> m_proxies;
86
87 ProxyBypass m_bypass;
88 bool m_proxiesHasBeenSet = false;
89 bool m_bypassHasBeenSet = false;
90};
91
92} // namespace Model
93} // namespace BedrockAgentCore
94} // namespace Aws
AWS_BEDROCKAGENTCORE_API ProxyConfiguration(Aws::Utils::Json::JsonView jsonValue)
AWS_BEDROCKAGENTCORE_API ProxyConfiguration()=default
const Aws::Vector< Proxy > & GetProxies() const
ProxyConfiguration & WithBypass(BypassT &&value)
AWS_BEDROCKAGENTCORE_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_BEDROCKAGENTCORE_API ProxyConfiguration & operator=(Aws::Utils::Json::JsonView jsonValue)
ProxyConfiguration & WithProxies(ProxiesT &&value)
ProxyConfiguration & AddProxies(ProxiesT &&value)
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue