AWS SDK for C++

AWS SDK for C++ Version 1.11.606

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() = default;
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 template<typename VpcIdT = Aws::String>
49 void SetVpcId(VpcIdT&& value) { m_vpcIdHasBeenSet = true; m_vpcId = std::forward<VpcIdT>(value); }
50 template<typename VpcIdT = Aws::String>
51 VpcConfig& WithVpcId(VpcIdT&& value) { SetVpcId(std::forward<VpcIdT>(value)); return *this;}
53
55
58 inline const Aws::Vector<Aws::String>& GetSubnets() const { return m_subnets; }
59 inline bool SubnetsHasBeenSet() const { return m_subnetsHasBeenSet; }
60 template<typename SubnetsT = Aws::Vector<Aws::String>>
61 void SetSubnets(SubnetsT&& value) { m_subnetsHasBeenSet = true; m_subnets = std::forward<SubnetsT>(value); }
62 template<typename SubnetsT = Aws::Vector<Aws::String>>
63 VpcConfig& WithSubnets(SubnetsT&& value) { SetSubnets(std::forward<SubnetsT>(value)); return *this;}
64 template<typename SubnetsT = Aws::String>
65 VpcConfig& AddSubnets(SubnetsT&& value) { m_subnetsHasBeenSet = true; m_subnets.emplace_back(std::forward<SubnetsT>(value)); return *this; }
67
69
72 inline const Aws::Vector<Aws::String>& GetSecurityGroupIds() const { return m_securityGroupIds; }
73 inline bool SecurityGroupIdsHasBeenSet() const { return m_securityGroupIdsHasBeenSet; }
74 template<typename SecurityGroupIdsT = Aws::Vector<Aws::String>>
75 void SetSecurityGroupIds(SecurityGroupIdsT&& value) { m_securityGroupIdsHasBeenSet = true; m_securityGroupIds = std::forward<SecurityGroupIdsT>(value); }
76 template<typename SecurityGroupIdsT = Aws::Vector<Aws::String>>
77 VpcConfig& WithSecurityGroupIds(SecurityGroupIdsT&& value) { SetSecurityGroupIds(std::forward<SecurityGroupIdsT>(value)); return *this;}
78 template<typename SecurityGroupIdsT = Aws::String>
79 VpcConfig& AddSecurityGroupIds(SecurityGroupIdsT&& value) { m_securityGroupIdsHasBeenSet = true; m_securityGroupIds.emplace_back(std::forward<SecurityGroupIdsT>(value)); return *this; }
81 private:
82
83 Aws::String m_vpcId;
84 bool m_vpcIdHasBeenSet = false;
85
87 bool m_subnetsHasBeenSet = false;
88
89 Aws::Vector<Aws::String> m_securityGroupIds;
90 bool m_securityGroupIdsHasBeenSet = false;
91 };
92
93} // namespace Model
94} // namespace CodeBuild
95} // namespace Aws
void SetSecurityGroupIds(SecurityGroupIdsT &&value)
Definition VpcConfig.h:75
const Aws::Vector< Aws::String > & GetSubnets() const
Definition VpcConfig.h:58
VpcConfig & WithVpcId(VpcIdT &&value)
Definition VpcConfig.h:51
void SetVpcId(VpcIdT &&value)
Definition VpcConfig.h:49
VpcConfig & WithSubnets(SubnetsT &&value)
Definition VpcConfig.h:63
const Aws::Vector< Aws::String > & GetSecurityGroupIds() const
Definition VpcConfig.h:72
VpcConfig & WithSecurityGroupIds(SecurityGroupIdsT &&value)
Definition VpcConfig.h:77
bool SecurityGroupIdsHasBeenSet() const
Definition VpcConfig.h:73
void SetSubnets(SubnetsT &&value)
Definition VpcConfig.h:61
AWS_CODEBUILD_API VpcConfig & operator=(Aws::Utils::Json::JsonView jsonValue)
VpcConfig & AddSecurityGroupIds(SecurityGroupIdsT &&value)
Definition VpcConfig.h:79
AWS_CODEBUILD_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_CODEBUILD_API VpcConfig()=default
const Aws::String & GetVpcId() const
Definition VpcConfig.h:46
VpcConfig & AddSubnets(SubnetsT &&value)
Definition VpcConfig.h:65
AWS_CODEBUILD_API VpcConfig(Aws::Utils::Json::JsonView jsonValue)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue