/** * 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 AppStream { namespace Model { /** *

The streaming protocol you want your stack to prefer. This can be UDP or TCP. * Currently, UDP is only supported in the Windows native client.

See * Also:

AWS * API Reference

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

The preferred protocol that you want to use while streaming your * application.

*/ inline const PreferredProtocol& GetPreferredProtocol() const{ return m_preferredProtocol; } /** *

The preferred protocol that you want to use while streaming your * application.

*/ inline bool PreferredProtocolHasBeenSet() const { return m_preferredProtocolHasBeenSet; } /** *

The preferred protocol that you want to use while streaming your * application.

*/ inline void SetPreferredProtocol(const PreferredProtocol& value) { m_preferredProtocolHasBeenSet = true; m_preferredProtocol = value; } /** *

The preferred protocol that you want to use while streaming your * application.

*/ inline void SetPreferredProtocol(PreferredProtocol&& value) { m_preferredProtocolHasBeenSet = true; m_preferredProtocol = std::move(value); } /** *

The preferred protocol that you want to use while streaming your * application.

*/ inline StreamingExperienceSettings& WithPreferredProtocol(const PreferredProtocol& value) { SetPreferredProtocol(value); return *this;} /** *

The preferred protocol that you want to use while streaming your * application.

*/ inline StreamingExperienceSettings& WithPreferredProtocol(PreferredProtocol&& value) { SetPreferredProtocol(std::move(value)); return *this;} private: PreferredProtocol m_preferredProtocol; bool m_preferredProtocolHasBeenSet = false; }; } // namespace Model } // namespace AppStream } // namespace Aws