AWS SDK for C++

AWS SDK for C++ Version 1.11.719

Loading...
Searching...
No Matches
SetSecurityGroupsResult.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/elasticloadbalancingv2/ElasticLoadBalancingv2_EXPORTS.h>
10#include <aws/elasticloadbalancingv2/model/EnforceSecurityGroupInboundRulesOnPrivateLinkTrafficEnum.h>
11#include <aws/elasticloadbalancingv2/model/ResponseMetadata.h>
12
13#include <utility>
14
15namespace Aws {
16template <typename RESULT_TYPE>
17class AmazonWebServiceResult;
18
19namespace Utils {
20namespace Xml {
21class XmlDocument;
22} // namespace Xml
23} // namespace Utils
24namespace ElasticLoadBalancingv2 {
25namespace Model {
27 public:
28 AWS_ELASTICLOADBALANCINGV2_API SetSecurityGroupsResult() = default;
30 AWS_ELASTICLOADBALANCINGV2_API SetSecurityGroupsResult& operator=(
32
34
37 inline const Aws::Vector<Aws::String>& GetSecurityGroupIds() const { return m_securityGroupIds; }
38 template <typename SecurityGroupIdsT = Aws::Vector<Aws::String>>
39 void SetSecurityGroupIds(SecurityGroupIdsT&& value) {
40 m_securityGroupIdsHasBeenSet = true;
41 m_securityGroupIds = std::forward<SecurityGroupIdsT>(value);
42 }
43 template <typename SecurityGroupIdsT = Aws::Vector<Aws::String>>
44 SetSecurityGroupsResult& WithSecurityGroupIds(SecurityGroupIdsT&& value) {
45 SetSecurityGroupIds(std::forward<SecurityGroupIdsT>(value));
46 return *this;
47 }
48 template <typename SecurityGroupIdsT = Aws::String>
49 SetSecurityGroupsResult& AddSecurityGroupIds(SecurityGroupIdsT&& value) {
50 m_securityGroupIdsHasBeenSet = true;
51 m_securityGroupIds.emplace_back(std::forward<SecurityGroupIdsT>(value));
52 return *this;
53 }
55
57
62 return m_enforceSecurityGroupInboundRulesOnPrivateLinkTraffic;
63 }
65 m_enforceSecurityGroupInboundRulesOnPrivateLinkTrafficHasBeenSet = true;
66 m_enforceSecurityGroupInboundRulesOnPrivateLinkTraffic = value;
67 }
71 return *this;
72 }
74
76
77 inline const ResponseMetadata& GetResponseMetadata() const { return m_responseMetadata; }
78 template <typename ResponseMetadataT = ResponseMetadata>
79 void SetResponseMetadata(ResponseMetadataT&& value) {
80 m_responseMetadataHasBeenSet = true;
81 m_responseMetadata = std::forward<ResponseMetadataT>(value);
82 }
83 template <typename ResponseMetadataT = ResponseMetadata>
84 SetSecurityGroupsResult& WithResponseMetadata(ResponseMetadataT&& value) {
85 SetResponseMetadata(std::forward<ResponseMetadataT>(value));
86 return *this;
87 }
89 private:
90 Aws::Vector<Aws::String> m_securityGroupIds;
91
92 EnforceSecurityGroupInboundRulesOnPrivateLinkTrafficEnum m_enforceSecurityGroupInboundRulesOnPrivateLinkTraffic{
94
95 ResponseMetadata m_responseMetadata;
96 bool m_securityGroupIdsHasBeenSet = false;
97 bool m_enforceSecurityGroupInboundRulesOnPrivateLinkTrafficHasBeenSet = false;
98 bool m_responseMetadataHasBeenSet = false;
99};
100
101} // namespace Model
102} // namespace ElasticLoadBalancingv2
103} // namespace Aws
SetSecurityGroupsResult & WithSecurityGroupIds(SecurityGroupIdsT &&value)
AWS_ELASTICLOADBALANCINGV2_API SetSecurityGroupsResult(const Aws::AmazonWebServiceResult< Aws::Utils::Xml::XmlDocument > &result)
EnforceSecurityGroupInboundRulesOnPrivateLinkTrafficEnum GetEnforceSecurityGroupInboundRulesOnPrivateLinkTraffic() const
SetSecurityGroupsResult & WithEnforceSecurityGroupInboundRulesOnPrivateLinkTraffic(EnforceSecurityGroupInboundRulesOnPrivateLinkTrafficEnum value)
AWS_ELASTICLOADBALANCINGV2_API SetSecurityGroupsResult()=default
void SetEnforceSecurityGroupInboundRulesOnPrivateLinkTraffic(EnforceSecurityGroupInboundRulesOnPrivateLinkTrafficEnum value)
SetSecurityGroupsResult & WithResponseMetadata(ResponseMetadataT &&value)
AWS_ELASTICLOADBALANCINGV2_API SetSecurityGroupsResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Xml::XmlDocument > &result)
SetSecurityGroupsResult & AddSecurityGroupIds(SecurityGroupIdsT &&value)
const Aws::Vector< Aws::String > & GetSecurityGroupIds() const
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Xml::XmlDocument XmlDocument