AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
ModifyVpcEndpointServicePermissionsResponse.h
1
6#pragma once
7#include <aws/ec2/EC2_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/ec2/model/ResponseMetadata.h>
10#include <aws/ec2/model/AddedPrincipal.h>
11#include <utility>
12
13namespace Aws
14{
15template<typename RESULT_TYPE>
16class AmazonWebServiceResult;
17
18namespace Utils
19{
20namespace Xml
21{
22 class XmlDocument;
23} // namespace Xml
24} // namespace Utils
25namespace EC2
26{
27namespace Model
28{
30 {
31 public:
35
36
38
41 inline const Aws::Vector<AddedPrincipal>& GetAddedPrincipals() const { return m_addedPrincipals; }
42 template<typename AddedPrincipalsT = Aws::Vector<AddedPrincipal>>
43 void SetAddedPrincipals(AddedPrincipalsT&& value) { m_addedPrincipalsHasBeenSet = true; m_addedPrincipals = std::forward<AddedPrincipalsT>(value); }
44 template<typename AddedPrincipalsT = Aws::Vector<AddedPrincipal>>
45 ModifyVpcEndpointServicePermissionsResponse& WithAddedPrincipals(AddedPrincipalsT&& value) { SetAddedPrincipals(std::forward<AddedPrincipalsT>(value)); return *this;}
46 template<typename AddedPrincipalsT = AddedPrincipal>
47 ModifyVpcEndpointServicePermissionsResponse& AddAddedPrincipals(AddedPrincipalsT&& value) { m_addedPrincipalsHasBeenSet = true; m_addedPrincipals.emplace_back(std::forward<AddedPrincipalsT>(value)); return *this; }
49
51
55 inline bool GetReturnValue() const { return m_returnValue; }
56 inline void SetReturnValue(bool value) { m_returnValueHasBeenSet = true; m_returnValue = value; }
59
61
62 inline const ResponseMetadata& GetResponseMetadata() const { return m_responseMetadata; }
63 template<typename ResponseMetadataT = ResponseMetadata>
64 void SetResponseMetadata(ResponseMetadataT&& value) { m_responseMetadataHasBeenSet = true; m_responseMetadata = std::forward<ResponseMetadataT>(value); }
65 template<typename ResponseMetadataT = ResponseMetadata>
66 ModifyVpcEndpointServicePermissionsResponse& WithResponseMetadata(ResponseMetadataT&& value) { SetResponseMetadata(std::forward<ResponseMetadataT>(value)); return *this;}
68 private:
69
70 Aws::Vector<AddedPrincipal> m_addedPrincipals;
71 bool m_addedPrincipalsHasBeenSet = false;
72
73 bool m_returnValue{false};
74 bool m_returnValueHasBeenSet = false;
75
76 ResponseMetadata m_responseMetadata;
77 bool m_responseMetadataHasBeenSet = false;
78 };
79
80} // namespace Model
81} // namespace EC2
82} // namespace Aws
ModifyVpcEndpointServicePermissionsResponse & AddAddedPrincipals(AddedPrincipalsT &&value)
ModifyVpcEndpointServicePermissionsResponse & WithResponseMetadata(ResponseMetadataT &&value)
AWS_EC2_API ModifyVpcEndpointServicePermissionsResponse(const Aws::AmazonWebServiceResult< Aws::Utils::Xml::XmlDocument > &result)
ModifyVpcEndpointServicePermissionsResponse & WithReturnValue(bool value)
ModifyVpcEndpointServicePermissionsResponse & WithAddedPrincipals(AddedPrincipalsT &&value)
AWS_EC2_API ModifyVpcEndpointServicePermissionsResponse & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Xml::XmlDocument > &result)
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Xml::XmlDocument XmlDocument