AWS SDK for C++

AWS SDK for C++ Version 1.11.719

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
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace CodeBuild {
21namespace Model {
22
29class VpcConfig {
30 public:
31 AWS_CODEBUILD_API VpcConfig() = default;
32 AWS_CODEBUILD_API VpcConfig(Aws::Utils::Json::JsonView jsonValue);
33 AWS_CODEBUILD_API VpcConfig& operator=(Aws::Utils::Json::JsonView jsonValue);
34 AWS_CODEBUILD_API Aws::Utils::Json::JsonValue Jsonize() const;
35
37
40 inline const Aws::String& GetVpcId() const { return m_vpcId; }
41 inline bool VpcIdHasBeenSet() const { return m_vpcIdHasBeenSet; }
42 template <typename VpcIdT = Aws::String>
43 void SetVpcId(VpcIdT&& value) {
44 m_vpcIdHasBeenSet = true;
45 m_vpcId = std::forward<VpcIdT>(value);
46 }
47 template <typename VpcIdT = Aws::String>
48 VpcConfig& WithVpcId(VpcIdT&& value) {
49 SetVpcId(std::forward<VpcIdT>(value));
50 return *this;
51 }
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) {
62 m_subnetsHasBeenSet = true;
63 m_subnets = std::forward<SubnetsT>(value);
64 }
65 template <typename SubnetsT = Aws::Vector<Aws::String>>
66 VpcConfig& WithSubnets(SubnetsT&& value) {
67 SetSubnets(std::forward<SubnetsT>(value));
68 return *this;
69 }
70 template <typename SubnetsT = Aws::String>
71 VpcConfig& AddSubnets(SubnetsT&& value) {
72 m_subnetsHasBeenSet = true;
73 m_subnets.emplace_back(std::forward<SubnetsT>(value));
74 return *this;
75 }
77
79
82 inline const Aws::Vector<Aws::String>& GetSecurityGroupIds() const { return m_securityGroupIds; }
83 inline bool SecurityGroupIdsHasBeenSet() const { return m_securityGroupIdsHasBeenSet; }
84 template <typename SecurityGroupIdsT = Aws::Vector<Aws::String>>
85 void SetSecurityGroupIds(SecurityGroupIdsT&& value) {
86 m_securityGroupIdsHasBeenSet = true;
87 m_securityGroupIds = std::forward<SecurityGroupIdsT>(value);
88 }
89 template <typename SecurityGroupIdsT = Aws::Vector<Aws::String>>
90 VpcConfig& WithSecurityGroupIds(SecurityGroupIdsT&& value) {
91 SetSecurityGroupIds(std::forward<SecurityGroupIdsT>(value));
92 return *this;
93 }
94 template <typename SecurityGroupIdsT = Aws::String>
95 VpcConfig& AddSecurityGroupIds(SecurityGroupIdsT&& value) {
96 m_securityGroupIdsHasBeenSet = true;
97 m_securityGroupIds.emplace_back(std::forward<SecurityGroupIdsT>(value));
98 return *this;
99 }
101 private:
102 Aws::String m_vpcId;
103
104 Aws::Vector<Aws::String> m_subnets;
105
106 Aws::Vector<Aws::String> m_securityGroupIds;
107 bool m_vpcIdHasBeenSet = false;
108 bool m_subnetsHasBeenSet = false;
109 bool m_securityGroupIdsHasBeenSet = false;
110};
111
112} // namespace Model
113} // namespace CodeBuild
114} // namespace Aws
void SetSecurityGroupIds(SecurityGroupIdsT &&value)
Definition VpcConfig.h:85
const Aws::Vector< Aws::String > & GetSubnets() const
Definition VpcConfig.h:58
VpcConfig & WithVpcId(VpcIdT &&value)
Definition VpcConfig.h:48
void SetVpcId(VpcIdT &&value)
Definition VpcConfig.h:43
VpcConfig & WithSubnets(SubnetsT &&value)
Definition VpcConfig.h:66
const Aws::Vector< Aws::String > & GetSecurityGroupIds() const
Definition VpcConfig.h:82
VpcConfig & WithSecurityGroupIds(SecurityGroupIdsT &&value)
Definition VpcConfig.h:90
bool SecurityGroupIdsHasBeenSet() const
Definition VpcConfig.h:83
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:95
AWS_CODEBUILD_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_CODEBUILD_API VpcConfig()=default
const Aws::String & GetVpcId() const
Definition VpcConfig.h:40
VpcConfig & AddSubnets(SubnetsT &&value)
Definition VpcConfig.h:71
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