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/codebuild/CodeBuild_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <utility>
11
12namespace Aws
13{
14namespace Utils
15{
16namespace Json
17{
18 class JsonValue;
19 class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace CodeBuild
23{
24namespace Model
25{
26
34 {
35 public:
36 AWS_CODEBUILD_API VpcConfig();
37 AWS_CODEBUILD_API VpcConfig(Aws::Utils::Json::JsonView jsonValue);
38 AWS_CODEBUILD_API VpcConfig& operator=(Aws::Utils::Json::JsonView jsonValue);
39 AWS_CODEBUILD_API Aws::Utils::Json::JsonValue Jsonize() const;
40
41
43
46 inline const Aws::String& GetVpcId() const{ return m_vpcId; }
47 inline bool VpcIdHasBeenSet() const { return m_vpcIdHasBeenSet; }
48 inline void SetVpcId(const Aws::String& value) { m_vpcIdHasBeenSet = true; m_vpcId = value; }
49 inline void SetVpcId(Aws::String&& value) { m_vpcIdHasBeenSet = true; m_vpcId = std::move(value); }
50 inline void SetVpcId(const char* value) { m_vpcIdHasBeenSet = true; m_vpcId.assign(value); }
51 inline VpcConfig& WithVpcId(const Aws::String& value) { SetVpcId(value); return *this;}
52 inline VpcConfig& WithVpcId(Aws::String&& value) { SetVpcId(std::move(value)); return *this;}
53 inline VpcConfig& WithVpcId(const char* value) { SetVpcId(value); return *this;}
55
57
60 inline const Aws::Vector<Aws::String>& GetSubnets() const{ return m_subnets; }
61 inline bool SubnetsHasBeenSet() const { return m_subnetsHasBeenSet; }
62 inline void SetSubnets(const Aws::Vector<Aws::String>& value) { m_subnetsHasBeenSet = true; m_subnets = value; }
63 inline void SetSubnets(Aws::Vector<Aws::String>&& value) { m_subnetsHasBeenSet = true; m_subnets = std::move(value); }
64 inline VpcConfig& WithSubnets(const Aws::Vector<Aws::String>& value) { SetSubnets(value); return *this;}
65 inline VpcConfig& WithSubnets(Aws::Vector<Aws::String>&& value) { SetSubnets(std::move(value)); return *this;}
66 inline VpcConfig& AddSubnets(const Aws::String& value) { m_subnetsHasBeenSet = true; m_subnets.push_back(value); return *this; }
67 inline VpcConfig& AddSubnets(Aws::String&& value) { m_subnetsHasBeenSet = true; m_subnets.push_back(std::move(value)); return *this; }
68 inline VpcConfig& AddSubnets(const char* value) { m_subnetsHasBeenSet = true; m_subnets.push_back(value); return *this; }
70
72
75 inline const Aws::Vector<Aws::String>& GetSecurityGroupIds() const{ return m_securityGroupIds; }
76 inline bool SecurityGroupIdsHasBeenSet() const { return m_securityGroupIdsHasBeenSet; }
77 inline void SetSecurityGroupIds(const Aws::Vector<Aws::String>& value) { m_securityGroupIdsHasBeenSet = true; m_securityGroupIds = value; }
78 inline void SetSecurityGroupIds(Aws::Vector<Aws::String>&& value) { m_securityGroupIdsHasBeenSet = true; m_securityGroupIds = std::move(value); }
79 inline VpcConfig& WithSecurityGroupIds(const Aws::Vector<Aws::String>& value) { SetSecurityGroupIds(value); return *this;}
80 inline VpcConfig& WithSecurityGroupIds(Aws::Vector<Aws::String>&& value) { SetSecurityGroupIds(std::move(value)); return *this;}
81 inline VpcConfig& AddSecurityGroupIds(const Aws::String& value) { m_securityGroupIdsHasBeenSet = true; m_securityGroupIds.push_back(value); return *this; }
82 inline VpcConfig& AddSecurityGroupIds(Aws::String&& value) { m_securityGroupIdsHasBeenSet = true; m_securityGroupIds.push_back(std::move(value)); return *this; }
83 inline VpcConfig& AddSecurityGroupIds(const char* value) { m_securityGroupIdsHasBeenSet = true; m_securityGroupIds.push_back(value); return *this; }
85 private:
86
87 Aws::String m_vpcId;
88 bool m_vpcIdHasBeenSet = false;
89
91 bool m_subnetsHasBeenSet = false;
92
93 Aws::Vector<Aws::String> m_securityGroupIds;
94 bool m_securityGroupIdsHasBeenSet = false;
95 };
96
97} // namespace Model
98} // namespace CodeBuild
99} // namespace Aws
const Aws::Vector< Aws::String > & GetSubnets() const
Definition VpcConfig.h:60
VpcConfig & WithSubnets(const Aws::Vector< Aws::String > &value)
Definition VpcConfig.h:64
void SetVpcId(Aws::String &&value)
Definition VpcConfig.h:49
const Aws::Vector< Aws::String > & GetSecurityGroupIds() const
Definition VpcConfig.h:75
VpcConfig & AddSubnets(const char *value)
Definition VpcConfig.h:68
void SetSecurityGroupIds(const Aws::Vector< Aws::String > &value)
Definition VpcConfig.h:77
VpcConfig & WithVpcId(const char *value)
Definition VpcConfig.h:53
VpcConfig & AddSecurityGroupIds(const Aws::String &value)
Definition VpcConfig.h:81
VpcConfig & AddSecurityGroupIds(const char *value)
Definition VpcConfig.h:83
bool SecurityGroupIdsHasBeenSet() const
Definition VpcConfig.h:76
void SetSubnets(Aws::Vector< Aws::String > &&value)
Definition VpcConfig.h:63
void SetVpcId(const char *value)
Definition VpcConfig.h:50
AWS_CODEBUILD_API VpcConfig & operator=(Aws::Utils::Json::JsonView jsonValue)
VpcConfig & AddSecurityGroupIds(Aws::String &&value)
Definition VpcConfig.h:82
void SetVpcId(const Aws::String &value)
Definition VpcConfig.h:48
VpcConfig & AddSubnets(Aws::String &&value)
Definition VpcConfig.h:67
void SetSubnets(const Aws::Vector< Aws::String > &value)
Definition VpcConfig.h:62
VpcConfig & WithVpcId(Aws::String &&value)
Definition VpcConfig.h:52
AWS_CODEBUILD_API Aws::Utils::Json::JsonValue Jsonize() const
VpcConfig & WithSecurityGroupIds(const Aws::Vector< Aws::String > &value)
Definition VpcConfig.h:79
VpcConfig & AddSubnets(const Aws::String &value)
Definition VpcConfig.h:66
const Aws::String & GetVpcId() const
Definition VpcConfig.h:46
AWS_CODEBUILD_API VpcConfig()
void SetSecurityGroupIds(Aws::Vector< Aws::String > &&value)
Definition VpcConfig.h:78
VpcConfig & WithSubnets(Aws::Vector< Aws::String > &&value)
Definition VpcConfig.h:65
AWS_CODEBUILD_API VpcConfig(Aws::Utils::Json::JsonView jsonValue)
VpcConfig & WithSecurityGroupIds(Aws::Vector< Aws::String > &&value)
Definition VpcConfig.h:80
VpcConfig & WithVpcId(const Aws::String &value)
Definition VpcConfig.h:51
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue