AWS SDK for C++

AWS SDK for C++ Version 1.11.752

Loading...
Searching...
No Matches
VpcConfig.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/guardduty/GuardDuty_EXPORTS.h>
10#include <aws/guardduty/model/SecurityGroup.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Utils {
16namespace Json {
17class JsonValue;
18class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace GuardDuty {
22namespace Model {
23
30class VpcConfig {
31 public:
32 AWS_GUARDDUTY_API VpcConfig() = default;
33 AWS_GUARDDUTY_API VpcConfig(Aws::Utils::Json::JsonView jsonValue);
34 AWS_GUARDDUTY_API VpcConfig& operator=(Aws::Utils::Json::JsonView jsonValue);
35 AWS_GUARDDUTY_API Aws::Utils::Json::JsonValue Jsonize() const;
36
38
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>>
50 VpcConfig& WithSubnetIds(SubnetIdsT&& value) {
51 SetSubnetIds(std::forward<SubnetIdsT>(value));
52 return *this;
53 }
54 template <typename SubnetIdsT = Aws::String>
55 VpcConfig& AddSubnetIds(SubnetIdsT&& value) {
56 m_subnetIdsHasBeenSet = true;
57 m_subnetIds.emplace_back(std::forward<SubnetIdsT>(value));
58 return *this;
59 }
61
63
66 inline const Aws::String& GetVpcId() const { return m_vpcId; }
67 inline bool VpcIdHasBeenSet() const { return m_vpcIdHasBeenSet; }
68 template <typename VpcIdT = Aws::String>
69 void SetVpcId(VpcIdT&& value) {
70 m_vpcIdHasBeenSet = true;
71 m_vpcId = std::forward<VpcIdT>(value);
72 }
73 template <typename VpcIdT = Aws::String>
74 VpcConfig& WithVpcId(VpcIdT&& value) {
75 SetVpcId(std::forward<VpcIdT>(value));
76 return *this;
77 }
79
81
84 inline const Aws::Vector<SecurityGroup>& GetSecurityGroups() const { return m_securityGroups; }
85 inline bool SecurityGroupsHasBeenSet() const { return m_securityGroupsHasBeenSet; }
86 template <typename SecurityGroupsT = Aws::Vector<SecurityGroup>>
87 void SetSecurityGroups(SecurityGroupsT&& value) {
88 m_securityGroupsHasBeenSet = true;
89 m_securityGroups = std::forward<SecurityGroupsT>(value);
90 }
91 template <typename SecurityGroupsT = Aws::Vector<SecurityGroup>>
92 VpcConfig& WithSecurityGroups(SecurityGroupsT&& value) {
93 SetSecurityGroups(std::forward<SecurityGroupsT>(value));
94 return *this;
95 }
96 template <typename SecurityGroupsT = SecurityGroup>
97 VpcConfig& AddSecurityGroups(SecurityGroupsT&& value) {
98 m_securityGroupsHasBeenSet = true;
99 m_securityGroups.emplace_back(std::forward<SecurityGroupsT>(value));
100 return *this;
101 }
103 private:
104 Aws::Vector<Aws::String> m_subnetIds;
105
106 Aws::String m_vpcId;
107
108 Aws::Vector<SecurityGroup> m_securityGroups;
109 bool m_subnetIdsHasBeenSet = false;
110 bool m_vpcIdHasBeenSet = false;
111 bool m_securityGroupsHasBeenSet = false;
112};
113
114} // namespace Model
115} // namespace GuardDuty
116} // namespace Aws
VpcConfig & WithSecurityGroups(SecurityGroupsT &&value)
Definition VpcConfig.h:92
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:84
VpcConfig & WithVpcId(VpcIdT &&value)
Definition VpcConfig.h:74
void SetSecurityGroups(SecurityGroupsT &&value)
Definition VpcConfig.h:87
void SetVpcId(VpcIdT &&value)
Definition VpcConfig.h:69
const Aws::String & GetVpcId() const
Definition VpcConfig.h:66
VpcConfig & AddSecurityGroups(SecurityGroupsT &&value)
Definition VpcConfig.h:97
AWS_GUARDDUTY_API VpcConfig()=default
VpcConfig & WithSubnetIds(SubnetIdsT &&value)
Definition VpcConfig.h:50
AWS_GUARDDUTY_API VpcConfig & operator=(Aws::Utils::Json::JsonView jsonValue)
bool SecurityGroupsHasBeenSet() const
Definition VpcConfig.h:85
AWS_GUARDDUTY_API Aws::Utils::Json::JsonValue Jsonize() const
void SetSubnetIds(SubnetIdsT &&value)
Definition VpcConfig.h:45
const Aws::Vector< Aws::String > & GetSubnetIds() const
Definition VpcConfig.h:42
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue