/** * 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 Json { class JsonValue; class JsonView; } // namespace Json } // namespace Utils namespace KinesisVideoSignalingChannels { namespace Model { /** *

A structure for the ICE server connection data.

See Also:

AWS * API Reference

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

An array of URIs, in the form specified in the I-D.petithuguenin-behave-turn-uris * spec. These URIs provide the different addresses and/or protocols that can be * used to reach the TURN server.

*/ inline const Aws::Vector& GetUris() const{ return m_uris; } /** *

An array of URIs, in the form specified in the I-D.petithuguenin-behave-turn-uris * spec. These URIs provide the different addresses and/or protocols that can be * used to reach the TURN server.

*/ inline bool UrisHasBeenSet() const { return m_urisHasBeenSet; } /** *

An array of URIs, in the form specified in the I-D.petithuguenin-behave-turn-uris * spec. These URIs provide the different addresses and/or protocols that can be * used to reach the TURN server.

*/ inline void SetUris(const Aws::Vector& value) { m_urisHasBeenSet = true; m_uris = value; } /** *

An array of URIs, in the form specified in the I-D.petithuguenin-behave-turn-uris * spec. These URIs provide the different addresses and/or protocols that can be * used to reach the TURN server.

*/ inline void SetUris(Aws::Vector&& value) { m_urisHasBeenSet = true; m_uris = std::move(value); } /** *

An array of URIs, in the form specified in the I-D.petithuguenin-behave-turn-uris * spec. These URIs provide the different addresses and/or protocols that can be * used to reach the TURN server.

*/ inline IceServer& WithUris(const Aws::Vector& value) { SetUris(value); return *this;} /** *

An array of URIs, in the form specified in the I-D.petithuguenin-behave-turn-uris * spec. These URIs provide the different addresses and/or protocols that can be * used to reach the TURN server.

*/ inline IceServer& WithUris(Aws::Vector&& value) { SetUris(std::move(value)); return *this;} /** *

An array of URIs, in the form specified in the I-D.petithuguenin-behave-turn-uris * spec. These URIs provide the different addresses and/or protocols that can be * used to reach the TURN server.

*/ inline IceServer& AddUris(const Aws::String& value) { m_urisHasBeenSet = true; m_uris.push_back(value); return *this; } /** *

An array of URIs, in the form specified in the I-D.petithuguenin-behave-turn-uris * spec. These URIs provide the different addresses and/or protocols that can be * used to reach the TURN server.

*/ inline IceServer& AddUris(Aws::String&& value) { m_urisHasBeenSet = true; m_uris.push_back(std::move(value)); return *this; } /** *

An array of URIs, in the form specified in the I-D.petithuguenin-behave-turn-uris * spec. These URIs provide the different addresses and/or protocols that can be * used to reach the TURN server.

*/ inline IceServer& AddUris(const char* value) { m_urisHasBeenSet = true; m_uris.push_back(value); return *this; } /** *

A username to login to the ICE server.

*/ inline const Aws::String& GetUsername() const{ return m_username; } /** *

A username to login to the ICE server.

*/ inline bool UsernameHasBeenSet() const { return m_usernameHasBeenSet; } /** *

A username to login to the ICE server.

*/ inline void SetUsername(const Aws::String& value) { m_usernameHasBeenSet = true; m_username = value; } /** *

A username to login to the ICE server.

*/ inline void SetUsername(Aws::String&& value) { m_usernameHasBeenSet = true; m_username = std::move(value); } /** *

A username to login to the ICE server.

*/ inline void SetUsername(const char* value) { m_usernameHasBeenSet = true; m_username.assign(value); } /** *

A username to login to the ICE server.

*/ inline IceServer& WithUsername(const Aws::String& value) { SetUsername(value); return *this;} /** *

A username to login to the ICE server.

*/ inline IceServer& WithUsername(Aws::String&& value) { SetUsername(std::move(value)); return *this;} /** *

A username to login to the ICE server.

*/ inline IceServer& WithUsername(const char* value) { SetUsername(value); return *this;} /** *

A password to login to the ICE server.

*/ inline const Aws::String& GetPassword() const{ return m_password; } /** *

A password to login to the ICE server.

*/ inline bool PasswordHasBeenSet() const { return m_passwordHasBeenSet; } /** *

A password to login to the ICE server.

*/ inline void SetPassword(const Aws::String& value) { m_passwordHasBeenSet = true; m_password = value; } /** *

A password to login to the ICE server.

*/ inline void SetPassword(Aws::String&& value) { m_passwordHasBeenSet = true; m_password = std::move(value); } /** *

A password to login to the ICE server.

*/ inline void SetPassword(const char* value) { m_passwordHasBeenSet = true; m_password.assign(value); } /** *

A password to login to the ICE server.

*/ inline IceServer& WithPassword(const Aws::String& value) { SetPassword(value); return *this;} /** *

A password to login to the ICE server.

*/ inline IceServer& WithPassword(Aws::String&& value) { SetPassword(std::move(value)); return *this;} /** *

A password to login to the ICE server.

*/ inline IceServer& WithPassword(const char* value) { SetPassword(value); return *this;} /** *

The period of time, in seconds, during which the username and password are * valid.

*/ inline int GetTtl() const{ return m_ttl; } /** *

The period of time, in seconds, during which the username and password are * valid.

*/ inline bool TtlHasBeenSet() const { return m_ttlHasBeenSet; } /** *

The period of time, in seconds, during which the username and password are * valid.

*/ inline void SetTtl(int value) { m_ttlHasBeenSet = true; m_ttl = value; } /** *

The period of time, in seconds, during which the username and password are * valid.

*/ inline IceServer& WithTtl(int value) { SetTtl(value); return *this;} private: Aws::Vector m_uris; bool m_urisHasBeenSet = false; Aws::String m_username; bool m_usernameHasBeenSet = false; Aws::String m_password; bool m_passwordHasBeenSet = false; int m_ttl; bool m_ttlHasBeenSet = false; }; } // namespace Model } // namespace KinesisVideoSignalingChannels } // namespace Aws