AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
UpdateIpRestrictionRequest.h
1
6#pragma once
7#include <aws/quicksight/QuickSight_EXPORTS.h>
8#include <aws/quicksight/QuickSightRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/memory/stl/AWSMap.h>
11#include <utility>
12
13namespace Aws
14{
15namespace QuickSight
16{
17namespace Model
18{
19
23 {
24 public:
25 AWS_QUICKSIGHT_API UpdateIpRestrictionRequest() = default;
26
27 // Service request name is the Operation name which will send this request out,
28 // each operation should has unique request name, so that we can get operation's name from this request.
29 // Note: this is not true for response, multiple operations may have the same response name,
30 // so we can not get operation's name from response.
31 inline virtual const char* GetServiceRequestName() const override { return "UpdateIpRestriction"; }
32
33 AWS_QUICKSIGHT_API Aws::String SerializePayload() const override;
34
35
37
40 inline const Aws::String& GetAwsAccountId() const { return m_awsAccountId; }
41 inline bool AwsAccountIdHasBeenSet() const { return m_awsAccountIdHasBeenSet; }
42 template<typename AwsAccountIdT = Aws::String>
43 void SetAwsAccountId(AwsAccountIdT&& value) { m_awsAccountIdHasBeenSet = true; m_awsAccountId = std::forward<AwsAccountIdT>(value); }
44 template<typename AwsAccountIdT = Aws::String>
45 UpdateIpRestrictionRequest& WithAwsAccountId(AwsAccountIdT&& value) { SetAwsAccountId(std::forward<AwsAccountIdT>(value)); return *this;}
47
49
53 inline const Aws::Map<Aws::String, Aws::String>& GetIpRestrictionRuleMap() const { return m_ipRestrictionRuleMap; }
54 inline bool IpRestrictionRuleMapHasBeenSet() const { return m_ipRestrictionRuleMapHasBeenSet; }
55 template<typename IpRestrictionRuleMapT = Aws::Map<Aws::String, Aws::String>>
56 void SetIpRestrictionRuleMap(IpRestrictionRuleMapT&& value) { m_ipRestrictionRuleMapHasBeenSet = true; m_ipRestrictionRuleMap = std::forward<IpRestrictionRuleMapT>(value); }
57 template<typename IpRestrictionRuleMapT = Aws::Map<Aws::String, Aws::String>>
58 UpdateIpRestrictionRequest& WithIpRestrictionRuleMap(IpRestrictionRuleMapT&& value) { SetIpRestrictionRuleMap(std::forward<IpRestrictionRuleMapT>(value)); return *this;}
59 template<typename IpRestrictionRuleMapKeyT = Aws::String, typename IpRestrictionRuleMapValueT = Aws::String>
60 UpdateIpRestrictionRequest& AddIpRestrictionRuleMap(IpRestrictionRuleMapKeyT&& key, IpRestrictionRuleMapValueT&& value) {
61 m_ipRestrictionRuleMapHasBeenSet = true; m_ipRestrictionRuleMap.emplace(std::forward<IpRestrictionRuleMapKeyT>(key), std::forward<IpRestrictionRuleMapValueT>(value)); return *this;
62 }
64
66
71 inline const Aws::Map<Aws::String, Aws::String>& GetVpcIdRestrictionRuleMap() const { return m_vpcIdRestrictionRuleMap; }
72 inline bool VpcIdRestrictionRuleMapHasBeenSet() const { return m_vpcIdRestrictionRuleMapHasBeenSet; }
73 template<typename VpcIdRestrictionRuleMapT = Aws::Map<Aws::String, Aws::String>>
74 void SetVpcIdRestrictionRuleMap(VpcIdRestrictionRuleMapT&& value) { m_vpcIdRestrictionRuleMapHasBeenSet = true; m_vpcIdRestrictionRuleMap = std::forward<VpcIdRestrictionRuleMapT>(value); }
75 template<typename VpcIdRestrictionRuleMapT = Aws::Map<Aws::String, Aws::String>>
76 UpdateIpRestrictionRequest& WithVpcIdRestrictionRuleMap(VpcIdRestrictionRuleMapT&& value) { SetVpcIdRestrictionRuleMap(std::forward<VpcIdRestrictionRuleMapT>(value)); return *this;}
77 template<typename VpcIdRestrictionRuleMapKeyT = Aws::String, typename VpcIdRestrictionRuleMapValueT = Aws::String>
78 UpdateIpRestrictionRequest& AddVpcIdRestrictionRuleMap(VpcIdRestrictionRuleMapKeyT&& key, VpcIdRestrictionRuleMapValueT&& value) {
79 m_vpcIdRestrictionRuleMapHasBeenSet = true; m_vpcIdRestrictionRuleMap.emplace(std::forward<VpcIdRestrictionRuleMapKeyT>(key), std::forward<VpcIdRestrictionRuleMapValueT>(value)); return *this;
80 }
82
84
88 inline const Aws::Map<Aws::String, Aws::String>& GetVpcEndpointIdRestrictionRuleMap() const { return m_vpcEndpointIdRestrictionRuleMap; }
89 inline bool VpcEndpointIdRestrictionRuleMapHasBeenSet() const { return m_vpcEndpointIdRestrictionRuleMapHasBeenSet; }
90 template<typename VpcEndpointIdRestrictionRuleMapT = Aws::Map<Aws::String, Aws::String>>
91 void SetVpcEndpointIdRestrictionRuleMap(VpcEndpointIdRestrictionRuleMapT&& value) { m_vpcEndpointIdRestrictionRuleMapHasBeenSet = true; m_vpcEndpointIdRestrictionRuleMap = std::forward<VpcEndpointIdRestrictionRuleMapT>(value); }
92 template<typename VpcEndpointIdRestrictionRuleMapT = Aws::Map<Aws::String, Aws::String>>
93 UpdateIpRestrictionRequest& WithVpcEndpointIdRestrictionRuleMap(VpcEndpointIdRestrictionRuleMapT&& value) { SetVpcEndpointIdRestrictionRuleMap(std::forward<VpcEndpointIdRestrictionRuleMapT>(value)); return *this;}
94 template<typename VpcEndpointIdRestrictionRuleMapKeyT = Aws::String, typename VpcEndpointIdRestrictionRuleMapValueT = Aws::String>
95 UpdateIpRestrictionRequest& AddVpcEndpointIdRestrictionRuleMap(VpcEndpointIdRestrictionRuleMapKeyT&& key, VpcEndpointIdRestrictionRuleMapValueT&& value) {
96 m_vpcEndpointIdRestrictionRuleMapHasBeenSet = true; m_vpcEndpointIdRestrictionRuleMap.emplace(std::forward<VpcEndpointIdRestrictionRuleMapKeyT>(key), std::forward<VpcEndpointIdRestrictionRuleMapValueT>(value)); return *this;
97 }
99
101
104 inline bool GetEnabled() const { return m_enabled; }
105 inline bool EnabledHasBeenSet() const { return m_enabledHasBeenSet; }
106 inline void SetEnabled(bool value) { m_enabledHasBeenSet = true; m_enabled = value; }
107 inline UpdateIpRestrictionRequest& WithEnabled(bool value) { SetEnabled(value); return *this;}
109 private:
110
111 Aws::String m_awsAccountId;
112 bool m_awsAccountIdHasBeenSet = false;
113
114 Aws::Map<Aws::String, Aws::String> m_ipRestrictionRuleMap;
115 bool m_ipRestrictionRuleMapHasBeenSet = false;
116
117 Aws::Map<Aws::String, Aws::String> m_vpcIdRestrictionRuleMap;
118 bool m_vpcIdRestrictionRuleMapHasBeenSet = false;
119
120 Aws::Map<Aws::String, Aws::String> m_vpcEndpointIdRestrictionRuleMap;
121 bool m_vpcEndpointIdRestrictionRuleMapHasBeenSet = false;
122
123 bool m_enabled{false};
124 bool m_enabledHasBeenSet = false;
125 };
126
127} // namespace Model
128} // namespace QuickSight
129} // 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