AWS SDK for C++

AWS SDK for C++ Version 1.11.752

Loading...
Searching...
No Matches
DirectoryVpcSettings.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/ds/DirectoryService_EXPORTS.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace DirectoryService {
21namespace Model {
22
31 public:
32 AWS_DIRECTORYSERVICE_API DirectoryVpcSettings() = default;
33 AWS_DIRECTORYSERVICE_API DirectoryVpcSettings(Aws::Utils::Json::JsonView jsonValue);
34 AWS_DIRECTORYSERVICE_API DirectoryVpcSettings& operator=(Aws::Utils::Json::JsonView jsonValue);
35 AWS_DIRECTORYSERVICE_API Aws::Utils::Json::JsonValue Jsonize() const;
36
38
41 inline const Aws::String& GetVpcId() const { return m_vpcId; }
42 inline bool VpcIdHasBeenSet() const { return m_vpcIdHasBeenSet; }
43 template <typename VpcIdT = Aws::String>
44 void SetVpcId(VpcIdT&& value) {
45 m_vpcIdHasBeenSet = true;
46 m_vpcId = std::forward<VpcIdT>(value);
47 }
48 template <typename VpcIdT = Aws::String>
50 SetVpcId(std::forward<VpcIdT>(value));
51 return *this;
52 }
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) {
65 m_subnetIdsHasBeenSet = true;
66 m_subnetIds = std::forward<SubnetIdsT>(value);
67 }
68 template <typename SubnetIdsT = Aws::Vector<Aws::String>>
69 DirectoryVpcSettings& WithSubnetIds(SubnetIdsT&& value) {
70 SetSubnetIds(std::forward<SubnetIdsT>(value));
71 return *this;
72 }
73 template <typename SubnetIdsT = Aws::String>
74 DirectoryVpcSettings& AddSubnetIds(SubnetIdsT&& value) {
75 m_subnetIdsHasBeenSet = true;
76 m_subnetIds.emplace_back(std::forward<SubnetIdsT>(value));
77 return *this;
78 }
80 private:
81 Aws::String m_vpcId;
82
83 Aws::Vector<Aws::String> m_subnetIds;
84 bool m_vpcIdHasBeenSet = false;
85 bool m_subnetIdsHasBeenSet = false;
86};
87
88} // namespace Model
89} // namespace DirectoryService
90} // 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