AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
AccessEndpointConfig.h
1
6#pragma once
7#include <aws/workspaces/WorkSpaces_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/workspaces/model/AccessEndpoint.h>
10#include <aws/workspaces/model/InternetFallbackProtocol.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 WorkSpaces
24{
25namespace Model
26{
27
35 {
36 public:
37 AWS_WORKSPACES_API AccessEndpointConfig() = default;
38 AWS_WORKSPACES_API AccessEndpointConfig(Aws::Utils::Json::JsonView jsonValue);
40 AWS_WORKSPACES_API Aws::Utils::Json::JsonValue Jsonize() const;
41
42
44
47 inline const Aws::Vector<AccessEndpoint>& GetAccessEndpoints() const { return m_accessEndpoints; }
48 inline bool AccessEndpointsHasBeenSet() const { return m_accessEndpointsHasBeenSet; }
49 template<typename AccessEndpointsT = Aws::Vector<AccessEndpoint>>
50 void SetAccessEndpoints(AccessEndpointsT&& value) { m_accessEndpointsHasBeenSet = true; m_accessEndpoints = std::forward<AccessEndpointsT>(value); }
51 template<typename AccessEndpointsT = Aws::Vector<AccessEndpoint>>
52 AccessEndpointConfig& WithAccessEndpoints(AccessEndpointsT&& value) { SetAccessEndpoints(std::forward<AccessEndpointsT>(value)); return *this;}
53 template<typename AccessEndpointsT = AccessEndpoint>
54 AccessEndpointConfig& AddAccessEndpoints(AccessEndpointsT&& value) { m_accessEndpointsHasBeenSet = true; m_accessEndpoints.emplace_back(std::forward<AccessEndpointsT>(value)); return *this; }
56
58
62 inline const Aws::Vector<InternetFallbackProtocol>& GetInternetFallbackProtocols() const { return m_internetFallbackProtocols; }
63 inline bool InternetFallbackProtocolsHasBeenSet() const { return m_internetFallbackProtocolsHasBeenSet; }
64 template<typename InternetFallbackProtocolsT = Aws::Vector<InternetFallbackProtocol>>
65 void SetInternetFallbackProtocols(InternetFallbackProtocolsT&& value) { m_internetFallbackProtocolsHasBeenSet = true; m_internetFallbackProtocols = std::forward<InternetFallbackProtocolsT>(value); }
66 template<typename InternetFallbackProtocolsT = Aws::Vector<InternetFallbackProtocol>>
67 AccessEndpointConfig& WithInternetFallbackProtocols(InternetFallbackProtocolsT&& value) { SetInternetFallbackProtocols(std::forward<InternetFallbackProtocolsT>(value)); return *this;}
68 inline AccessEndpointConfig& AddInternetFallbackProtocols(InternetFallbackProtocol value) { m_internetFallbackProtocolsHasBeenSet = true; m_internetFallbackProtocols.push_back(value); return *this; }
70 private:
71
72 Aws::Vector<AccessEndpoint> m_accessEndpoints;
73 bool m_accessEndpointsHasBeenSet = false;
74
75 Aws::Vector<InternetFallbackProtocol> m_internetFallbackProtocols;
76 bool m_internetFallbackProtocolsHasBeenSet = false;
77 };
78
79} // namespace Model
80} // namespace WorkSpaces
81} // namespace Aws
AccessEndpointConfig & WithAccessEndpoints(AccessEndpointsT &&value)
AccessEndpointConfig & AddAccessEndpoints(AccessEndpointsT &&value)
AWS_WORKSPACES_API AccessEndpointConfig(Aws::Utils::Json::JsonView jsonValue)
AccessEndpointConfig & AddInternetFallbackProtocols(InternetFallbackProtocol value)
const Aws::Vector< InternetFallbackProtocol > & GetInternetFallbackProtocols() const
AWS_WORKSPACES_API AccessEndpointConfig()=default
AWS_WORKSPACES_API Aws::Utils::Json::JsonValue Jsonize() const
void SetAccessEndpoints(AccessEndpointsT &&value)
void SetInternetFallbackProtocols(InternetFallbackProtocolsT &&value)
AWS_WORKSPACES_API AccessEndpointConfig & operator=(Aws::Utils::Json::JsonView jsonValue)
AccessEndpointConfig & WithInternetFallbackProtocols(InternetFallbackProtocolsT &&value)
const Aws::Vector< AccessEndpoint > & GetAccessEndpoints() const
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue