AWS SDK for C++

AWS SDK for C++ Version 1.11.717

Loading...
Searching...
No Matches
VpcConfig.h
1
6#pragma once
7#include <aws/comprehend/Comprehend_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace Comprehend {
21namespace Model {
22
31class VpcConfig {
32 public:
33 AWS_COMPREHEND_API VpcConfig() = default;
34 AWS_COMPREHEND_API VpcConfig(Aws::Utils::Json::JsonView jsonValue);
35 AWS_COMPREHEND_API VpcConfig& operator=(Aws::Utils::Json::JsonView jsonValue);
36 AWS_COMPREHEND_API Aws::Utils::Json::JsonValue Jsonize() const;
37
39
48 inline const Aws::Vector<Aws::String>& GetSecurityGroupIds() const { return m_securityGroupIds; }
49 inline bool SecurityGroupIdsHasBeenSet() const { return m_securityGroupIdsHasBeenSet; }
50 template <typename SecurityGroupIdsT = Aws::Vector<Aws::String>>
51 void SetSecurityGroupIds(SecurityGroupIdsT&& value) {
52 m_securityGroupIdsHasBeenSet = true;
53 m_securityGroupIds = std::forward<SecurityGroupIdsT>(value);
54 }
55 template <typename SecurityGroupIdsT = Aws::Vector<Aws::String>>
56 VpcConfig& WithSecurityGroupIds(SecurityGroupIdsT&& value) {
57 SetSecurityGroupIds(std::forward<SecurityGroupIdsT>(value));
58 return *this;
59 }
60 template <typename SecurityGroupIdsT = Aws::String>
61 VpcConfig& AddSecurityGroupIds(SecurityGroupIdsT&& value) {
62 m_securityGroupIdsHasBeenSet = true;
63 m_securityGroupIds.emplace_back(std::forward<SecurityGroupIdsT>(value));
64 return *this;
65 }
67
69
77 inline const Aws::Vector<Aws::String>& GetSubnets() const { return m_subnets; }
78 inline bool SubnetsHasBeenSet() const { return m_subnetsHasBeenSet; }
79 template <typename SubnetsT = Aws::Vector<Aws::String>>
80 void SetSubnets(SubnetsT&& value) {
81 m_subnetsHasBeenSet = true;
82 m_subnets = std::forward<SubnetsT>(value);
83 }
84 template <typename SubnetsT = Aws::Vector<Aws::String>>
85 VpcConfig& WithSubnets(SubnetsT&& value) {
86 SetSubnets(std::forward<SubnetsT>(value));
87 return *this;
88 }
89 template <typename SubnetsT = Aws::String>
90 VpcConfig& AddSubnets(SubnetsT&& value) {
91 m_subnetsHasBeenSet = true;
92 m_subnets.emplace_back(std::forward<SubnetsT>(value));
93 return *this;
94 }
96 private:
97 Aws::Vector<Aws::String> m_securityGroupIds;
98
100 bool m_securityGroupIdsHasBeenSet = false;
101 bool m_subnetsHasBeenSet = false;
102};
103
104} // namespace Model
105} // namespace Comprehend
106} // namespace Aws
void SetSubnets(SubnetsT &&value)
Definition VpcConfig.h:80
VpcConfig & AddSubnets(SubnetsT &&value)
Definition VpcConfig.h:90
const Aws::Vector< Aws::String > & GetSubnets() const
Definition VpcConfig.h:77
AWS_COMPREHEND_API Aws::Utils::Json::JsonValue Jsonize() const
void SetSecurityGroupIds(SecurityGroupIdsT &&value)
Definition VpcConfig.h:51
VpcConfig & WithSubnets(SubnetsT &&value)
Definition VpcConfig.h:85
VpcConfig & AddSecurityGroupIds(SecurityGroupIdsT &&value)
Definition VpcConfig.h:61
VpcConfig & WithSecurityGroupIds(SecurityGroupIdsT &&value)
Definition VpcConfig.h:56
AWS_COMPREHEND_API VpcConfig(Aws::Utils::Json::JsonView jsonValue)
bool SecurityGroupIdsHasBeenSet() const
Definition VpcConfig.h:49
const Aws::Vector< Aws::String > & GetSecurityGroupIds() const
Definition VpcConfig.h:48
AWS_COMPREHEND_API VpcConfig & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_COMPREHEND_API VpcConfig()=default
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue