AWS SDK for C++

AWS SDK for C++ Version 1.11.747

Loading...
Searching...
No Matches
VpcConfig.h
1
6#pragma once
7#include <aws/bedrock/Bedrock_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 Bedrock {
21namespace Model {
22
32class VpcConfig {
33 public:
34 AWS_BEDROCK_API VpcConfig() = default;
37 AWS_BEDROCK_API Aws::Utils::Json::JsonValue Jsonize() const;
38
40
43 inline const Aws::Vector<Aws::String>& GetSubnetIds() const { return m_subnetIds; }
44 inline bool SubnetIdsHasBeenSet() const { return m_subnetIdsHasBeenSet; }
45 template <typename SubnetIdsT = Aws::Vector<Aws::String>>
46 void SetSubnetIds(SubnetIdsT&& value) {
47 m_subnetIdsHasBeenSet = true;
48 m_subnetIds = std::forward<SubnetIdsT>(value);
49 }
50 template <typename SubnetIdsT = Aws::Vector<Aws::String>>
52 SetSubnetIds(std::forward<SubnetIdsT>(value));
53 return *this;
54 }
55 template <typename SubnetIdsT = Aws::String>
57 m_subnetIdsHasBeenSet = true;
58 m_subnetIds.emplace_back(std::forward<SubnetIdsT>(value));
59 return *this;
60 }
62
64
67 inline const Aws::Vector<Aws::String>& GetSecurityGroupIds() const { return m_securityGroupIds; }
68 inline bool SecurityGroupIdsHasBeenSet() const { return m_securityGroupIdsHasBeenSet; }
69 template <typename SecurityGroupIdsT = Aws::Vector<Aws::String>>
71 m_securityGroupIdsHasBeenSet = true;
72 m_securityGroupIds = std::forward<SecurityGroupIdsT>(value);
73 }
74 template <typename SecurityGroupIdsT = Aws::Vector<Aws::String>>
76 SetSecurityGroupIds(std::forward<SecurityGroupIdsT>(value));
77 return *this;
78 }
79 template <typename SecurityGroupIdsT = Aws::String>
81 m_securityGroupIdsHasBeenSet = true;
82 m_securityGroupIds.emplace_back(std::forward<SecurityGroupIdsT>(value));
83 return *this;
84 }
86 private:
87 Aws::Vector<Aws::String> m_subnetIds;
88
89 Aws::Vector<Aws::String> m_securityGroupIds;
90 bool m_subnetIdsHasBeenSet = false;
91 bool m_securityGroupIdsHasBeenSet = false;
92};
93
94} // namespace Model
95} // namespace Bedrock
96} // namespace Aws
AWS_BEDROCK_API VpcConfig & operator=(Aws::Utils::Json::JsonView jsonValue)
const Aws::Vector< Aws::String > & GetSubnetIds() const
Definition VpcConfig.h:43
AWS_BEDROCK_API VpcConfig()=default
VpcConfig & AddSecurityGroupIds(SecurityGroupIdsT &&value)
Definition VpcConfig.h:80
void SetSubnetIds(SubnetIdsT &&value)
Definition VpcConfig.h:46
AWS_BEDROCK_API Aws::Utils::Json::JsonValue Jsonize() const
bool SecurityGroupIdsHasBeenSet() const
Definition VpcConfig.h:68
VpcConfig & AddSubnetIds(SubnetIdsT &&value)
Definition VpcConfig.h:56
VpcConfig & WithSubnetIds(SubnetIdsT &&value)
Definition VpcConfig.h:51
AWS_BEDROCK_API VpcConfig(Aws::Utils::Json::JsonView jsonValue)
VpcConfig & WithSecurityGroupIds(SecurityGroupIdsT &&value)
Definition VpcConfig.h:75
void SetSecurityGroupIds(SecurityGroupIdsT &&value)
Definition VpcConfig.h:70
const Aws::Vector< Aws::String > & GetSecurityGroupIds() const
Definition VpcConfig.h:67
std::shared_ptr< T > MakeShared(const char *allocationTag, ArgTypes &&... args)
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue