/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include #include namespace Aws { template class AmazonWebServiceResult; namespace Utils { namespace Xml { class XmlDocument; } // namespace Xml } // namespace Utils namespace EC2 { namespace Model { class ModifyVpcEndpointServicePermissionsResponse { public: AWS_EC2_API ModifyVpcEndpointServicePermissionsResponse(); AWS_EC2_API ModifyVpcEndpointServicePermissionsResponse(const Aws::AmazonWebServiceResult& result); AWS_EC2_API ModifyVpcEndpointServicePermissionsResponse& operator=(const Aws::AmazonWebServiceResult& result); /** *

Information about the added principals.

*/ inline const Aws::Vector& GetAddedPrincipals() const{ return m_addedPrincipals; } /** *

Information about the added principals.

*/ inline void SetAddedPrincipals(const Aws::Vector& value) { m_addedPrincipals = value; } /** *

Information about the added principals.

*/ inline void SetAddedPrincipals(Aws::Vector&& value) { m_addedPrincipals = std::move(value); } /** *

Information about the added principals.

*/ inline ModifyVpcEndpointServicePermissionsResponse& WithAddedPrincipals(const Aws::Vector& value) { SetAddedPrincipals(value); return *this;} /** *

Information about the added principals.

*/ inline ModifyVpcEndpointServicePermissionsResponse& WithAddedPrincipals(Aws::Vector&& value) { SetAddedPrincipals(std::move(value)); return *this;} /** *

Information about the added principals.

*/ inline ModifyVpcEndpointServicePermissionsResponse& AddAddedPrincipals(const AddedPrincipal& value) { m_addedPrincipals.push_back(value); return *this; } /** *

Information about the added principals.

*/ inline ModifyVpcEndpointServicePermissionsResponse& AddAddedPrincipals(AddedPrincipal&& value) { m_addedPrincipals.push_back(std::move(value)); return *this; } /** *

Returns true if the request succeeds; otherwise, it returns an * error.

*/ inline bool GetReturnValue() const{ return m_returnValue; } /** *

Returns true if the request succeeds; otherwise, it returns an * error.

*/ inline void SetReturnValue(bool value) { m_returnValue = value; } /** *

Returns true if the request succeeds; otherwise, it returns an * error.

*/ inline ModifyVpcEndpointServicePermissionsResponse& WithReturnValue(bool value) { SetReturnValue(value); return *this;} inline const ResponseMetadata& GetResponseMetadata() const{ return m_responseMetadata; } inline void SetResponseMetadata(const ResponseMetadata& value) { m_responseMetadata = value; } inline void SetResponseMetadata(ResponseMetadata&& value) { m_responseMetadata = std::move(value); } inline ModifyVpcEndpointServicePermissionsResponse& WithResponseMetadata(const ResponseMetadata& value) { SetResponseMetadata(value); return *this;} inline ModifyVpcEndpointServicePermissionsResponse& WithResponseMetadata(ResponseMetadata&& value) { SetResponseMetadata(std::move(value)); return *this;} private: Aws::Vector m_addedPrincipals; bool m_returnValue; ResponseMetadata m_responseMetadata; }; } // namespace Model } // namespace EC2 } // namespace Aws