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

The websocket endpoint used to connect to Amazon Chime SDK * messaging.

See Also:

AWS * API Reference

*/ class MessagingSessionEndpoint { public: AWS_CHIME_API MessagingSessionEndpoint(); AWS_CHIME_API MessagingSessionEndpoint(Aws::Utils::Json::JsonView jsonValue); AWS_CHIME_API MessagingSessionEndpoint& operator=(Aws::Utils::Json::JsonView jsonValue); AWS_CHIME_API Aws::Utils::Json::JsonValue Jsonize() const; /** *

The endpoint to which you establish a websocket connection.

*/ inline const Aws::String& GetUrl() const{ return m_url; } /** *

The endpoint to which you establish a websocket connection.

*/ inline bool UrlHasBeenSet() const { return m_urlHasBeenSet; } /** *

The endpoint to which you establish a websocket connection.

*/ inline void SetUrl(const Aws::String& value) { m_urlHasBeenSet = true; m_url = value; } /** *

The endpoint to which you establish a websocket connection.

*/ inline void SetUrl(Aws::String&& value) { m_urlHasBeenSet = true; m_url = std::move(value); } /** *

The endpoint to which you establish a websocket connection.

*/ inline void SetUrl(const char* value) { m_urlHasBeenSet = true; m_url.assign(value); } /** *

The endpoint to which you establish a websocket connection.

*/ inline MessagingSessionEndpoint& WithUrl(const Aws::String& value) { SetUrl(value); return *this;} /** *

The endpoint to which you establish a websocket connection.

*/ inline MessagingSessionEndpoint& WithUrl(Aws::String&& value) { SetUrl(std::move(value)); return *this;} /** *

The endpoint to which you establish a websocket connection.

*/ inline MessagingSessionEndpoint& WithUrl(const char* value) { SetUrl(value); return *this;} private: Aws::String m_url; bool m_urlHasBeenSet = false; }; } // namespace Model } // namespace Chime } // namespace Aws