AWS SDK for C++

AWS SDK for C++ Version 1.11.690

Loading...
Searching...
No Matches
DataSourceVpcConfiguration.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/kendra/Kendra_EXPORTS.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace kendra {
21namespace Model {
22
30 public:
31 AWS_KENDRA_API DataSourceVpcConfiguration() = default;
34 AWS_KENDRA_API Aws::Utils::Json::JsonValue Jsonize() const;
35
37
42 inline const Aws::Vector<Aws::String>& GetSubnetIds() const { return m_subnetIds; }
43 inline bool SubnetIdsHasBeenSet() const { return m_subnetIdsHasBeenSet; }
44 template <typename SubnetIdsT = Aws::Vector<Aws::String>>
45 void SetSubnetIds(SubnetIdsT&& value) {
46 m_subnetIdsHasBeenSet = true;
47 m_subnetIds = std::forward<SubnetIdsT>(value);
48 }
49 template <typename SubnetIdsT = Aws::Vector<Aws::String>>
51 SetSubnetIds(std::forward<SubnetIdsT>(value));
52 return *this;
53 }
54 template <typename SubnetIdsT = Aws::String>
56 m_subnetIdsHasBeenSet = true;
57 m_subnetIds.emplace_back(std::forward<SubnetIdsT>(value));
58 return *this;
59 }
61
63
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>>
70 void SetSecurityGroupIds(SecurityGroupIdsT&& value) {
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>
80 DataSourceVpcConfiguration& AddSecurityGroupIds(SecurityGroupIdsT&& value) {
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 bool m_subnetIdsHasBeenSet = false;
89
90 Aws::Vector<Aws::String> m_securityGroupIds;
91 bool m_securityGroupIdsHasBeenSet = false;
92};
93
94} // namespace Model
95} // namespace kendra
96} // namespace Aws
AWS_KENDRA_API DataSourceVpcConfiguration()=default
AWS_KENDRA_API Aws::Utils::Json::JsonValue Jsonize() const
const Aws::Vector< Aws::String > & GetSubnetIds() const
const Aws::Vector< Aws::String > & GetSecurityGroupIds() const
DataSourceVpcConfiguration & WithSecurityGroupIds(SecurityGroupIdsT &&value)
DataSourceVpcConfiguration & AddSecurityGroupIds(SecurityGroupIdsT &&value)
AWS_KENDRA_API DataSourceVpcConfiguration & operator=(Aws::Utils::Json::JsonView jsonValue)
DataSourceVpcConfiguration & AddSubnetIds(SubnetIdsT &&value)
AWS_KENDRA_API DataSourceVpcConfiguration(Aws::Utils::Json::JsonView jsonValue)
DataSourceVpcConfiguration & WithSubnetIds(SubnetIdsT &&value)
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue