AWS SDK for C++

AWS SDK for C++ Version 1.11.760

Loading...
Searching...
No Matches
DescribeIpRestrictionResult.h
1
6#pragma once
7#include <aws/core/http/HttpResponse.h>
8#include <aws/core/utils/memory/stl/AWSMap.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/quicksight/QuickSight_EXPORTS.h>
11
12#include <utility>
13
14namespace Aws {
15template <typename RESULT_TYPE>
16class AmazonWebServiceResult;
17
18namespace Utils {
19namespace Json {
20class JsonValue;
21} // namespace Json
22} // namespace Utils
23namespace QuickSight {
24namespace Model {
26 public:
27 AWS_QUICKSIGHT_API DescribeIpRestrictionResult() = default;
30
32
35 inline const Aws::String& GetAwsAccountId() const { return m_awsAccountId; }
36 template <typename AwsAccountIdT = Aws::String>
37 void SetAwsAccountId(AwsAccountIdT&& value) {
38 m_awsAccountIdHasBeenSet = true;
39 m_awsAccountId = std::forward<AwsAccountIdT>(value);
40 }
41 template <typename AwsAccountIdT = Aws::String>
43 SetAwsAccountId(std::forward<AwsAccountIdT>(value));
44 return *this;
45 }
47
49
52 inline const Aws::Map<Aws::String, Aws::String>& GetIpRestrictionRuleMap() const { return m_ipRestrictionRuleMap; }
53 template <typename IpRestrictionRuleMapT = Aws::Map<Aws::String, Aws::String>>
54 void SetIpRestrictionRuleMap(IpRestrictionRuleMapT&& value) {
55 m_ipRestrictionRuleMapHasBeenSet = true;
56 m_ipRestrictionRuleMap = std::forward<IpRestrictionRuleMapT>(value);
57 }
58 template <typename IpRestrictionRuleMapT = Aws::Map<Aws::String, Aws::String>>
59 DescribeIpRestrictionResult& WithIpRestrictionRuleMap(IpRestrictionRuleMapT&& value) {
60 SetIpRestrictionRuleMap(std::forward<IpRestrictionRuleMapT>(value));
61 return *this;
62 }
63 template <typename IpRestrictionRuleMapKeyT = Aws::String, typename IpRestrictionRuleMapValueT = Aws::String>
64 DescribeIpRestrictionResult& AddIpRestrictionRuleMap(IpRestrictionRuleMapKeyT&& key, IpRestrictionRuleMapValueT&& value) {
65 m_ipRestrictionRuleMapHasBeenSet = true;
66 m_ipRestrictionRuleMap.emplace(std::forward<IpRestrictionRuleMapKeyT>(key), std::forward<IpRestrictionRuleMapValueT>(value));
67 return *this;
68 }
70
72
75 inline const Aws::Map<Aws::String, Aws::String>& GetVpcIdRestrictionRuleMap() const { return m_vpcIdRestrictionRuleMap; }
76 template <typename VpcIdRestrictionRuleMapT = Aws::Map<Aws::String, Aws::String>>
77 void SetVpcIdRestrictionRuleMap(VpcIdRestrictionRuleMapT&& value) {
78 m_vpcIdRestrictionRuleMapHasBeenSet = true;
79 m_vpcIdRestrictionRuleMap = std::forward<VpcIdRestrictionRuleMapT>(value);
80 }
81 template <typename VpcIdRestrictionRuleMapT = Aws::Map<Aws::String, Aws::String>>
82 DescribeIpRestrictionResult& WithVpcIdRestrictionRuleMap(VpcIdRestrictionRuleMapT&& value) {
83 SetVpcIdRestrictionRuleMap(std::forward<VpcIdRestrictionRuleMapT>(value));
84 return *this;
85 }
86 template <typename VpcIdRestrictionRuleMapKeyT = Aws::String, typename VpcIdRestrictionRuleMapValueT = Aws::String>
87 DescribeIpRestrictionResult& AddVpcIdRestrictionRuleMap(VpcIdRestrictionRuleMapKeyT&& key, VpcIdRestrictionRuleMapValueT&& value) {
88 m_vpcIdRestrictionRuleMapHasBeenSet = true;
89 m_vpcIdRestrictionRuleMap.emplace(std::forward<VpcIdRestrictionRuleMapKeyT>(key), std::forward<VpcIdRestrictionRuleMapValueT>(value));
90 return *this;
91 }
93
95
98 inline const Aws::Map<Aws::String, Aws::String>& GetVpcEndpointIdRestrictionRuleMap() const { return m_vpcEndpointIdRestrictionRuleMap; }
99 template <typename VpcEndpointIdRestrictionRuleMapT = Aws::Map<Aws::String, Aws::String>>
100 void SetVpcEndpointIdRestrictionRuleMap(VpcEndpointIdRestrictionRuleMapT&& value) {
101 m_vpcEndpointIdRestrictionRuleMapHasBeenSet = true;
102 m_vpcEndpointIdRestrictionRuleMap = std::forward<VpcEndpointIdRestrictionRuleMapT>(value);
103 }
104 template <typename VpcEndpointIdRestrictionRuleMapT = Aws::Map<Aws::String, Aws::String>>
105 DescribeIpRestrictionResult& WithVpcEndpointIdRestrictionRuleMap(VpcEndpointIdRestrictionRuleMapT&& value) {
106 SetVpcEndpointIdRestrictionRuleMap(std::forward<VpcEndpointIdRestrictionRuleMapT>(value));
107 return *this;
108 }
109 template <typename VpcEndpointIdRestrictionRuleMapKeyT = Aws::String, typename VpcEndpointIdRestrictionRuleMapValueT = Aws::String>
110 DescribeIpRestrictionResult& AddVpcEndpointIdRestrictionRuleMap(VpcEndpointIdRestrictionRuleMapKeyT&& key,
111 VpcEndpointIdRestrictionRuleMapValueT&& value) {
112 m_vpcEndpointIdRestrictionRuleMapHasBeenSet = true;
113 m_vpcEndpointIdRestrictionRuleMap.emplace(std::forward<VpcEndpointIdRestrictionRuleMapKeyT>(key),
114 std::forward<VpcEndpointIdRestrictionRuleMapValueT>(value));
115 return *this;
116 }
118
120
123 inline bool GetEnabled() const { return m_enabled; }
124 inline void SetEnabled(bool value) {
125 m_enabledHasBeenSet = true;
126 m_enabled = value;
127 }
129 SetEnabled(value);
130 return *this;
131 }
133
135
136 inline const Aws::String& GetRequestId() const { return m_requestId; }
137 template <typename RequestIdT = Aws::String>
138 void SetRequestId(RequestIdT&& value) {
139 m_requestIdHasBeenSet = true;
140 m_requestId = std::forward<RequestIdT>(value);
141 }
142 template <typename RequestIdT = Aws::String>
144 SetRequestId(std::forward<RequestIdT>(value));
145 return *this;
146 }
148
150
153 inline int GetStatus() const { return m_status; }
154 inline void SetStatus(int value) {
155 m_statusHasBeenSet = true;
156 m_status = value;
157 }
159 SetStatus(value);
160 return *this;
161 }
163 inline Aws::Http::HttpResponseCode GetHttpResponseCode() const { return m_HttpResponseCode; }
164
165 private:
166 Aws::String m_awsAccountId;
167
168 Aws::Map<Aws::String, Aws::String> m_ipRestrictionRuleMap;
169
170 Aws::Map<Aws::String, Aws::String> m_vpcIdRestrictionRuleMap;
171
172 Aws::Map<Aws::String, Aws::String> m_vpcEndpointIdRestrictionRuleMap;
173
174 bool m_enabled{false};
175
176 Aws::String m_requestId;
177
178 int m_status{0};
179 Aws::Http::HttpResponseCode m_HttpResponseCode;
180 bool m_awsAccountIdHasBeenSet = false;
181 bool m_ipRestrictionRuleMapHasBeenSet = false;
182 bool m_vpcIdRestrictionRuleMapHasBeenSet = false;
183 bool m_vpcEndpointIdRestrictionRuleMapHasBeenSet = false;
184 bool m_enabledHasBeenSet = false;
185 bool m_requestIdHasBeenSet = false;
186 bool m_statusHasBeenSet = false;
187};
188
189} // namespace Model
190} // namespace QuickSight
191} // namespace Aws
DescribeIpRestrictionResult & AddVpcEndpointIdRestrictionRuleMap(VpcEndpointIdRestrictionRuleMapKeyT &&key, VpcEndpointIdRestrictionRuleMapValueT &&value)
DescribeIpRestrictionResult & AddIpRestrictionRuleMap(IpRestrictionRuleMapKeyT &&key, IpRestrictionRuleMapValueT &&value)
DescribeIpRestrictionResult & WithVpcIdRestrictionRuleMap(VpcIdRestrictionRuleMapT &&value)
DescribeIpRestrictionResult & WithAwsAccountId(AwsAccountIdT &&value)
DescribeIpRestrictionResult & WithVpcEndpointIdRestrictionRuleMap(VpcEndpointIdRestrictionRuleMapT &&value)
DescribeIpRestrictionResult & WithIpRestrictionRuleMap(IpRestrictionRuleMapT &&value)
void SetVpcIdRestrictionRuleMap(VpcIdRestrictionRuleMapT &&value)
DescribeIpRestrictionResult & WithRequestId(RequestIdT &&value)
AWS_QUICKSIGHT_API DescribeIpRestrictionResult()=default
AWS_QUICKSIGHT_API DescribeIpRestrictionResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
const Aws::Map< Aws::String, Aws::String > & GetVpcIdRestrictionRuleMap() const
void SetVpcEndpointIdRestrictionRuleMap(VpcEndpointIdRestrictionRuleMapT &&value)
AWS_QUICKSIGHT_API DescribeIpRestrictionResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
const Aws::Map< Aws::String, Aws::String > & GetVpcEndpointIdRestrictionRuleMap() const
const Aws::Map< Aws::String, Aws::String > & GetIpRestrictionRuleMap() const
DescribeIpRestrictionResult & AddVpcIdRestrictionRuleMap(VpcIdRestrictionRuleMapKeyT &&key, VpcIdRestrictionRuleMapValueT &&value)
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue