/** * 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 MediaLive { namespace Model { /** * Static Key Settings

See Also:

AWS * API Reference

*/ class StaticKeySettings { public: AWS_MEDIALIVE_API StaticKeySettings(); AWS_MEDIALIVE_API StaticKeySettings(Aws::Utils::Json::JsonView jsonValue); AWS_MEDIALIVE_API StaticKeySettings& operator=(Aws::Utils::Json::JsonView jsonValue); AWS_MEDIALIVE_API Aws::Utils::Json::JsonValue Jsonize() const; /** * The URL of the license server used for protecting content. */ inline const InputLocation& GetKeyProviderServer() const{ return m_keyProviderServer; } /** * The URL of the license server used for protecting content. */ inline bool KeyProviderServerHasBeenSet() const { return m_keyProviderServerHasBeenSet; } /** * The URL of the license server used for protecting content. */ inline void SetKeyProviderServer(const InputLocation& value) { m_keyProviderServerHasBeenSet = true; m_keyProviderServer = value; } /** * The URL of the license server used for protecting content. */ inline void SetKeyProviderServer(InputLocation&& value) { m_keyProviderServerHasBeenSet = true; m_keyProviderServer = std::move(value); } /** * The URL of the license server used for protecting content. */ inline StaticKeySettings& WithKeyProviderServer(const InputLocation& value) { SetKeyProviderServer(value); return *this;} /** * The URL of the license server used for protecting content. */ inline StaticKeySettings& WithKeyProviderServer(InputLocation&& value) { SetKeyProviderServer(std::move(value)); return *this;} /** * Static key value as a 32 character hexadecimal string. */ inline const Aws::String& GetStaticKeyValue() const{ return m_staticKeyValue; } /** * Static key value as a 32 character hexadecimal string. */ inline bool StaticKeyValueHasBeenSet() const { return m_staticKeyValueHasBeenSet; } /** * Static key value as a 32 character hexadecimal string. */ inline void SetStaticKeyValue(const Aws::String& value) { m_staticKeyValueHasBeenSet = true; m_staticKeyValue = value; } /** * Static key value as a 32 character hexadecimal string. */ inline void SetStaticKeyValue(Aws::String&& value) { m_staticKeyValueHasBeenSet = true; m_staticKeyValue = std::move(value); } /** * Static key value as a 32 character hexadecimal string. */ inline void SetStaticKeyValue(const char* value) { m_staticKeyValueHasBeenSet = true; m_staticKeyValue.assign(value); } /** * Static key value as a 32 character hexadecimal string. */ inline StaticKeySettings& WithStaticKeyValue(const Aws::String& value) { SetStaticKeyValue(value); return *this;} /** * Static key value as a 32 character hexadecimal string. */ inline StaticKeySettings& WithStaticKeyValue(Aws::String&& value) { SetStaticKeyValue(std::move(value)); return *this;} /** * Static key value as a 32 character hexadecimal string. */ inline StaticKeySettings& WithStaticKeyValue(const char* value) { SetStaticKeyValue(value); return *this;} private: InputLocation m_keyProviderServer; bool m_keyProviderServerHasBeenSet = false; Aws::String m_staticKeyValue; bool m_staticKeyValueHasBeenSet = false; }; } // namespace Model } // namespace MediaLive } // namespace Aws