AWS SDK for C++

AWS SDK for C++ Version 1.11.644

Loading...
Searching...
No Matches
DirectoryVpcSettings.h
1
6#pragma once
7#include <aws/ds/DirectoryService_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.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 DirectoryService
23{
24namespace Model
25{
26
35 {
36 public:
37 AWS_DIRECTORYSERVICE_API DirectoryVpcSettings() = default;
38 AWS_DIRECTORYSERVICE_API DirectoryVpcSettings(Aws::Utils::Json::JsonView jsonValue);
39 AWS_DIRECTORYSERVICE_API DirectoryVpcSettings& operator=(Aws::Utils::Json::JsonView jsonValue);
40 AWS_DIRECTORYSERVICE_API Aws::Utils::Json::JsonValue Jsonize() const;
41
42
44
47 inline const Aws::String& GetVpcId() const { return m_vpcId; }
48 inline bool VpcIdHasBeenSet() const { return m_vpcIdHasBeenSet; }
49 template<typename VpcIdT = Aws::String>
50 void SetVpcId(VpcIdT&& value) { m_vpcIdHasBeenSet = true; m_vpcId = std::forward<VpcIdT>(value); }
51 template<typename VpcIdT = Aws::String>
52 DirectoryVpcSettings& WithVpcId(VpcIdT&& value) { SetVpcId(std::forward<VpcIdT>(value)); return *this;}
54
56
61 inline const Aws::Vector<Aws::String>& GetSubnetIds() const { return m_subnetIds; }
62 inline bool SubnetIdsHasBeenSet() const { return m_subnetIdsHasBeenSet; }
63 template<typename SubnetIdsT = Aws::Vector<Aws::String>>
64 void SetSubnetIds(SubnetIdsT&& value) { m_subnetIdsHasBeenSet = true; m_subnetIds = std::forward<SubnetIdsT>(value); }
65 template<typename SubnetIdsT = Aws::Vector<Aws::String>>
66 DirectoryVpcSettings& WithSubnetIds(SubnetIdsT&& value) { SetSubnetIds(std::forward<SubnetIdsT>(value)); return *this;}
67 template<typename SubnetIdsT = Aws::String>
68 DirectoryVpcSettings& AddSubnetIds(SubnetIdsT&& value) { m_subnetIdsHasBeenSet = true; m_subnetIds.emplace_back(std::forward<SubnetIdsT>(value)); return *this; }
70 private:
71
72 Aws::String m_vpcId;
73 bool m_vpcIdHasBeenSet = false;
74
75 Aws::Vector<Aws::String> m_subnetIds;
76 bool m_subnetIdsHasBeenSet = false;
77 };
78
79} // namespace Model
80} // namespace DirectoryService
81} // namespace Aws
DirectoryVpcSettings & AddSubnetIds(SubnetIdsT &&value)
AWS_DIRECTORYSERVICE_API DirectoryVpcSettings(Aws::Utils::Json::JsonView jsonValue)
AWS_DIRECTORYSERVICE_API DirectoryVpcSettings()=default
AWS_DIRECTORYSERVICE_API DirectoryVpcSettings & operator=(Aws::Utils::Json::JsonView jsonValue)
DirectoryVpcSettings & WithSubnetIds(SubnetIdsT &&value)
DirectoryVpcSettings & WithVpcId(VpcIdT &&value)
const Aws::Vector< Aws::String > & GetSubnetIds() const
AWS_DIRECTORYSERVICE_API Aws::Utils::Json::JsonValue Jsonize() 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