AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetSecurityGroupIds(const Aws::Vector<Aws::String>& value) { m_securityGroupIdsHasBeenSet = true; m_securityGroupIds = value; }
57 inline void SetSecurityGroupIds(Aws::Vector<Aws::String>&& value) { m_securityGroupIdsHasBeenSet = true; m_securityGroupIds = std::move(value); }
58 inline VpcConfig& WithSecurityGroupIds(const Aws::Vector<Aws::String>& value) { SetSecurityGroupIds(value); return *this;}
59 inline VpcConfig& WithSecurityGroupIds(Aws::Vector<Aws::String>&& value) { SetSecurityGroupIds(std::move(value)); return *this;}
60 inline VpcConfig& AddSecurityGroupIds(const Aws::String& value) { m_securityGroupIdsHasBeenSet = true; m_securityGroupIds.push_back(value); return *this; }
61 inline VpcConfig& AddSecurityGroupIds(Aws::String&& value) { m_securityGroupIdsHasBeenSet = true; m_securityGroupIds.push_back(std::move(value)); return *this; }
62 inline VpcConfig& AddSecurityGroupIds(const char* value) { m_securityGroupIdsHasBeenSet = true; m_securityGroupIds.push_back(value); return *this; }
64
66
74 inline const Aws::Vector<Aws::String>& GetSubnets() const{ return m_subnets; }
75 inline bool SubnetsHasBeenSet() const { return m_subnetsHasBeenSet; }
76 inline void SetSubnets(const Aws::Vector<Aws::String>& value) { m_subnetsHasBeenSet = true; m_subnets = value; }
77 inline void SetSubnets(Aws::Vector<Aws::String>&& value) { m_subnetsHasBeenSet = true; m_subnets = std::move(value); }
78 inline VpcConfig& WithSubnets(const Aws::Vector<Aws::String>& value) { SetSubnets(value); return *this;}
79 inline VpcConfig& WithSubnets(Aws::Vector<Aws::String>&& value) { SetSubnets(std::move(value)); return *this;}
80 inline VpcConfig& AddSubnets(const Aws::String& value) { m_subnetsHasBeenSet = true; m_subnets.push_back(value); return *this; }
81 inline VpcConfig& AddSubnets(Aws::String&& value) { m_subnetsHasBeenSet = true; m_subnets.push_back(std::move(value)); return *this; }
82 inline VpcConfig& AddSubnets(const char* value) { m_subnetsHasBeenSet = true; m_subnets.push_back(value); return *this; }
84 private:
85
86 Aws::Vector<Aws::String> m_securityGroupIds;
87 bool m_securityGroupIdsHasBeenSet = false;
88
90 bool m_subnetsHasBeenSet = false;
91 };
92
93} // namespace Model
94} // namespace Comprehend
95} // namespace Aws
VpcConfig & WithSubnets(Aws::Vector< Aws::String > &&value)
Definition VpcConfig.h:79
VpcConfig & WithSecurityGroupIds(Aws::Vector< Aws::String > &&value)
Definition VpcConfig.h:59
VpcConfig & AddSubnets(Aws::String &&value)
Definition VpcConfig.h:81
void SetSubnets(Aws::Vector< Aws::String > &&value)
Definition VpcConfig.h:77
const Aws::Vector< Aws::String > & GetSubnets() const
Definition VpcConfig.h:74
void SetSecurityGroupIds(Aws::Vector< Aws::String > &&value)
Definition VpcConfig.h:57
AWS_COMPREHEND_API VpcConfig()
VpcConfig & AddSubnets(const char *value)
Definition VpcConfig.h:82
VpcConfig & WithSubnets(const Aws::Vector< Aws::String > &value)
Definition VpcConfig.h:78
AWS_COMPREHEND_API Aws::Utils::Json::JsonValue Jsonize() const
void SetSubnets(const Aws::Vector< Aws::String > &value)
Definition VpcConfig.h:76
void SetSecurityGroupIds(const Aws::Vector< Aws::String > &value)
Definition VpcConfig.h:56
VpcConfig & AddSecurityGroupIds(const Aws::String &value)
Definition VpcConfig.h:60
VpcConfig & AddSecurityGroupIds(Aws::String &&value)
Definition VpcConfig.h:61
VpcConfig & AddSecurityGroupIds(const char *value)
Definition VpcConfig.h:62
VpcConfig & WithSecurityGroupIds(const Aws::Vector< Aws::String > &value)
Definition VpcConfig.h:58
AWS_COMPREHEND_API VpcConfig(Aws::Utils::Json::JsonView jsonValue)
VpcConfig & AddSubnets(const Aws::String &value)
Definition VpcConfig.h:80
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)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue