AWS SDK for C++

AWS SDK for C++ Version 1.11.941

Loading...
Searching...
No Matches
SubnetConnectivityOverride.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/network-security-manager/NetworkSecurityManager_EXPORTS.h>
10#include <aws/network-security-manager/model/SubnetConnectivity.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Utils {
16namespace Json {
17class JsonValue;
18class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace NetworkSecurityManager {
22namespace Model {
23
32 public:
33 AWS_NETWORKSECURITYMANAGER_API SubnetConnectivityOverride() = default;
34 AWS_NETWORKSECURITYMANAGER_API SubnetConnectivityOverride(Aws::Utils::Json::JsonView jsonValue);
35 AWS_NETWORKSECURITYMANAGER_API SubnetConnectivityOverride& operator=(Aws::Utils::Json::JsonView jsonValue);
36 AWS_NETWORKSECURITYMANAGER_API Aws::Utils::Json::JsonValue Jsonize() const;
37
39
64 inline SubnetConnectivity GetConnectivityType() const { return m_connectivityType; }
65 inline bool ConnectivityTypeHasBeenSet() const { return m_connectivityTypeHasBeenSet; }
67 m_connectivityTypeHasBeenSet = true;
68 m_connectivityType = value;
69 }
75
77
83 inline const Aws::Vector<Aws::String>& GetScopes() const { return m_scopes; }
84 inline bool ScopesHasBeenSet() const { return m_scopesHasBeenSet; }
85 template <typename ScopesT = Aws::Vector<Aws::String>>
86 void SetScopes(ScopesT&& value) {
87 m_scopesHasBeenSet = true;
88 m_scopes = std::forward<ScopesT>(value);
89 }
90 template <typename ScopesT = Aws::Vector<Aws::String>>
92 SetScopes(std::forward<ScopesT>(value));
93 return *this;
94 }
95 template <typename ScopesT = Aws::String>
97 m_scopesHasBeenSet = true;
98 m_scopes.emplace_back(std::forward<ScopesT>(value));
99 return *this;
100 }
102 private:
104
106 bool m_connectivityTypeHasBeenSet = false;
107 bool m_scopesHasBeenSet = false;
108};
109
110} // namespace Model
111} // namespace NetworkSecurityManager
112} // namespace Aws
SubnetConnectivityOverride & WithConnectivityType(SubnetConnectivity value)
AWS_NETWORKSECURITYMANAGER_API SubnetConnectivityOverride & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_NETWORKSECURITYMANAGER_API SubnetConnectivityOverride(Aws::Utils::Json::JsonView jsonValue)
AWS_NETWORKSECURITYMANAGER_API SubnetConnectivityOverride()=default
AWS_NETWORKSECURITYMANAGER_API Aws::Utils::Json::JsonValue Jsonize() const
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue