AWS SDK for C++

AWS SDK for C++ Version 1.11.746

Loading...
Searching...
No Matches
UpdateIpRestrictionRequest.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSMap.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/quicksight/QuickSightRequest.h>
10#include <aws/quicksight/QuickSight_EXPORTS.h>
11
12#include <utility>
13
14namespace Aws {
15namespace QuickSight {
16namespace Model {
17
21 public:
22 AWS_QUICKSIGHT_API UpdateIpRestrictionRequest() = default;
23
24 // Service request name is the Operation name which will send this request out,
25 // each operation should has unique request name, so that we can get operation's name from this request.
26 // Note: this is not true for response, multiple operations may have the same response name,
27 // so we can not get operation's name from response.
28 inline virtual const char* GetServiceRequestName() const override { return "UpdateIpRestriction"; }
29
30 AWS_QUICKSIGHT_API Aws::String SerializePayload() const override;
31
33
36 inline const Aws::String& GetAwsAccountId() const { return m_awsAccountId; }
37 inline bool AwsAccountIdHasBeenSet() const { return m_awsAccountIdHasBeenSet; }
38 template <typename AwsAccountIdT = Aws::String>
39 void SetAwsAccountId(AwsAccountIdT&& value) {
40 m_awsAccountIdHasBeenSet = true;
41 m_awsAccountId = std::forward<AwsAccountIdT>(value);
42 }
43 template <typename AwsAccountIdT = Aws::String>
45 SetAwsAccountId(std::forward<AwsAccountIdT>(value));
46 return *this;
47 }
49
51
55 inline const Aws::Map<Aws::String, Aws::String>& GetIpRestrictionRuleMap() const { return m_ipRestrictionRuleMap; }
56 inline bool IpRestrictionRuleMapHasBeenSet() const { return m_ipRestrictionRuleMapHasBeenSet; }
57 template <typename IpRestrictionRuleMapT = Aws::Map<Aws::String, Aws::String>>
58 void SetIpRestrictionRuleMap(IpRestrictionRuleMapT&& value) {
59 m_ipRestrictionRuleMapHasBeenSet = true;
60 m_ipRestrictionRuleMap = std::forward<IpRestrictionRuleMapT>(value);
61 }
62 template <typename IpRestrictionRuleMapT = Aws::Map<Aws::String, Aws::String>>
63 UpdateIpRestrictionRequest& WithIpRestrictionRuleMap(IpRestrictionRuleMapT&& value) {
64 SetIpRestrictionRuleMap(std::forward<IpRestrictionRuleMapT>(value));
65 return *this;
66 }
67 template <typename IpRestrictionRuleMapKeyT = Aws::String, typename IpRestrictionRuleMapValueT = Aws::String>
68 UpdateIpRestrictionRequest& AddIpRestrictionRuleMap(IpRestrictionRuleMapKeyT&& key, IpRestrictionRuleMapValueT&& value) {
69 m_ipRestrictionRuleMapHasBeenSet = true;
70 m_ipRestrictionRuleMap.emplace(std::forward<IpRestrictionRuleMapKeyT>(key), std::forward<IpRestrictionRuleMapValueT>(value));
71 return *this;
72 }
74
76
81 inline const Aws::Map<Aws::String, Aws::String>& GetVpcIdRestrictionRuleMap() const { return m_vpcIdRestrictionRuleMap; }
82 inline bool VpcIdRestrictionRuleMapHasBeenSet() const { return m_vpcIdRestrictionRuleMapHasBeenSet; }
83 template <typename VpcIdRestrictionRuleMapT = Aws::Map<Aws::String, Aws::String>>
84 void SetVpcIdRestrictionRuleMap(VpcIdRestrictionRuleMapT&& value) {
85 m_vpcIdRestrictionRuleMapHasBeenSet = true;
86 m_vpcIdRestrictionRuleMap = std::forward<VpcIdRestrictionRuleMapT>(value);
87 }
88 template <typename VpcIdRestrictionRuleMapT = Aws::Map<Aws::String, Aws::String>>
89 UpdateIpRestrictionRequest& WithVpcIdRestrictionRuleMap(VpcIdRestrictionRuleMapT&& value) {
90 SetVpcIdRestrictionRuleMap(std::forward<VpcIdRestrictionRuleMapT>(value));
91 return *this;
92 }
93 template <typename VpcIdRestrictionRuleMapKeyT = Aws::String, typename VpcIdRestrictionRuleMapValueT = Aws::String>
94 UpdateIpRestrictionRequest& AddVpcIdRestrictionRuleMap(VpcIdRestrictionRuleMapKeyT&& key, VpcIdRestrictionRuleMapValueT&& value) {
95 m_vpcIdRestrictionRuleMapHasBeenSet = true;
96 m_vpcIdRestrictionRuleMap.emplace(std::forward<VpcIdRestrictionRuleMapKeyT>(key), std::forward<VpcIdRestrictionRuleMapValueT>(value));
97 return *this;
98 }
100
102
106 inline const Aws::Map<Aws::String, Aws::String>& GetVpcEndpointIdRestrictionRuleMap() const { return m_vpcEndpointIdRestrictionRuleMap; }
107 inline bool VpcEndpointIdRestrictionRuleMapHasBeenSet() const { return m_vpcEndpointIdRestrictionRuleMapHasBeenSet; }
108 template <typename VpcEndpointIdRestrictionRuleMapT = Aws::Map<Aws::String, Aws::String>>
109 void SetVpcEndpointIdRestrictionRuleMap(VpcEndpointIdRestrictionRuleMapT&& value) {
110 m_vpcEndpointIdRestrictionRuleMapHasBeenSet = true;
111 m_vpcEndpointIdRestrictionRuleMap = std::forward<VpcEndpointIdRestrictionRuleMapT>(value);
112 }
113 template <typename VpcEndpointIdRestrictionRuleMapT = Aws::Map<Aws::String, Aws::String>>
114 UpdateIpRestrictionRequest& WithVpcEndpointIdRestrictionRuleMap(VpcEndpointIdRestrictionRuleMapT&& value) {
115 SetVpcEndpointIdRestrictionRuleMap(std::forward<VpcEndpointIdRestrictionRuleMapT>(value));
116 return *this;
117 }
118 template <typename VpcEndpointIdRestrictionRuleMapKeyT = Aws::String, typename VpcEndpointIdRestrictionRuleMapValueT = Aws::String>
119 UpdateIpRestrictionRequest& AddVpcEndpointIdRestrictionRuleMap(VpcEndpointIdRestrictionRuleMapKeyT&& key,
120 VpcEndpointIdRestrictionRuleMapValueT&& value) {
121 m_vpcEndpointIdRestrictionRuleMapHasBeenSet = true;
122 m_vpcEndpointIdRestrictionRuleMap.emplace(std::forward<VpcEndpointIdRestrictionRuleMapKeyT>(key),
123 std::forward<VpcEndpointIdRestrictionRuleMapValueT>(value));
124 return *this;
125 }
127
129
132 inline bool GetEnabled() const { return m_enabled; }
133 inline bool EnabledHasBeenSet() const { return m_enabledHasBeenSet; }
134 inline void SetEnabled(bool value) {
135 m_enabledHasBeenSet = true;
136 m_enabled = value;
137 }
139 SetEnabled(value);
140 return *this;
141 }
143 private:
144 Aws::String m_awsAccountId;
145
146 Aws::Map<Aws::String, Aws::String> m_ipRestrictionRuleMap;
147
148 Aws::Map<Aws::String, Aws::String> m_vpcIdRestrictionRuleMap;
149
150 Aws::Map<Aws::String, Aws::String> m_vpcEndpointIdRestrictionRuleMap;
151
152 bool m_enabled{false};
153 bool m_awsAccountIdHasBeenSet = false;
154 bool m_ipRestrictionRuleMapHasBeenSet = false;
155 bool m_vpcIdRestrictionRuleMapHasBeenSet = false;
156 bool m_vpcEndpointIdRestrictionRuleMapHasBeenSet = false;
157 bool m_enabledHasBeenSet = false;
158};
159
160} // namespace Model
161} // namespace QuickSight
162} // namespace Aws
const Aws::Map< Aws::String, Aws::String > & GetVpcEndpointIdRestrictionRuleMap() const
UpdateIpRestrictionRequest & WithIpRestrictionRuleMap(IpRestrictionRuleMapT &&value)
UpdateIpRestrictionRequest & WithAwsAccountId(AwsAccountIdT &&value)
UpdateIpRestrictionRequest & WithVpcEndpointIdRestrictionRuleMap(VpcEndpointIdRestrictionRuleMapT &&value)
void SetVpcEndpointIdRestrictionRuleMap(VpcEndpointIdRestrictionRuleMapT &&value)
virtual const char * GetServiceRequestName() const override
UpdateIpRestrictionRequest & AddVpcEndpointIdRestrictionRuleMap(VpcEndpointIdRestrictionRuleMapKeyT &&key, VpcEndpointIdRestrictionRuleMapValueT &&value)
UpdateIpRestrictionRequest & AddIpRestrictionRuleMap(IpRestrictionRuleMapKeyT &&key, IpRestrictionRuleMapValueT &&value)
UpdateIpRestrictionRequest & AddVpcIdRestrictionRuleMap(VpcIdRestrictionRuleMapKeyT &&key, VpcIdRestrictionRuleMapValueT &&value)
const Aws::Map< Aws::String, Aws::String > & GetIpRestrictionRuleMap() const
AWS_QUICKSIGHT_API Aws::String SerializePayload() const override
AWS_QUICKSIGHT_API UpdateIpRestrictionRequest()=default
const Aws::Map< Aws::String, Aws::String > & GetVpcIdRestrictionRuleMap() const
UpdateIpRestrictionRequest & WithVpcIdRestrictionRuleMap(VpcIdRestrictionRuleMapT &&value)
void SetVpcIdRestrictionRuleMap(VpcIdRestrictionRuleMapT &&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