AWS SDK for C++

AWS SDK for C++ Version 1.11.609

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() = default;
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 template<typename SubnetIdsT = Aws::Vector<Aws::String>>
52 void SetSubnetIds(SubnetIdsT&& value) { m_subnetIdsHasBeenSet = true; m_subnetIds = std::forward<SubnetIdsT>(value); }
53 template<typename SubnetIdsT = Aws::Vector<Aws::String>>
54 VpcConfig& WithSubnetIds(SubnetIdsT&& value) { SetSubnetIds(std::forward<SubnetIdsT>(value)); return *this;}
55 template<typename SubnetIdsT = Aws::String>
56 VpcConfig& AddSubnetIds(SubnetIdsT&& value) { m_subnetIdsHasBeenSet = true; m_subnetIds.emplace_back(std::forward<SubnetIdsT>(value)); return *this; }
58
60
63 inline const Aws::Vector<Aws::String>& GetSecurityGroupIds() const { return m_securityGroupIds; }
64 inline bool SecurityGroupIdsHasBeenSet() const { return m_securityGroupIdsHasBeenSet; }
65 template<typename SecurityGroupIdsT = Aws::Vector<Aws::String>>
66 void SetSecurityGroupIds(SecurityGroupIdsT&& value) { m_securityGroupIdsHasBeenSet = true; m_securityGroupIds = std::forward<SecurityGroupIdsT>(value); }
67 template<typename SecurityGroupIdsT = Aws::Vector<Aws::String>>
68 VpcConfig& WithSecurityGroupIds(SecurityGroupIdsT&& value) { SetSecurityGroupIds(std::forward<SecurityGroupIdsT>(value)); return *this;}
69 template<typename SecurityGroupIdsT = Aws::String>
70 VpcConfig& AddSecurityGroupIds(SecurityGroupIdsT&& value) { m_securityGroupIdsHasBeenSet = true; m_securityGroupIds.emplace_back(std::forward<SecurityGroupIdsT>(value)); return *this; }
72 private:
73
74 Aws::Vector<Aws::String> m_subnetIds;
75 bool m_subnetIdsHasBeenSet = false;
76
77 Aws::Vector<Aws::String> m_securityGroupIds;
78 bool m_securityGroupIdsHasBeenSet = false;
79 };
80
81} // namespace Model
82} // namespace Bedrock
83} // namespace Aws
AWS_BEDROCK_API VpcConfig & operator=(Aws::Utils::Json::JsonView jsonValue)
const Aws::Vector< Aws::String > & GetSubnetIds() const
Definition VpcConfig.h:49
AWS_BEDROCK_API VpcConfig()=default
VpcConfig & AddSecurityGroupIds(SecurityGroupIdsT &&value)
Definition VpcConfig.h:70
void SetSubnetIds(SubnetIdsT &&value)
Definition VpcConfig.h:52
AWS_BEDROCK_API Aws::Utils::Json::JsonValue Jsonize() const
bool SecurityGroupIdsHasBeenSet() const
Definition VpcConfig.h:64
VpcConfig & AddSubnetIds(SubnetIdsT &&value)
Definition VpcConfig.h:56
VpcConfig & WithSubnetIds(SubnetIdsT &&value)
Definition VpcConfig.h:54
AWS_BEDROCK_API VpcConfig(Aws::Utils::Json::JsonView jsonValue)
VpcConfig & WithSecurityGroupIds(SecurityGroupIdsT &&value)
Definition VpcConfig.h:68
void SetSecurityGroupIds(SecurityGroupIdsT &&value)
Definition VpcConfig.h:66
const Aws::Vector< Aws::String > & GetSecurityGroupIds() const
Definition VpcConfig.h:63
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue