AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
AwsVpcConfiguration.h
1
6#pragma once
7#include <aws/eventbridge/EventBridge_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/eventbridge/model/AssignPublicIp.h>
10#include <aws/core/utils/memory/stl/AWSString.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 EventBridge
24{
25namespace Model
26{
27
37 {
38 public:
39 AWS_EVENTBRIDGE_API AwsVpcConfiguration() = default;
40 AWS_EVENTBRIDGE_API AwsVpcConfiguration(Aws::Utils::Json::JsonView jsonValue);
42 AWS_EVENTBRIDGE_API Aws::Utils::Json::JsonValue Jsonize() const;
43
44
46
50 inline const Aws::Vector<Aws::String>& GetSubnets() const { return m_subnets; }
51 inline bool SubnetsHasBeenSet() const { return m_subnetsHasBeenSet; }
52 template<typename SubnetsT = Aws::Vector<Aws::String>>
53 void SetSubnets(SubnetsT&& value) { m_subnetsHasBeenSet = true; m_subnets = std::forward<SubnetsT>(value); }
54 template<typename SubnetsT = Aws::Vector<Aws::String>>
55 AwsVpcConfiguration& WithSubnets(SubnetsT&& value) { SetSubnets(std::forward<SubnetsT>(value)); return *this;}
56 template<typename SubnetsT = Aws::String>
57 AwsVpcConfiguration& AddSubnets(SubnetsT&& value) { m_subnetsHasBeenSet = true; m_subnets.emplace_back(std::forward<SubnetsT>(value)); return *this; }
59
61
67 inline const Aws::Vector<Aws::String>& GetSecurityGroups() const { return m_securityGroups; }
68 inline bool SecurityGroupsHasBeenSet() const { return m_securityGroupsHasBeenSet; }
69 template<typename SecurityGroupsT = Aws::Vector<Aws::String>>
70 void SetSecurityGroups(SecurityGroupsT&& value) { m_securityGroupsHasBeenSet = true; m_securityGroups = std::forward<SecurityGroupsT>(value); }
71 template<typename SecurityGroupsT = Aws::Vector<Aws::String>>
72 AwsVpcConfiguration& WithSecurityGroups(SecurityGroupsT&& value) { SetSecurityGroups(std::forward<SecurityGroupsT>(value)); return *this;}
73 template<typename SecurityGroupsT = Aws::String>
74 AwsVpcConfiguration& AddSecurityGroups(SecurityGroupsT&& value) { m_securityGroupsHasBeenSet = true; m_securityGroups.emplace_back(std::forward<SecurityGroupsT>(value)); return *this; }
76
78
83 inline AssignPublicIp GetAssignPublicIp() const { return m_assignPublicIp; }
84 inline bool AssignPublicIpHasBeenSet() const { return m_assignPublicIpHasBeenSet; }
85 inline void SetAssignPublicIp(AssignPublicIp value) { m_assignPublicIpHasBeenSet = true; m_assignPublicIp = value; }
88 private:
89
91 bool m_subnetsHasBeenSet = false;
92
93 Aws::Vector<Aws::String> m_securityGroups;
94 bool m_securityGroupsHasBeenSet = false;
95
97 bool m_assignPublicIpHasBeenSet = false;
98 };
99
100} // namespace Model
101} // namespace EventBridge
102} // namespace Aws
const Aws::Vector< Aws::String > & GetSecurityGroups() const
AwsVpcConfiguration & WithSecurityGroups(SecurityGroupsT &&value)
void SetSecurityGroups(SecurityGroupsT &&value)
AWS_EVENTBRIDGE_API AwsVpcConfiguration(Aws::Utils::Json::JsonView jsonValue)
AWS_EVENTBRIDGE_API AwsVpcConfiguration()=default
AWS_EVENTBRIDGE_API Aws::Utils::Json::JsonValue Jsonize() const
AwsVpcConfiguration & WithSubnets(SubnetsT &&value)
AwsVpcConfiguration & WithAssignPublicIp(AssignPublicIp value)
const Aws::Vector< Aws::String > & GetSubnets() const
AWS_EVENTBRIDGE_API AwsVpcConfiguration & operator=(Aws::Utils::Json::JsonView jsonValue)
AwsVpcConfiguration & AddSecurityGroups(SecurityGroupsT &&value)
AwsVpcConfiguration & AddSubnets(SubnetsT &&value)
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue