AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
SetSecurityGroupsResult.h
1
6#pragma once
7#include <aws/elasticloadbalancingv2/ElasticLoadBalancingv2_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/elasticloadbalancingv2/model/EnforceSecurityGroupInboundRulesOnPrivateLinkTrafficEnum.h>
10#include <aws/elasticloadbalancingv2/model/ResponseMetadata.h>
11#include <aws/core/utils/memory/stl/AWSString.h>
12#include <utility>
13
14namespace Aws
15{
16template<typename RESULT_TYPE>
17class AmazonWebServiceResult;
18
19namespace Utils
20{
21namespace Xml
22{
23 class XmlDocument;
24} // namespace Xml
25} // namespace Utils
26namespace ElasticLoadBalancingv2
27{
28namespace Model
29{
31 {
32 public:
33 AWS_ELASTICLOADBALANCINGV2_API SetSecurityGroupsResult() = default;
36
37
39
42 inline const Aws::Vector<Aws::String>& GetSecurityGroupIds() const { return m_securityGroupIds; }
43 template<typename SecurityGroupIdsT = Aws::Vector<Aws::String>>
44 void SetSecurityGroupIds(SecurityGroupIdsT&& value) { m_securityGroupIdsHasBeenSet = true; m_securityGroupIds = std::forward<SecurityGroupIdsT>(value); }
45 template<typename SecurityGroupIdsT = Aws::Vector<Aws::String>>
46 SetSecurityGroupsResult& WithSecurityGroupIds(SecurityGroupIdsT&& value) { SetSecurityGroupIds(std::forward<SecurityGroupIdsT>(value)); return *this;}
47 template<typename SecurityGroupIdsT = Aws::String>
48 SetSecurityGroupsResult& AddSecurityGroupIds(SecurityGroupIdsT&& value) { m_securityGroupIdsHasBeenSet = true; m_securityGroupIds.emplace_back(std::forward<SecurityGroupIdsT>(value)); return *this; }
50
52
56 inline EnforceSecurityGroupInboundRulesOnPrivateLinkTrafficEnum GetEnforceSecurityGroupInboundRulesOnPrivateLinkTraffic() const { return m_enforceSecurityGroupInboundRulesOnPrivateLinkTraffic; }
57 inline void SetEnforceSecurityGroupInboundRulesOnPrivateLinkTraffic(EnforceSecurityGroupInboundRulesOnPrivateLinkTrafficEnum value) { m_enforceSecurityGroupInboundRulesOnPrivateLinkTrafficHasBeenSet = true; m_enforceSecurityGroupInboundRulesOnPrivateLinkTraffic = value; }
60
62
63 inline const ResponseMetadata& GetResponseMetadata() const { return m_responseMetadata; }
64 template<typename ResponseMetadataT = ResponseMetadata>
65 void SetResponseMetadata(ResponseMetadataT&& value) { m_responseMetadataHasBeenSet = true; m_responseMetadata = std::forward<ResponseMetadataT>(value); }
66 template<typename ResponseMetadataT = ResponseMetadata>
67 SetSecurityGroupsResult& WithResponseMetadata(ResponseMetadataT&& value) { SetResponseMetadata(std::forward<ResponseMetadataT>(value)); return *this;}
69 private:
70
71 Aws::Vector<Aws::String> m_securityGroupIds;
72 bool m_securityGroupIdsHasBeenSet = false;
73
75 bool m_enforceSecurityGroupInboundRulesOnPrivateLinkTrafficHasBeenSet = false;
76
77 ResponseMetadata m_responseMetadata;
78 bool m_responseMetadataHasBeenSet = false;
79 };
80
81} // namespace Model
82} // namespace ElasticLoadBalancingv2
83} // 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