AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
AwsVpcConfiguration.h
1
6#pragma once
7#include <aws/ecs/ECS_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/ecs/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 ECS
24{
25namespace Model
26{
27
37 {
38 public:
39 AWS_ECS_API AwsVpcConfiguration();
43
44
46
51 inline const Aws::Vector<Aws::String>& GetSubnets() const{ return m_subnets; }
52 inline bool SubnetsHasBeenSet() const { return m_subnetsHasBeenSet; }
53 inline void SetSubnets(const Aws::Vector<Aws::String>& value) { m_subnetsHasBeenSet = true; m_subnets = value; }
54 inline void SetSubnets(Aws::Vector<Aws::String>&& value) { m_subnetsHasBeenSet = true; m_subnets = std::move(value); }
55 inline AwsVpcConfiguration& WithSubnets(const Aws::Vector<Aws::String>& value) { SetSubnets(value); return *this;}
56 inline AwsVpcConfiguration& WithSubnets(Aws::Vector<Aws::String>&& value) { SetSubnets(std::move(value)); return *this;}
57 inline AwsVpcConfiguration& AddSubnets(const Aws::String& value) { m_subnetsHasBeenSet = true; m_subnets.push_back(value); return *this; }
58 inline AwsVpcConfiguration& AddSubnets(Aws::String&& value) { m_subnetsHasBeenSet = true; m_subnets.push_back(std::move(value)); return *this; }
59 inline AwsVpcConfiguration& AddSubnets(const char* value) { m_subnetsHasBeenSet = true; m_subnets.push_back(value); return *this; }
61
63
70 inline const Aws::Vector<Aws::String>& GetSecurityGroups() const{ return m_securityGroups; }
71 inline bool SecurityGroupsHasBeenSet() const { return m_securityGroupsHasBeenSet; }
72 inline void SetSecurityGroups(const Aws::Vector<Aws::String>& value) { m_securityGroupsHasBeenSet = true; m_securityGroups = value; }
73 inline void SetSecurityGroups(Aws::Vector<Aws::String>&& value) { m_securityGroupsHasBeenSet = true; m_securityGroups = std::move(value); }
75 inline AwsVpcConfiguration& WithSecurityGroups(Aws::Vector<Aws::String>&& value) { SetSecurityGroups(std::move(value)); return *this;}
76 inline AwsVpcConfiguration& AddSecurityGroups(const Aws::String& value) { m_securityGroupsHasBeenSet = true; m_securityGroups.push_back(value); return *this; }
77 inline AwsVpcConfiguration& AddSecurityGroups(Aws::String&& value) { m_securityGroupsHasBeenSet = true; m_securityGroups.push_back(std::move(value)); return *this; }
78 inline AwsVpcConfiguration& AddSecurityGroups(const char* value) { m_securityGroupsHasBeenSet = true; m_securityGroups.push_back(value); return *this; }
80
82
86 inline const AssignPublicIp& GetAssignPublicIp() const{ return m_assignPublicIp; }
87 inline bool AssignPublicIpHasBeenSet() const { return m_assignPublicIpHasBeenSet; }
88 inline void SetAssignPublicIp(const AssignPublicIp& value) { m_assignPublicIpHasBeenSet = true; m_assignPublicIp = value; }
89 inline void SetAssignPublicIp(AssignPublicIp&& value) { m_assignPublicIpHasBeenSet = true; m_assignPublicIp = std::move(value); }
90 inline AwsVpcConfiguration& WithAssignPublicIp(const AssignPublicIp& value) { SetAssignPublicIp(value); return *this;}
91 inline AwsVpcConfiguration& WithAssignPublicIp(AssignPublicIp&& value) { SetAssignPublicIp(std::move(value)); return *this;}
93 private:
94
96 bool m_subnetsHasBeenSet = false;
97
98 Aws::Vector<Aws::String> m_securityGroups;
99 bool m_securityGroupsHasBeenSet = false;
100
101 AssignPublicIp m_assignPublicIp;
102 bool m_assignPublicIpHasBeenSet = false;
103 };
104
105} // namespace Model
106} // namespace ECS
107} // namespace Aws
void SetSecurityGroups(const Aws::Vector< Aws::String > &value)
AwsVpcConfiguration & WithSecurityGroups(const Aws::Vector< Aws::String > &value)
void SetSecurityGroups(Aws::Vector< Aws::String > &&value)
AwsVpcConfiguration & AddSubnets(const Aws::String &value)
AWS_ECS_API AwsVpcConfiguration & operator=(Aws::Utils::Json::JsonView jsonValue)
AwsVpcConfiguration & AddSubnets(const char *value)
AWS_ECS_API AwsVpcConfiguration(Aws::Utils::Json::JsonView jsonValue)
const Aws::Vector< Aws::String > & GetSecurityGroups() const
const Aws::Vector< Aws::String > & GetSubnets() const
const AssignPublicIp & GetAssignPublicIp() const
AWS_ECS_API Aws::Utils::Json::JsonValue Jsonize() const
AwsVpcConfiguration & WithSubnets(Aws::Vector< Aws::String > &&value)
AwsVpcConfiguration & WithAssignPublicIp(AssignPublicIp &&value)
void SetAssignPublicIp(const AssignPublicIp &value)
AwsVpcConfiguration & AddSubnets(Aws::String &&value)
AwsVpcConfiguration & WithSubnets(const Aws::Vector< Aws::String > &value)
AwsVpcConfiguration & WithSecurityGroups(Aws::Vector< Aws::String > &&value)
void SetAssignPublicIp(AssignPublicIp &&value)
AwsVpcConfiguration & AddSecurityGroups(Aws::String &&value)
AwsVpcConfiguration & AddSecurityGroups(const Aws::String &value)
void SetSubnets(Aws::Vector< Aws::String > &&value)
AwsVpcConfiguration & WithAssignPublicIp(const AssignPublicIp &value)
AwsVpcConfiguration & AddSecurityGroups(const char *value)
void SetSubnets(const Aws::Vector< Aws::String > &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue