/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include namespace Aws { namespace Utils { namespace Xml { class XmlNode; } // namespace Xml } // namespace Utils namespace CloudSearch { namespace Model { /** *

The endpoint to which service requests can be submitted.

See * Also:

AWS * API Reference

*/ class ServiceEndpoint { public: AWS_CLOUDSEARCH_API ServiceEndpoint(); AWS_CLOUDSEARCH_API ServiceEndpoint(const Aws::Utils::Xml::XmlNode& xmlNode); AWS_CLOUDSEARCH_API ServiceEndpoint& operator=(const Aws::Utils::Xml::XmlNode& xmlNode); AWS_CLOUDSEARCH_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const; AWS_CLOUDSEARCH_API void OutputToStream(Aws::OStream& oStream, const char* location) const; inline const Aws::String& GetEndpoint() const{ return m_endpoint; } inline bool EndpointHasBeenSet() const { return m_endpointHasBeenSet; } inline void SetEndpoint(const Aws::String& value) { m_endpointHasBeenSet = true; m_endpoint = value; } inline void SetEndpoint(Aws::String&& value) { m_endpointHasBeenSet = true; m_endpoint = std::move(value); } inline void SetEndpoint(const char* value) { m_endpointHasBeenSet = true; m_endpoint.assign(value); } inline ServiceEndpoint& WithEndpoint(const Aws::String& value) { SetEndpoint(value); return *this;} inline ServiceEndpoint& WithEndpoint(Aws::String&& value) { SetEndpoint(std::move(value)); return *this;} inline ServiceEndpoint& WithEndpoint(const char* value) { SetEndpoint(value); return *this;} private: Aws::String m_endpoint; bool m_endpointHasBeenSet = false; }; } // namespace Model } // namespace CloudSearch } // namespace Aws