AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetSubnetIds(const Aws::Vector<Aws::String>& value) { m_subnetIdsHasBeenSet = true; m_subnetIds = value; }
51 inline void SetSubnetIds(Aws::Vector<Aws::String>&& value) { m_subnetIdsHasBeenSet = true; m_subnetIds = std::move(value); }
53 inline DataSourceVpcConfiguration& WithSubnetIds(Aws::Vector<Aws::String>&& value) { SetSubnetIds(std::move(value)); return *this;}
54 inline DataSourceVpcConfiguration& AddSubnetIds(const Aws::String& value) { m_subnetIdsHasBeenSet = true; m_subnetIds.push_back(value); return *this; }
55 inline DataSourceVpcConfiguration& AddSubnetIds(Aws::String&& value) { m_subnetIdsHasBeenSet = true; m_subnetIds.push_back(std::move(value)); return *this; }
56 inline DataSourceVpcConfiguration& AddSubnetIds(const char* value) { m_subnetIdsHasBeenSet = true; m_subnetIds.push_back(value); return *this; }
58
60
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); }
70 inline DataSourceVpcConfiguration& AddSecurityGroupIds(const Aws::String& value) { m_securityGroupIdsHasBeenSet = true; m_securityGroupIds.push_back(value); return *this; }
71 inline DataSourceVpcConfiguration& AddSecurityGroupIds(Aws::String&& value) { m_securityGroupIdsHasBeenSet = true; m_securityGroupIds.push_back(std::move(value)); return *this; }
72 inline DataSourceVpcConfiguration& 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 QBusiness
85} // namespace Aws
void SetSubnetIds(Aws::Vector< Aws::String > &&value)
void SetSecurityGroupIds(const Aws::Vector< Aws::String > &value)
DataSourceVpcConfiguration & WithSecurityGroupIds(const Aws::Vector< Aws::String > &value)
DataSourceVpcConfiguration & AddSecurityGroupIds(const char *value)
DataSourceVpcConfiguration & AddSubnetIds(const Aws::String &value)
DataSourceVpcConfiguration & WithSubnetIds(Aws::Vector< Aws::String > &&value)
const Aws::Vector< Aws::String > & GetSecurityGroupIds() const
void SetSubnetIds(const Aws::Vector< Aws::String > &value)
DataSourceVpcConfiguration & AddSubnetIds(Aws::String &&value)
DataSourceVpcConfiguration & WithSubnetIds(const Aws::Vector< Aws::String > &value)
AWS_QBUSINESS_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_QBUSINESS_API DataSourceVpcConfiguration & operator=(Aws::Utils::Json::JsonView jsonValue)
DataSourceVpcConfiguration & AddSecurityGroupIds(Aws::String &&value)
DataSourceVpcConfiguration & WithSecurityGroupIds(Aws::Vector< Aws::String > &&value)
void SetSecurityGroupIds(Aws::Vector< Aws::String > &&value)
DataSourceVpcConfiguration & AddSubnetIds(const char *value)
AWS_QBUSINESS_API DataSourceVpcConfiguration(Aws::Utils::Json::JsonView jsonValue)
DataSourceVpcConfiguration & AddSecurityGroupIds(const Aws::String &value)
const Aws::Vector< Aws::String > & GetSubnetIds() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue