AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
DataSourceVpcConfiguration.h
1
6#pragma once
7#include <aws/qbusiness/QBusiness_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 QBusiness
23{
24namespace Model
25{
26
34 {
35 public:
36 AWS_QBUSINESS_API DataSourceVpcConfiguration() = default;
39 AWS_QBUSINESS_API Aws::Utils::Json::JsonValue Jsonize() const;
40
41
43
48 inline const Aws::Vector<Aws::String>& GetSubnetIds() const { return m_subnetIds; }
49 inline bool SubnetIdsHasBeenSet() const { return m_subnetIdsHasBeenSet; }
50 template<typename SubnetIdsT = Aws::Vector<Aws::String>>
51 void SetSubnetIds(SubnetIdsT&& value) { m_subnetIdsHasBeenSet = true; m_subnetIds = std::forward<SubnetIdsT>(value); }
52 template<typename SubnetIdsT = Aws::Vector<Aws::String>>
53 DataSourceVpcConfiguration& WithSubnetIds(SubnetIdsT&& value) { SetSubnetIds(std::forward<SubnetIdsT>(value)); return *this;}
54 template<typename SubnetIdsT = Aws::String>
55 DataSourceVpcConfiguration& AddSubnetIds(SubnetIdsT&& value) { m_subnetIdsHasBeenSet = true; m_subnetIds.emplace_back(std::forward<SubnetIdsT>(value)); return *this; }
57
59
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 DataSourceVpcConfiguration& WithSecurityGroupIds(SecurityGroupIdsT&& value) { SetSecurityGroupIds(std::forward<SecurityGroupIdsT>(value)); return *this;}
69 template<typename SecurityGroupIdsT = Aws::String>
70 DataSourceVpcConfiguration& 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 QBusiness
83} // namespace Aws
const Aws::Vector< Aws::String > & GetSecurityGroupIds() const
DataSourceVpcConfiguration & WithSecurityGroupIds(SecurityGroupIdsT &&value)
AWS_QBUSINESS_API Aws::Utils::Json::JsonValue Jsonize() const
DataSourceVpcConfiguration & AddSubnetIds(SubnetIdsT &&value)
DataSourceVpcConfiguration & WithSubnetIds(SubnetIdsT &&value)
AWS_QBUSINESS_API DataSourceVpcConfiguration & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_QBUSINESS_API DataSourceVpcConfiguration()=default
DataSourceVpcConfiguration & AddSecurityGroupIds(SecurityGroupIdsT &&value)
AWS_QBUSINESS_API DataSourceVpcConfiguration(Aws::Utils::Json::JsonView jsonValue)
const Aws::Vector< Aws::String > & GetSubnetIds() const
std::shared_ptr< T > MakeShared(const char *allocationTag, ArgTypes &&... args)
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue