AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
AuthorizeSecurityGroupIngressResponse.h
1
6#pragma once
7#include <aws/ec2/EC2_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/ec2/model/ResponseMetadata.h>
10#include <aws/ec2/model/SecurityGroupRule.h>
11#include <utility>
12
13namespace Aws
14{
15template<typename RESULT_TYPE>
16class AmazonWebServiceResult;
17
18namespace Utils
19{
20namespace Xml
21{
22 class XmlDocument;
23} // namespace Xml
24} // namespace Utils
25namespace EC2
26{
27namespace Model
28{
30 {
31 public:
35
36
38
42 inline bool GetReturn() const { return m_return; }
43 inline void SetReturn(bool value) { m_returnHasBeenSet = true; m_return = value; }
44 inline AuthorizeSecurityGroupIngressResponse& WithReturn(bool value) { SetReturn(value); return *this;}
46
48
52 inline const Aws::Vector<SecurityGroupRule>& GetSecurityGroupRules() const { return m_securityGroupRules; }
53 template<typename SecurityGroupRulesT = Aws::Vector<SecurityGroupRule>>
54 void SetSecurityGroupRules(SecurityGroupRulesT&& value) { m_securityGroupRulesHasBeenSet = true; m_securityGroupRules = std::forward<SecurityGroupRulesT>(value); }
55 template<typename SecurityGroupRulesT = Aws::Vector<SecurityGroupRule>>
56 AuthorizeSecurityGroupIngressResponse& WithSecurityGroupRules(SecurityGroupRulesT&& value) { SetSecurityGroupRules(std::forward<SecurityGroupRulesT>(value)); return *this;}
57 template<typename SecurityGroupRulesT = SecurityGroupRule>
58 AuthorizeSecurityGroupIngressResponse& AddSecurityGroupRules(SecurityGroupRulesT&& value) { m_securityGroupRulesHasBeenSet = true; m_securityGroupRules.emplace_back(std::forward<SecurityGroupRulesT>(value)); return *this; }
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 AuthorizeSecurityGroupIngressResponse& WithResponseMetadata(ResponseMetadataT&& value) { SetResponseMetadata(std::forward<ResponseMetadataT>(value)); return *this;}
69 private:
70
71 bool m_return{false};
72 bool m_returnHasBeenSet = false;
73
74 Aws::Vector<SecurityGroupRule> m_securityGroupRules;
75 bool m_securityGroupRulesHasBeenSet = false;
76
77 ResponseMetadata m_responseMetadata;
78 bool m_responseMetadataHasBeenSet = false;
79 };
80
81} // namespace Model
82} // namespace EC2
83} // namespace Aws
AWS_EC2_API AuthorizeSecurityGroupIngressResponse & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Xml::XmlDocument > &result)
AWS_EC2_API AuthorizeSecurityGroupIngressResponse(const Aws::AmazonWebServiceResult< Aws::Utils::Xml::XmlDocument > &result)
AuthorizeSecurityGroupIngressResponse & WithResponseMetadata(ResponseMetadataT &&value)
AuthorizeSecurityGroupIngressResponse & WithSecurityGroupRules(SecurityGroupRulesT &&value)
const Aws::Vector< SecurityGroupRule > & GetSecurityGroupRules() const
AuthorizeSecurityGroupIngressResponse & WithReturn(bool value)
AuthorizeSecurityGroupIngressResponse & AddSecurityGroupRules(SecurityGroupRulesT &&value)
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Xml::XmlDocument XmlDocument