AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetSubnetIds(const Aws::Vector<Aws::String>& value) { m_subnetIdsHasBeenSet = true; m_subnetIds = value; }
51 inline void SetSubnetIds(Aws::Vector<Aws::String>&& value) { m_subnetIdsHasBeenSet = true; m_subnetIds = std::move(value); }
52 inline VpcConfig& WithSubnetIds(const Aws::Vector<Aws::String>& value) { SetSubnetIds(value); return *this;}
53 inline VpcConfig& WithSubnetIds(Aws::Vector<Aws::String>&& value) { SetSubnetIds(std::move(value)); return *this;}
54 inline VpcConfig& AddSubnetIds(const Aws::String& value) { m_subnetIdsHasBeenSet = true; m_subnetIds.push_back(value); return *this; }
55 inline VpcConfig& AddSubnetIds(Aws::String&& value) { m_subnetIdsHasBeenSet = true; m_subnetIds.push_back(std::move(value)); return *this; }
56 inline VpcConfig& AddSubnetIds(const char* value) { m_subnetIdsHasBeenSet = true; m_subnetIds.push_back(value); return *this; }
58
60
63 inline const Aws::String& GetVpcId() const{ return m_vpcId; }
64 inline bool VpcIdHasBeenSet() const { return m_vpcIdHasBeenSet; }
65 inline void SetVpcId(const Aws::String& value) { m_vpcIdHasBeenSet = true; m_vpcId = value; }
66 inline void SetVpcId(Aws::String&& value) { m_vpcIdHasBeenSet = true; m_vpcId = std::move(value); }
67 inline void SetVpcId(const char* value) { m_vpcIdHasBeenSet = true; m_vpcId.assign(value); }
68 inline VpcConfig& WithVpcId(const Aws::String& value) { SetVpcId(value); return *this;}
69 inline VpcConfig& WithVpcId(Aws::String&& value) { SetVpcId(std::move(value)); return *this;}
70 inline VpcConfig& WithVpcId(const char* value) { SetVpcId(value); return *this;}
72
74
77 inline const Aws::Vector<SecurityGroup>& GetSecurityGroups() const{ return m_securityGroups; }
78 inline bool SecurityGroupsHasBeenSet() const { return m_securityGroupsHasBeenSet; }
79 inline void SetSecurityGroups(const Aws::Vector<SecurityGroup>& value) { m_securityGroupsHasBeenSet = true; m_securityGroups = value; }
80 inline void SetSecurityGroups(Aws::Vector<SecurityGroup>&& value) { m_securityGroupsHasBeenSet = true; m_securityGroups = std::move(value); }
81 inline VpcConfig& WithSecurityGroups(const Aws::Vector<SecurityGroup>& value) { SetSecurityGroups(value); return *this;}
82 inline VpcConfig& WithSecurityGroups(Aws::Vector<SecurityGroup>&& value) { SetSecurityGroups(std::move(value)); return *this;}
83 inline VpcConfig& AddSecurityGroups(const SecurityGroup& value) { m_securityGroupsHasBeenSet = true; m_securityGroups.push_back(value); return *this; }
84 inline VpcConfig& AddSecurityGroups(SecurityGroup&& value) { m_securityGroupsHasBeenSet = true; m_securityGroups.push_back(std::move(value)); return *this; }
86 private:
87
88 Aws::Vector<Aws::String> m_subnetIds;
89 bool m_subnetIdsHasBeenSet = false;
90
91 Aws::String m_vpcId;
92 bool m_vpcIdHasBeenSet = false;
93
94 Aws::Vector<SecurityGroup> m_securityGroups;
95 bool m_securityGroupsHasBeenSet = false;
96 };
97
98} // namespace Model
99} // namespace GuardDuty
100} // namespace Aws
void SetSecurityGroups(const Aws::Vector< SecurityGroup > &value)
Definition VpcConfig.h:79
void SetVpcId(const char *value)
Definition VpcConfig.h:67
VpcConfig & WithVpcId(const char *value)
Definition VpcConfig.h:70
VpcConfig & AddSubnetIds(Aws::String &&value)
Definition VpcConfig.h:55
VpcConfig & WithVpcId(Aws::String &&value)
Definition VpcConfig.h:69
AWS_GUARDDUTY_API VpcConfig(Aws::Utils::Json::JsonView jsonValue)
VpcConfig & AddSubnetIds(const char *value)
Definition VpcConfig.h:56
VpcConfig & WithSecurityGroups(const Aws::Vector< SecurityGroup > &value)
Definition VpcConfig.h:81
const Aws::Vector< SecurityGroup > & GetSecurityGroups() const
Definition VpcConfig.h:77
VpcConfig & WithSubnetIds(Aws::Vector< Aws::String > &&value)
Definition VpcConfig.h:53
VpcConfig & WithVpcId(const Aws::String &value)
Definition VpcConfig.h:68
void SetSubnetIds(Aws::Vector< Aws::String > &&value)
Definition VpcConfig.h:51
const Aws::String & GetVpcId() const
Definition VpcConfig.h:63
void SetVpcId(Aws::String &&value)
Definition VpcConfig.h:66
VpcConfig & AddSecurityGroups(const SecurityGroup &value)
Definition VpcConfig.h:83
VpcConfig & WithSecurityGroups(Aws::Vector< SecurityGroup > &&value)
Definition VpcConfig.h:82
AWS_GUARDDUTY_API VpcConfig & operator=(Aws::Utils::Json::JsonView jsonValue)
bool SecurityGroupsHasBeenSet() const
Definition VpcConfig.h:78
VpcConfig & AddSubnetIds(const Aws::String &value)
Definition VpcConfig.h:54
AWS_GUARDDUTY_API VpcConfig()
void SetSubnetIds(const Aws::Vector< Aws::String > &value)
Definition VpcConfig.h:50
AWS_GUARDDUTY_API Aws::Utils::Json::JsonValue Jsonize() const
VpcConfig & AddSecurityGroups(SecurityGroup &&value)
Definition VpcConfig.h:84
void SetVpcId(const Aws::String &value)
Definition VpcConfig.h:65
void SetSecurityGroups(Aws::Vector< SecurityGroup > &&value)
Definition VpcConfig.h:80
VpcConfig & WithSubnetIds(const Aws::Vector< Aws::String > &value)
Definition VpcConfig.h:52
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