AWS SDK for C++  1.9.19
AWS SDK for C++
DirectoryVpcSettings.h
Go to the documentation of this file.
1 
6 #pragma once
10 #include <utility>
11 
12 namespace Aws
13 {
14 namespace Utils
15 {
16 namespace Json
17 {
18  class JsonValue;
19  class JsonView;
20 } // namespace Json
21 } // namespace Utils
22 namespace DirectoryService
23 {
24 namespace Model
25 {
26 
34  {
35  public:
40 
41 
45  inline const Aws::String& GetVpcId() const{ return m_vpcId; }
46 
50  inline bool VpcIdHasBeenSet() const { return m_vpcIdHasBeenSet; }
51 
55  inline void SetVpcId(const Aws::String& value) { m_vpcIdHasBeenSet = true; m_vpcId = value; }
56 
60  inline void SetVpcId(Aws::String&& value) { m_vpcIdHasBeenSet = true; m_vpcId = std::move(value); }
61 
65  inline void SetVpcId(const char* value) { m_vpcIdHasBeenSet = true; m_vpcId.assign(value); }
66 
70  inline DirectoryVpcSettings& WithVpcId(const Aws::String& value) { SetVpcId(value); return *this;}
71 
75  inline DirectoryVpcSettings& WithVpcId(Aws::String&& value) { SetVpcId(std::move(value)); return *this;}
76 
80  inline DirectoryVpcSettings& WithVpcId(const char* value) { SetVpcId(value); return *this;}
81 
82 
88  inline const Aws::Vector<Aws::String>& GetSubnetIds() const{ return m_subnetIds; }
89 
95  inline bool SubnetIdsHasBeenSet() const { return m_subnetIdsHasBeenSet; }
96 
102  inline void SetSubnetIds(const Aws::Vector<Aws::String>& value) { m_subnetIdsHasBeenSet = true; m_subnetIds = value; }
103 
109  inline void SetSubnetIds(Aws::Vector<Aws::String>&& value) { m_subnetIdsHasBeenSet = true; m_subnetIds = std::move(value); }
110 
116  inline DirectoryVpcSettings& WithSubnetIds(const Aws::Vector<Aws::String>& value) { SetSubnetIds(value); return *this;}
117 
123  inline DirectoryVpcSettings& WithSubnetIds(Aws::Vector<Aws::String>&& value) { SetSubnetIds(std::move(value)); return *this;}
124 
130  inline DirectoryVpcSettings& AddSubnetIds(const Aws::String& value) { m_subnetIdsHasBeenSet = true; m_subnetIds.push_back(value); return *this; }
131 
137  inline DirectoryVpcSettings& AddSubnetIds(Aws::String&& value) { m_subnetIdsHasBeenSet = true; m_subnetIds.push_back(std::move(value)); return *this; }
138 
144  inline DirectoryVpcSettings& AddSubnetIds(const char* value) { m_subnetIdsHasBeenSet = true; m_subnetIds.push_back(value); return *this; }
145 
146  private:
147 
148  Aws::String m_vpcId;
149  bool m_vpcIdHasBeenSet;
150 
151  Aws::Vector<Aws::String> m_subnetIds;
152  bool m_subnetIdsHasBeenSet;
153  };
154 
155 } // namespace Model
156 } // namespace DirectoryService
157 } // namespace Aws
Aws::DirectoryService::Model::DirectoryVpcSettings::WithSubnetIds
DirectoryVpcSettings & WithSubnetIds(const Aws::Vector< Aws::String > &value)
Definition: DirectoryVpcSettings.h:116
Aws::DirectoryService::Model::DirectoryVpcSettings::SetVpcId
void SetVpcId(const Aws::String &value)
Definition: DirectoryVpcSettings.h:55
AWS_DIRECTORYSERVICE_API
#define AWS_DIRECTORYSERVICE_API
Definition: DirectoryService_EXPORTS.h:28
Aws::DirectoryService::Model::DirectoryVpcSettings::SetVpcId
void SetVpcId(const char *value)
Definition: DirectoryVpcSettings.h:65
Aws::DirectoryService::Model::DirectoryVpcSettings::SetSubnetIds
void SetSubnetIds(Aws::Vector< Aws::String > &&value)
Definition: DirectoryVpcSettings.h:109
DirectoryService_EXPORTS.h
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
Aws::DirectoryService::Model::DirectoryVpcSettings::GetVpcId
const Aws::String & GetVpcId() const
Definition: DirectoryVpcSettings.h:45
Aws::DirectoryService::Model::DirectoryVpcSettings::Jsonize
Aws::Utils::Json::JsonValue Jsonize() const
AWSVector.h
Aws::DirectoryService::Model::DirectoryVpcSettings::DirectoryVpcSettings
DirectoryVpcSettings(Aws::Utils::Json::JsonView jsonValue)
Aws::DirectoryService::Model::DirectoryVpcSettings::SubnetIdsHasBeenSet
bool SubnetIdsHasBeenSet() const
Definition: DirectoryVpcSettings.h:95
Aws::DirectoryService::Model::DirectoryVpcSettings::SetVpcId
void SetVpcId(Aws::String &&value)
Definition: DirectoryVpcSettings.h:60
Aws::DirectoryService::Model::DirectoryVpcSettings::WithVpcId
DirectoryVpcSettings & WithVpcId(Aws::String &&value)
Definition: DirectoryVpcSettings.h:75
Aws::DirectoryService::Model::DirectoryVpcSettings::GetSubnetIds
const Aws::Vector< Aws::String > & GetSubnetIds() const
Definition: DirectoryVpcSettings.h:88
Aws::DirectoryService::Model::DirectoryVpcSettings::operator=
DirectoryVpcSettings & operator=(Aws::Utils::Json::JsonView jsonValue)
Aws::DirectoryService::Model::DirectoryVpcSettings::SetSubnetIds
void SetSubnetIds(const Aws::Vector< Aws::String > &value)
Definition: DirectoryVpcSettings.h:102
Aws::DirectoryService::Model::DirectoryVpcSettings::AddSubnetIds
DirectoryVpcSettings & AddSubnetIds(const char *value)
Definition: DirectoryVpcSettings.h:144
Aws::DirectoryService::Model::DirectoryVpcSettings::WithVpcId
DirectoryVpcSettings & WithVpcId(const Aws::String &value)
Definition: DirectoryVpcSettings.h:70
Aws::Utils::Json::JsonView
Definition: JsonSerializer.h:222
AWSString.h
Aws::Utils::Json::JsonValue
Definition: JsonSerializer.h:30
Aws::DirectoryService::Model::DirectoryVpcSettings::DirectoryVpcSettings
DirectoryVpcSettings()
Aws
Definition: AccessManagementClient.h:15
Aws::DirectoryService::Model::DirectoryVpcSettings::AddSubnetIds
DirectoryVpcSettings & AddSubnetIds(const Aws::String &value)
Definition: DirectoryVpcSettings.h:130
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::DirectoryService::Model::DirectoryVpcSettings::VpcIdHasBeenSet
bool VpcIdHasBeenSet() const
Definition: DirectoryVpcSettings.h:50
Aws::DirectoryService::Model::DirectoryVpcSettings::AddSubnetIds
DirectoryVpcSettings & AddSubnetIds(Aws::String &&value)
Definition: DirectoryVpcSettings.h:137
Aws::DirectoryService::Model::DirectoryVpcSettings::WithVpcId
DirectoryVpcSettings & WithVpcId(const char *value)
Definition: DirectoryVpcSettings.h:80
Aws::DirectoryService::Model::DirectoryVpcSettings
Definition: DirectoryVpcSettings.h:34
Aws::DirectoryService::Model::DirectoryVpcSettings::WithSubnetIds
DirectoryVpcSettings & WithSubnetIds(Aws::Vector< Aws::String > &&value)
Definition: DirectoryVpcSettings.h:123