AWS SDK for C++

AWS SDK for C++ Version 1.11.608

Loading...
Searching...
No Matches
VpcConfig.h
1
6#pragma once
7#include <aws/guardduty/GuardDuty_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/guardduty/model/SecurityGroup.h>
11#include <utility>
12
13namespace Aws
14{
15namespace Utils
16{
17namespace Json
18{
19 class JsonValue;
20 class JsonView;
21} // namespace Json
22} // namespace Utils
23namespace GuardDuty
24{
25namespace Model
26{
27
35 {
36 public:
37 AWS_GUARDDUTY_API VpcConfig() = default;
38 AWS_GUARDDUTY_API VpcConfig(Aws::Utils::Json::JsonView jsonValue);
39 AWS_GUARDDUTY_API VpcConfig& operator=(Aws::Utils::Json::JsonView jsonValue);
40 AWS_GUARDDUTY_API Aws::Utils::Json::JsonValue Jsonize() const;
41
42
44
48 inline const Aws::Vector<Aws::String>& GetSubnetIds() const { return m_subnetIds; }
49 inline bool SubnetIdsHasBeenSet() const { return m_subnetIdsHasBeenSet; }
50 template<typename SubnetIdsT = Aws::Vector<Aws::String>>
51 void SetSubnetIds(SubnetIdsT&& value) { m_subnetIdsHasBeenSet = true; m_subnetIds = std::forward<SubnetIdsT>(value); }
52 template<typename SubnetIdsT = Aws::Vector<Aws::String>>
53 VpcConfig& WithSubnetIds(SubnetIdsT&& value) { SetSubnetIds(std::forward<SubnetIdsT>(value)); return *this;}
54 template<typename SubnetIdsT = Aws::String>
55 VpcConfig& AddSubnetIds(SubnetIdsT&& value) { m_subnetIdsHasBeenSet = true; m_subnetIds.emplace_back(std::forward<SubnetIdsT>(value)); return *this; }
57
59
62 inline const Aws::String& GetVpcId() const { return m_vpcId; }
63 inline bool VpcIdHasBeenSet() const { return m_vpcIdHasBeenSet; }
64 template<typename VpcIdT = Aws::String>
65 void SetVpcId(VpcIdT&& value) { m_vpcIdHasBeenSet = true; m_vpcId = std::forward<VpcIdT>(value); }
66 template<typename VpcIdT = Aws::String>
67 VpcConfig& WithVpcId(VpcIdT&& value) { SetVpcId(std::forward<VpcIdT>(value)); return *this;}
69
71
74 inline const Aws::Vector<SecurityGroup>& GetSecurityGroups() const { return m_securityGroups; }
75 inline bool SecurityGroupsHasBeenSet() const { return m_securityGroupsHasBeenSet; }
76 template<typename SecurityGroupsT = Aws::Vector<SecurityGroup>>
77 void SetSecurityGroups(SecurityGroupsT&& value) { m_securityGroupsHasBeenSet = true; m_securityGroups = std::forward<SecurityGroupsT>(value); }
78 template<typename SecurityGroupsT = Aws::Vector<SecurityGroup>>
79 VpcConfig& WithSecurityGroups(SecurityGroupsT&& value) { SetSecurityGroups(std::forward<SecurityGroupsT>(value)); return *this;}
80 template<typename SecurityGroupsT = SecurityGroup>
81 VpcConfig& AddSecurityGroups(SecurityGroupsT&& value) { m_securityGroupsHasBeenSet = true; m_securityGroups.emplace_back(std::forward<SecurityGroupsT>(value)); return *this; }
83 private:
84
85 Aws::Vector<Aws::String> m_subnetIds;
86 bool m_subnetIdsHasBeenSet = false;
87
88 Aws::String m_vpcId;
89 bool m_vpcIdHasBeenSet = false;
90
91 Aws::Vector<SecurityGroup> m_securityGroups;
92 bool m_securityGroupsHasBeenSet = false;
93 };
94
95} // namespace Model
96} // namespace GuardDuty
97} // namespace Aws
VpcConfig & WithSecurityGroups(SecurityGroupsT &&value)
Definition VpcConfig.h:79
AWS_GUARDDUTY_API VpcConfig(Aws::Utils::Json::JsonView jsonValue)
VpcConfig & AddSubnetIds(SubnetIdsT &&value)
Definition VpcConfig.h:55
const Aws::Vector< SecurityGroup > & GetSecurityGroups() const
Definition VpcConfig.h:74
VpcConfig & WithVpcId(VpcIdT &&value)
Definition VpcConfig.h:67
void SetSecurityGroups(SecurityGroupsT &&value)
Definition VpcConfig.h:77
void SetVpcId(VpcIdT &&value)
Definition VpcConfig.h:65
const Aws::String & GetVpcId() const
Definition VpcConfig.h:62
VpcConfig & AddSecurityGroups(SecurityGroupsT &&value)
Definition VpcConfig.h:81
AWS_GUARDDUTY_API VpcConfig()=default
VpcConfig & WithSubnetIds(SubnetIdsT &&value)
Definition VpcConfig.h:53
AWS_GUARDDUTY_API VpcConfig & operator=(Aws::Utils::Json::JsonView jsonValue)
bool SecurityGroupsHasBeenSet() const
Definition VpcConfig.h:75
AWS_GUARDDUTY_API Aws::Utils::Json::JsonValue Jsonize() const
void SetSubnetIds(SubnetIdsT &&value)
Definition VpcConfig.h:51
const Aws::Vector< Aws::String > & GetSubnetIds() const
Definition VpcConfig.h:48
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue