AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
AwsCodeBuildProjectVpcConfig.h
1
6#pragma once
7#include <aws/securityhub/SecurityHub_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 SecurityHub
23{
24namespace Model
25{
26
34 {
35 public:
36 AWS_SECURITYHUB_API AwsCodeBuildProjectVpcConfig();
39 AWS_SECURITYHUB_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 AwsCodeBuildProjectVpcConfig& WithVpcId(const Aws::String& value) { SetVpcId(value); return *this;}
52 inline AwsCodeBuildProjectVpcConfig& WithVpcId(Aws::String&& value) { SetVpcId(std::move(value)); return *this;}
53 inline AwsCodeBuildProjectVpcConfig& 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 AwsCodeBuildProjectVpcConfig& WithSubnets(const Aws::Vector<Aws::String>& value) { SetSubnets(value); return *this;}
65 inline AwsCodeBuildProjectVpcConfig& WithSubnets(Aws::Vector<Aws::String>&& value) { SetSubnets(std::move(value)); return *this;}
66 inline AwsCodeBuildProjectVpcConfig& AddSubnets(const Aws::String& value) { m_subnetsHasBeenSet = true; m_subnets.push_back(value); return *this; }
67 inline AwsCodeBuildProjectVpcConfig& AddSubnets(Aws::String&& value) { m_subnetsHasBeenSet = true; m_subnets.push_back(std::move(value)); return *this; }
68 inline AwsCodeBuildProjectVpcConfig& 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); }
81 inline AwsCodeBuildProjectVpcConfig& AddSecurityGroupIds(const Aws::String& value) { m_securityGroupIdsHasBeenSet = true; m_securityGroupIds.push_back(value); return *this; }
82 inline AwsCodeBuildProjectVpcConfig& AddSecurityGroupIds(Aws::String&& value) { m_securityGroupIdsHasBeenSet = true; m_securityGroupIds.push_back(std::move(value)); return *this; }
83 inline AwsCodeBuildProjectVpcConfig& 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 SecurityHub
99} // namespace Aws
AWS_SECURITYHUB_API AwsCodeBuildProjectVpcConfig(Aws::Utils::Json::JsonView jsonValue)
AwsCodeBuildProjectVpcConfig & AddSecurityGroupIds(const Aws::String &value)
AwsCodeBuildProjectVpcConfig & AddSubnets(Aws::String &&value)
void SetSubnets(const Aws::Vector< Aws::String > &value)
AwsCodeBuildProjectVpcConfig & WithSubnets(Aws::Vector< Aws::String > &&value)
AWS_SECURITYHUB_API Aws::Utils::Json::JsonValue Jsonize() const
const Aws::Vector< Aws::String > & GetSecurityGroupIds() const
AwsCodeBuildProjectVpcConfig & WithSecurityGroupIds(Aws::Vector< Aws::String > &&value)
AwsCodeBuildProjectVpcConfig & WithVpcId(const Aws::String &value)
AwsCodeBuildProjectVpcConfig & AddSecurityGroupIds(Aws::String &&value)
AwsCodeBuildProjectVpcConfig & WithSubnets(const Aws::Vector< Aws::String > &value)
AwsCodeBuildProjectVpcConfig & AddSecurityGroupIds(const char *value)
AwsCodeBuildProjectVpcConfig & AddSubnets(const char *value)
AwsCodeBuildProjectVpcConfig & WithSecurityGroupIds(const Aws::Vector< Aws::String > &value)
AWS_SECURITYHUB_API AwsCodeBuildProjectVpcConfig & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetSecurityGroupIds(const Aws::Vector< Aws::String > &value)
AwsCodeBuildProjectVpcConfig & WithVpcId(Aws::String &&value)
AwsCodeBuildProjectVpcConfig & AddSubnets(const Aws::String &value)
AwsCodeBuildProjectVpcConfig & WithVpcId(const char *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