AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
DescribeIpRestrictionResult.h
1
6#pragma once
7#include <aws/quicksight/QuickSight_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSMap.h>
10#include <utility>
11
12namespace Aws
13{
14template<typename RESULT_TYPE>
15class AmazonWebServiceResult;
16
17namespace Utils
18{
19namespace Json
20{
21 class JsonValue;
22} // namespace Json
23} // namespace Utils
24namespace QuickSight
25{
26namespace Model
27{
29 {
30 public:
31 AWS_QUICKSIGHT_API DescribeIpRestrictionResult() = default;
34
35
37
40 inline const Aws::String& GetAwsAccountId() const { return m_awsAccountId; }
41 template<typename AwsAccountIdT = Aws::String>
42 void SetAwsAccountId(AwsAccountIdT&& value) { m_awsAccountIdHasBeenSet = true; m_awsAccountId = std::forward<AwsAccountIdT>(value); }
43 template<typename AwsAccountIdT = Aws::String>
44 DescribeIpRestrictionResult& WithAwsAccountId(AwsAccountIdT&& value) { SetAwsAccountId(std::forward<AwsAccountIdT>(value)); return *this;}
46
48
51 inline const Aws::Map<Aws::String, Aws::String>& GetIpRestrictionRuleMap() const { return m_ipRestrictionRuleMap; }
52 template<typename IpRestrictionRuleMapT = Aws::Map<Aws::String, Aws::String>>
53 void SetIpRestrictionRuleMap(IpRestrictionRuleMapT&& value) { m_ipRestrictionRuleMapHasBeenSet = true; m_ipRestrictionRuleMap = std::forward<IpRestrictionRuleMapT>(value); }
54 template<typename IpRestrictionRuleMapT = Aws::Map<Aws::String, Aws::String>>
55 DescribeIpRestrictionResult& WithIpRestrictionRuleMap(IpRestrictionRuleMapT&& value) { SetIpRestrictionRuleMap(std::forward<IpRestrictionRuleMapT>(value)); return *this;}
56 template<typename IpRestrictionRuleMapKeyT = Aws::String, typename IpRestrictionRuleMapValueT = Aws::String>
57 DescribeIpRestrictionResult& AddIpRestrictionRuleMap(IpRestrictionRuleMapKeyT&& key, IpRestrictionRuleMapValueT&& value) {
58 m_ipRestrictionRuleMapHasBeenSet = true; m_ipRestrictionRuleMap.emplace(std::forward<IpRestrictionRuleMapKeyT>(key), std::forward<IpRestrictionRuleMapValueT>(value)); return *this;
59 }
61
63
66 inline const Aws::Map<Aws::String, Aws::String>& GetVpcIdRestrictionRuleMap() const { return m_vpcIdRestrictionRuleMap; }
67 template<typename VpcIdRestrictionRuleMapT = Aws::Map<Aws::String, Aws::String>>
68 void SetVpcIdRestrictionRuleMap(VpcIdRestrictionRuleMapT&& value) { m_vpcIdRestrictionRuleMapHasBeenSet = true; m_vpcIdRestrictionRuleMap = std::forward<VpcIdRestrictionRuleMapT>(value); }
69 template<typename VpcIdRestrictionRuleMapT = Aws::Map<Aws::String, Aws::String>>
70 DescribeIpRestrictionResult& WithVpcIdRestrictionRuleMap(VpcIdRestrictionRuleMapT&& value) { SetVpcIdRestrictionRuleMap(std::forward<VpcIdRestrictionRuleMapT>(value)); return *this;}
71 template<typename VpcIdRestrictionRuleMapKeyT = Aws::String, typename VpcIdRestrictionRuleMapValueT = Aws::String>
72 DescribeIpRestrictionResult& AddVpcIdRestrictionRuleMap(VpcIdRestrictionRuleMapKeyT&& key, VpcIdRestrictionRuleMapValueT&& value) {
73 m_vpcIdRestrictionRuleMapHasBeenSet = true; m_vpcIdRestrictionRuleMap.emplace(std::forward<VpcIdRestrictionRuleMapKeyT>(key), std::forward<VpcIdRestrictionRuleMapValueT>(value)); return *this;
74 }
76
78
81 inline const Aws::Map<Aws::String, Aws::String>& GetVpcEndpointIdRestrictionRuleMap() const { return m_vpcEndpointIdRestrictionRuleMap; }
82 template<typename VpcEndpointIdRestrictionRuleMapT = Aws::Map<Aws::String, Aws::String>>
83 void SetVpcEndpointIdRestrictionRuleMap(VpcEndpointIdRestrictionRuleMapT&& value) { m_vpcEndpointIdRestrictionRuleMapHasBeenSet = true; m_vpcEndpointIdRestrictionRuleMap = std::forward<VpcEndpointIdRestrictionRuleMapT>(value); }
84 template<typename VpcEndpointIdRestrictionRuleMapT = Aws::Map<Aws::String, Aws::String>>
85 DescribeIpRestrictionResult& WithVpcEndpointIdRestrictionRuleMap(VpcEndpointIdRestrictionRuleMapT&& value) { SetVpcEndpointIdRestrictionRuleMap(std::forward<VpcEndpointIdRestrictionRuleMapT>(value)); return *this;}
86 template<typename VpcEndpointIdRestrictionRuleMapKeyT = Aws::String, typename VpcEndpointIdRestrictionRuleMapValueT = Aws::String>
87 DescribeIpRestrictionResult& AddVpcEndpointIdRestrictionRuleMap(VpcEndpointIdRestrictionRuleMapKeyT&& key, VpcEndpointIdRestrictionRuleMapValueT&& value) {
88 m_vpcEndpointIdRestrictionRuleMapHasBeenSet = true; m_vpcEndpointIdRestrictionRuleMap.emplace(std::forward<VpcEndpointIdRestrictionRuleMapKeyT>(key), std::forward<VpcEndpointIdRestrictionRuleMapValueT>(value)); return *this;
89 }
91
93
96 inline bool GetEnabled() const { return m_enabled; }
97 inline void SetEnabled(bool value) { m_enabledHasBeenSet = true; m_enabled = value; }
98 inline DescribeIpRestrictionResult& WithEnabled(bool value) { SetEnabled(value); return *this;}
100
102
103 inline const Aws::String& GetRequestId() const { return m_requestId; }
104 template<typename RequestIdT = Aws::String>
105 void SetRequestId(RequestIdT&& value) { m_requestIdHasBeenSet = true; m_requestId = std::forward<RequestIdT>(value); }
106 template<typename RequestIdT = Aws::String>
107 DescribeIpRestrictionResult& WithRequestId(RequestIdT&& value) { SetRequestId(std::forward<RequestIdT>(value)); return *this;}
109
111
114 inline int GetStatus() const { return m_status; }
115 inline void SetStatus(int value) { m_statusHasBeenSet = true; m_status = value; }
116 inline DescribeIpRestrictionResult& WithStatus(int value) { SetStatus(value); return *this;}
118 private:
119
120 Aws::String m_awsAccountId;
121 bool m_awsAccountIdHasBeenSet = false;
122
123 Aws::Map<Aws::String, Aws::String> m_ipRestrictionRuleMap;
124 bool m_ipRestrictionRuleMapHasBeenSet = false;
125
126 Aws::Map<Aws::String, Aws::String> m_vpcIdRestrictionRuleMap;
127 bool m_vpcIdRestrictionRuleMapHasBeenSet = false;
128
129 Aws::Map<Aws::String, Aws::String> m_vpcEndpointIdRestrictionRuleMap;
130 bool m_vpcEndpointIdRestrictionRuleMapHasBeenSet = false;
131
132 bool m_enabled{false};
133 bool m_enabledHasBeenSet = false;
134
135 Aws::String m_requestId;
136 bool m_requestIdHasBeenSet = false;
137
138 int m_status{0};
139 bool m_statusHasBeenSet = false;
140 };
141
142} // namespace Model
143} // namespace QuickSight
144} // 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)
DescribeIpRestrictionResult & WithEnabled(bool value)
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