AWS SDK for C++

AWS SDK for C++ Version 1.11.778

Loading...
Searching...
No Matches
SetSecurityGroupsResult.h
1
6#pragma once
7#include <aws/core/http/HttpResponse.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/elasticloadbalancingv2/ElasticLoadBalancingv2_EXPORTS.h>
11#include <aws/elasticloadbalancingv2/model/EnforceSecurityGroupInboundRulesOnPrivateLinkTrafficEnum.h>
12#include <aws/elasticloadbalancingv2/model/ResponseMetadata.h>
13
14#include <utility>
15
16namespace Aws {
17template <typename RESULT_TYPE>
18class AmazonWebServiceResult;
19
20namespace Utils {
21namespace Xml {
22class XmlDocument;
23} // namespace Xml
24} // namespace Utils
25namespace ElasticLoadBalancingv2 {
26namespace Model {
28 public:
29 AWS_ELASTICLOADBALANCINGV2_API SetSecurityGroupsResult() = default;
31 AWS_ELASTICLOADBALANCINGV2_API SetSecurityGroupsResult& operator=(
33
35
38 inline const Aws::Vector<Aws::String>& GetSecurityGroupIds() const { return m_securityGroupIds; }
39 template <typename SecurityGroupIdsT = Aws::Vector<Aws::String>>
40 void SetSecurityGroupIds(SecurityGroupIdsT&& value) {
41 m_securityGroupIdsHasBeenSet = true;
42 m_securityGroupIds = std::forward<SecurityGroupIdsT>(value);
43 }
44 template <typename SecurityGroupIdsT = Aws::Vector<Aws::String>>
45 SetSecurityGroupsResult& WithSecurityGroupIds(SecurityGroupIdsT&& value) {
46 SetSecurityGroupIds(std::forward<SecurityGroupIdsT>(value));
47 return *this;
48 }
49 template <typename SecurityGroupIdsT = Aws::String>
50 SetSecurityGroupsResult& AddSecurityGroupIds(SecurityGroupIdsT&& value) {
51 m_securityGroupIdsHasBeenSet = true;
52 m_securityGroupIds.emplace_back(std::forward<SecurityGroupIdsT>(value));
53 return *this;
54 }
56
58
63 return m_enforceSecurityGroupInboundRulesOnPrivateLinkTraffic;
64 }
66 m_enforceSecurityGroupInboundRulesOnPrivateLinkTrafficHasBeenSet = true;
67 m_enforceSecurityGroupInboundRulesOnPrivateLinkTraffic = value;
68 }
72 return *this;
73 }
75
77
78 inline const ResponseMetadata& GetResponseMetadata() const { return m_responseMetadata; }
79 template <typename ResponseMetadataT = ResponseMetadata>
80 void SetResponseMetadata(ResponseMetadataT&& value) {
81 m_responseMetadataHasBeenSet = true;
82 m_responseMetadata = std::forward<ResponseMetadataT>(value);
83 }
84 template <typename ResponseMetadataT = ResponseMetadata>
85 SetSecurityGroupsResult& WithResponseMetadata(ResponseMetadataT&& value) {
86 SetResponseMetadata(std::forward<ResponseMetadataT>(value));
87 return *this;
88 }
90 inline Aws::Http::HttpResponseCode GetHttpResponseCode() const { return m_HttpResponseCode; }
91
92 private:
93 Aws::Vector<Aws::String> m_securityGroupIds;
94
95 EnforceSecurityGroupInboundRulesOnPrivateLinkTrafficEnum m_enforceSecurityGroupInboundRulesOnPrivateLinkTraffic{
97
98 ResponseMetadata m_responseMetadata;
99 Aws::Http::HttpResponseCode m_HttpResponseCode;
100 bool m_securityGroupIdsHasBeenSet = false;
101 bool m_enforceSecurityGroupInboundRulesOnPrivateLinkTrafficHasBeenSet = false;
102 bool m_responseMetadataHasBeenSet = false;
103};
104
105} // namespace Model
106} // namespace ElasticLoadBalancingv2
107} // 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