AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
VpcConfig.h
1
6#pragma once
7#include <aws/comprehend/Comprehend_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <utility>
11
12namespace Aws
13{
14namespace Utils
15{
16namespace Json
17{
18 class JsonValue;
19 class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace Comprehend
23{
24namespace Model
25{
26
36 {
37 public:
38 AWS_COMPREHEND_API VpcConfig() = default;
39 AWS_COMPREHEND_API VpcConfig(Aws::Utils::Json::JsonView jsonValue);
40 AWS_COMPREHEND_API VpcConfig& operator=(Aws::Utils::Json::JsonView jsonValue);
41 AWS_COMPREHEND_API Aws::Utils::Json::JsonValue Jsonize() const;
42
43
45
54 inline const Aws::Vector<Aws::String>& GetSecurityGroupIds() const { return m_securityGroupIds; }
55 inline bool SecurityGroupIdsHasBeenSet() const { return m_securityGroupIdsHasBeenSet; }
56 template<typename SecurityGroupIdsT = Aws::Vector<Aws::String>>
57 void SetSecurityGroupIds(SecurityGroupIdsT&& value) { m_securityGroupIdsHasBeenSet = true; m_securityGroupIds = std::forward<SecurityGroupIdsT>(value); }
58 template<typename SecurityGroupIdsT = Aws::Vector<Aws::String>>
59 VpcConfig& WithSecurityGroupIds(SecurityGroupIdsT&& value) { SetSecurityGroupIds(std::forward<SecurityGroupIdsT>(value)); return *this;}
60 template<typename SecurityGroupIdsT = Aws::String>
61 VpcConfig& AddSecurityGroupIds(SecurityGroupIdsT&& value) { m_securityGroupIdsHasBeenSet = true; m_securityGroupIds.emplace_back(std::forward<SecurityGroupIdsT>(value)); return *this; }
63
65
73 inline const Aws::Vector<Aws::String>& GetSubnets() const { return m_subnets; }
74 inline bool SubnetsHasBeenSet() const { return m_subnetsHasBeenSet; }
75 template<typename SubnetsT = Aws::Vector<Aws::String>>
76 void SetSubnets(SubnetsT&& value) { m_subnetsHasBeenSet = true; m_subnets = std::forward<SubnetsT>(value); }
77 template<typename SubnetsT = Aws::Vector<Aws::String>>
78 VpcConfig& WithSubnets(SubnetsT&& value) { SetSubnets(std::forward<SubnetsT>(value)); return *this;}
79 template<typename SubnetsT = Aws::String>
80 VpcConfig& AddSubnets(SubnetsT&& value) { m_subnetsHasBeenSet = true; m_subnets.emplace_back(std::forward<SubnetsT>(value)); return *this; }
82 private:
83
84 Aws::Vector<Aws::String> m_securityGroupIds;
85 bool m_securityGroupIdsHasBeenSet = false;
86
88 bool m_subnetsHasBeenSet = false;
89 };
90
91} // namespace Model
92} // namespace Comprehend
93} // namespace Aws
void SetSubnets(SubnetsT &&value)
Definition VpcConfig.h:76
VpcConfig & AddSubnets(SubnetsT &&value)
Definition VpcConfig.h:80
const Aws::Vector< Aws::String > & GetSubnets() const
Definition VpcConfig.h:73
AWS_COMPREHEND_API Aws::Utils::Json::JsonValue Jsonize() const
void SetSecurityGroupIds(SecurityGroupIdsT &&value)
Definition VpcConfig.h:57
VpcConfig & WithSubnets(SubnetsT &&value)
Definition VpcConfig.h:78
VpcConfig & AddSecurityGroupIds(SecurityGroupIdsT &&value)
Definition VpcConfig.h:61
VpcConfig & WithSecurityGroupIds(SecurityGroupIdsT &&value)
Definition VpcConfig.h:59
AWS_COMPREHEND_API VpcConfig(Aws::Utils::Json::JsonView jsonValue)
bool SecurityGroupIdsHasBeenSet() const
Definition VpcConfig.h:55
const Aws::Vector< Aws::String > & GetSecurityGroupIds() const
Definition VpcConfig.h:54
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