AWS SDK for C++

AWS SDK for C++ Version 1.11.812

Loading...
Searching...
No Matches
VpcPropertiesPatch.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/datazone/DataZone_EXPORTS.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace DataZone {
21namespace Model {
22
30 public:
31 AWS_DATAZONE_API VpcPropertiesPatch() = default;
34 AWS_DATAZONE_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 VpcPropertiesPatch& WithVpcId(VpcIdT&& value) {
49 SetVpcId(std::forward<VpcIdT>(value));
50 return *this;
51 }
53
55
58 inline const Aws::Vector<Aws::String>& GetSubnetIds() const { return m_subnetIds; }
59 inline bool SubnetIdsHasBeenSet() const { return m_subnetIdsHasBeenSet; }
60 template <typename SubnetIdsT = Aws::Vector<Aws::String>>
61 void SetSubnetIds(SubnetIdsT&& value) {
62 m_subnetIdsHasBeenSet = true;
63 m_subnetIds = std::forward<SubnetIdsT>(value);
64 }
65 template <typename SubnetIdsT = Aws::Vector<Aws::String>>
66 VpcPropertiesPatch& WithSubnetIds(SubnetIdsT&& value) {
67 SetSubnetIds(std::forward<SubnetIdsT>(value));
68 return *this;
69 }
70 template <typename SubnetIdsT = Aws::String>
71 VpcPropertiesPatch& AddSubnetIds(SubnetIdsT&& value) {
72 m_subnetIdsHasBeenSet = true;
73 m_subnetIds.emplace_back(std::forward<SubnetIdsT>(value));
74 return *this;
75 }
77
79
82 inline const Aws::String& GetSecurityGroupId() const { return m_securityGroupId; }
83 inline bool SecurityGroupIdHasBeenSet() const { return m_securityGroupIdHasBeenSet; }
84 template <typename SecurityGroupIdT = Aws::String>
85 void SetSecurityGroupId(SecurityGroupIdT&& value) {
86 m_securityGroupIdHasBeenSet = true;
87 m_securityGroupId = std::forward<SecurityGroupIdT>(value);
88 }
89 template <typename SecurityGroupIdT = Aws::String>
90 VpcPropertiesPatch& WithSecurityGroupId(SecurityGroupIdT&& value) {
91 SetSecurityGroupId(std::forward<SecurityGroupIdT>(value));
92 return *this;
93 }
95 private:
96 Aws::String m_vpcId;
97
98 Aws::Vector<Aws::String> m_subnetIds;
99
100 Aws::String m_securityGroupId;
101 bool m_vpcIdHasBeenSet = false;
102 bool m_subnetIdsHasBeenSet = false;
103 bool m_securityGroupIdHasBeenSet = false;
104};
105
106} // namespace Model
107} // namespace DataZone
108} // namespace Aws
VpcPropertiesPatch & WithSecurityGroupId(SecurityGroupIdT &&value)
AWS_DATAZONE_API VpcPropertiesPatch()=default
void SetSecurityGroupId(SecurityGroupIdT &&value)
const Aws::String & GetSecurityGroupId() const
AWS_DATAZONE_API Aws::Utils::Json::JsonValue Jsonize() const
VpcPropertiesPatch & WithSubnetIds(SubnetIdsT &&value)
AWS_DATAZONE_API VpcPropertiesPatch(Aws::Utils::Json::JsonView jsonValue)
VpcPropertiesPatch & WithVpcId(VpcIdT &&value)
VpcPropertiesPatch & AddSubnetIds(SubnetIdsT &&value)
AWS_DATAZONE_API VpcPropertiesPatch & operator=(Aws::Utils::Json::JsonView jsonValue)
const Aws::Vector< Aws::String > & GetSubnetIds() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue