AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
ModifyVpcEndpointServicePermissionsRequest.h
1
6#pragma once
7#include <aws/ec2/EC2_EXPORTS.h>
8#include <aws/ec2/EC2Request.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <utility>
12
13namespace Aws
14{
15namespace EC2
16{
17namespace Model
18{
19
23 {
24 public:
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 "ModifyVpcEndpointServicePermissions"; }
32
33 AWS_EC2_API Aws::String SerializePayload() const override;
34
35 protected:
36 AWS_EC2_API void DumpBodyToUrl(Aws::Http::URI& uri ) const override;
37
38 public:
39
41
47 inline bool GetDryRun() const { return m_dryRun; }
48 inline bool DryRunHasBeenSet() const { return m_dryRunHasBeenSet; }
49 inline void SetDryRun(bool value) { m_dryRunHasBeenSet = true; m_dryRun = value; }
50 inline ModifyVpcEndpointServicePermissionsRequest& WithDryRun(bool value) { SetDryRun(value); return *this;}
52
54
57 inline const Aws::String& GetServiceId() const { return m_serviceId; }
58 inline bool ServiceIdHasBeenSet() const { return m_serviceIdHasBeenSet; }
59 template<typename ServiceIdT = Aws::String>
60 void SetServiceId(ServiceIdT&& value) { m_serviceIdHasBeenSet = true; m_serviceId = std::forward<ServiceIdT>(value); }
61 template<typename ServiceIdT = Aws::String>
62 ModifyVpcEndpointServicePermissionsRequest& WithServiceId(ServiceIdT&& value) { SetServiceId(std::forward<ServiceIdT>(value)); return *this;}
64
66
71 inline const Aws::Vector<Aws::String>& GetAddAllowedPrincipals() const { return m_addAllowedPrincipals; }
72 inline bool AddAllowedPrincipalsHasBeenSet() const { return m_addAllowedPrincipalsHasBeenSet; }
73 template<typename AddAllowedPrincipalsT = Aws::Vector<Aws::String>>
74 void SetAddAllowedPrincipals(AddAllowedPrincipalsT&& value) { m_addAllowedPrincipalsHasBeenSet = true; m_addAllowedPrincipals = std::forward<AddAllowedPrincipalsT>(value); }
75 template<typename AddAllowedPrincipalsT = Aws::Vector<Aws::String>>
76 ModifyVpcEndpointServicePermissionsRequest& WithAddAllowedPrincipals(AddAllowedPrincipalsT&& value) { SetAddAllowedPrincipals(std::forward<AddAllowedPrincipalsT>(value)); return *this;}
77 template<typename AddAllowedPrincipalsT = Aws::String>
78 ModifyVpcEndpointServicePermissionsRequest& AddAddAllowedPrincipals(AddAllowedPrincipalsT&& value) { m_addAllowedPrincipalsHasBeenSet = true; m_addAllowedPrincipals.emplace_back(std::forward<AddAllowedPrincipalsT>(value)); return *this; }
80
82
86 inline const Aws::Vector<Aws::String>& GetRemoveAllowedPrincipals() const { return m_removeAllowedPrincipals; }
87 inline bool RemoveAllowedPrincipalsHasBeenSet() const { return m_removeAllowedPrincipalsHasBeenSet; }
88 template<typename RemoveAllowedPrincipalsT = Aws::Vector<Aws::String>>
89 void SetRemoveAllowedPrincipals(RemoveAllowedPrincipalsT&& value) { m_removeAllowedPrincipalsHasBeenSet = true; m_removeAllowedPrincipals = std::forward<RemoveAllowedPrincipalsT>(value); }
90 template<typename RemoveAllowedPrincipalsT = Aws::Vector<Aws::String>>
91 ModifyVpcEndpointServicePermissionsRequest& WithRemoveAllowedPrincipals(RemoveAllowedPrincipalsT&& value) { SetRemoveAllowedPrincipals(std::forward<RemoveAllowedPrincipalsT>(value)); return *this;}
92 template<typename RemoveAllowedPrincipalsT = Aws::String>
93 ModifyVpcEndpointServicePermissionsRequest& AddRemoveAllowedPrincipals(RemoveAllowedPrincipalsT&& value) { m_removeAllowedPrincipalsHasBeenSet = true; m_removeAllowedPrincipals.emplace_back(std::forward<RemoveAllowedPrincipalsT>(value)); return *this; }
95 private:
96
97 bool m_dryRun{false};
98 bool m_dryRunHasBeenSet = false;
99
100 Aws::String m_serviceId;
101 bool m_serviceIdHasBeenSet = false;
102
103 Aws::Vector<Aws::String> m_addAllowedPrincipals;
104 bool m_addAllowedPrincipalsHasBeenSet = false;
105
106 Aws::Vector<Aws::String> m_removeAllowedPrincipals;
107 bool m_removeAllowedPrincipalsHasBeenSet = false;
108 };
109
110} // namespace Model
111} // namespace EC2
112} // namespace Aws
ModifyVpcEndpointServicePermissionsRequest & WithAddAllowedPrincipals(AddAllowedPrincipalsT &&value)
AWS_EC2_API Aws::String SerializePayload() const override
ModifyVpcEndpointServicePermissionsRequest & AddAddAllowedPrincipals(AddAllowedPrincipalsT &&value)
ModifyVpcEndpointServicePermissionsRequest & WithServiceId(ServiceIdT &&value)
AWS_EC2_API void DumpBodyToUrl(Aws::Http::URI &uri) const override
ModifyVpcEndpointServicePermissionsRequest & WithRemoveAllowedPrincipals(RemoveAllowedPrincipalsT &&value)
ModifyVpcEndpointServicePermissionsRequest & AddRemoveAllowedPrincipals(RemoveAllowedPrincipalsT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector