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/bedrock/Bedrock_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 Bedrock
23{
24namespace Model
25{
26
37 {
38 public:
39 AWS_BEDROCK_API VpcConfig();
40 AWS_BEDROCK_API VpcConfig(Aws::Utils::Json::JsonView jsonValue);
41 AWS_BEDROCK_API VpcConfig& operator=(Aws::Utils::Json::JsonView jsonValue);
42 AWS_BEDROCK_API Aws::Utils::Json::JsonValue Jsonize() const;
43
44
46
49 inline const Aws::Vector<Aws::String>& GetSubnetIds() const{ return m_subnetIds; }
50 inline bool SubnetIdsHasBeenSet() const { return m_subnetIdsHasBeenSet; }
51 inline void SetSubnetIds(const Aws::Vector<Aws::String>& value) { m_subnetIdsHasBeenSet = true; m_subnetIds = value; }
52 inline void SetSubnetIds(Aws::Vector<Aws::String>&& value) { m_subnetIdsHasBeenSet = true; m_subnetIds = std::move(value); }
53 inline VpcConfig& WithSubnetIds(const Aws::Vector<Aws::String>& value) { SetSubnetIds(value); return *this;}
54 inline VpcConfig& WithSubnetIds(Aws::Vector<Aws::String>&& value) { SetSubnetIds(std::move(value)); return *this;}
55 inline VpcConfig& AddSubnetIds(const Aws::String& value) { m_subnetIdsHasBeenSet = true; m_subnetIds.push_back(value); return *this; }
56 inline VpcConfig& AddSubnetIds(Aws::String&& value) { m_subnetIdsHasBeenSet = true; m_subnetIds.push_back(std::move(value)); return *this; }
57 inline VpcConfig& AddSubnetIds(const char* value) { m_subnetIdsHasBeenSet = true; m_subnetIds.push_back(value); return *this; }
59
61
64 inline const Aws::Vector<Aws::String>& GetSecurityGroupIds() const{ return m_securityGroupIds; }
65 inline bool SecurityGroupIdsHasBeenSet() const { return m_securityGroupIdsHasBeenSet; }
66 inline void SetSecurityGroupIds(const Aws::Vector<Aws::String>& value) { m_securityGroupIdsHasBeenSet = true; m_securityGroupIds = value; }
67 inline void SetSecurityGroupIds(Aws::Vector<Aws::String>&& value) { m_securityGroupIdsHasBeenSet = true; m_securityGroupIds = std::move(value); }
68 inline VpcConfig& WithSecurityGroupIds(const Aws::Vector<Aws::String>& value) { SetSecurityGroupIds(value); return *this;}
69 inline VpcConfig& WithSecurityGroupIds(Aws::Vector<Aws::String>&& value) { SetSecurityGroupIds(std::move(value)); return *this;}
70 inline VpcConfig& AddSecurityGroupIds(const Aws::String& value) { m_securityGroupIdsHasBeenSet = true; m_securityGroupIds.push_back(value); return *this; }
71 inline VpcConfig& AddSecurityGroupIds(Aws::String&& value) { m_securityGroupIdsHasBeenSet = true; m_securityGroupIds.push_back(std::move(value)); return *this; }
72 inline VpcConfig& AddSecurityGroupIds(const char* value) { m_securityGroupIdsHasBeenSet = true; m_securityGroupIds.push_back(value); return *this; }
74 private:
75
76 Aws::Vector<Aws::String> m_subnetIds;
77 bool m_subnetIdsHasBeenSet = false;
78
79 Aws::Vector<Aws::String> m_securityGroupIds;
80 bool m_securityGroupIdsHasBeenSet = false;
81 };
82
83} // namespace Model
84} // namespace Bedrock
85} // namespace Aws
void SetSecurityGroupIds(Aws::Vector< Aws::String > &&value)
Definition VpcConfig.h:67
VpcConfig & WithSecurityGroupIds(const Aws::Vector< Aws::String > &value)
Definition VpcConfig.h:68
VpcConfig & WithSubnetIds(const Aws::Vector< Aws::String > &value)
Definition VpcConfig.h:53
AWS_BEDROCK_API VpcConfig & operator=(Aws::Utils::Json::JsonView jsonValue)
VpcConfig & WithSecurityGroupIds(Aws::Vector< Aws::String > &&value)
Definition VpcConfig.h:69
VpcConfig & AddSubnetIds(Aws::String &&value)
Definition VpcConfig.h:56
const Aws::Vector< Aws::String > & GetSubnetIds() const
Definition VpcConfig.h:49
void SetSubnetIds(Aws::Vector< Aws::String > &&value)
Definition VpcConfig.h:52
VpcConfig & AddSecurityGroupIds(const Aws::String &value)
Definition VpcConfig.h:70
VpcConfig & AddSubnetIds(const char *value)
Definition VpcConfig.h:57
VpcConfig & AddSubnetIds(const Aws::String &value)
Definition VpcConfig.h:55
AWS_BEDROCK_API Aws::Utils::Json::JsonValue Jsonize() const
bool SecurityGroupIdsHasBeenSet() const
Definition VpcConfig.h:65
void SetSubnetIds(const Aws::Vector< Aws::String > &value)
Definition VpcConfig.h:51
AWS_BEDROCK_API VpcConfig(Aws::Utils::Json::JsonView jsonValue)
VpcConfig & AddSecurityGroupIds(const char *value)
Definition VpcConfig.h:72
VpcConfig & WithSubnetIds(Aws::Vector< Aws::String > &&value)
Definition VpcConfig.h:54
void SetSecurityGroupIds(const Aws::Vector< Aws::String > &value)
Definition VpcConfig.h:66
VpcConfig & AddSecurityGroupIds(Aws::String &&value)
Definition VpcConfig.h:71
const Aws::Vector< Aws::String > & GetSecurityGroupIds() const
Definition VpcConfig.h:64
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue