/** * 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 MediaLive { namespace Model { /** * The settings for a PULL type input.

See Also:

AWS * API Reference

*/ class InputSource { public: AWS_MEDIALIVE_API InputSource(); AWS_MEDIALIVE_API InputSource(Aws::Utils::Json::JsonView jsonValue); AWS_MEDIALIVE_API InputSource& operator=(Aws::Utils::Json::JsonView jsonValue); AWS_MEDIALIVE_API Aws::Utils::Json::JsonValue Jsonize() const; /** * The key used to extract the password from EC2 Parameter store. */ inline const Aws::String& GetPasswordParam() const{ return m_passwordParam; } /** * The key used to extract the password from EC2 Parameter store. */ inline bool PasswordParamHasBeenSet() const { return m_passwordParamHasBeenSet; } /** * The key used to extract the password from EC2 Parameter store. */ inline void SetPasswordParam(const Aws::String& value) { m_passwordParamHasBeenSet = true; m_passwordParam = value; } /** * The key used to extract the password from EC2 Parameter store. */ inline void SetPasswordParam(Aws::String&& value) { m_passwordParamHasBeenSet = true; m_passwordParam = std::move(value); } /** * The key used to extract the password from EC2 Parameter store. */ inline void SetPasswordParam(const char* value) { m_passwordParamHasBeenSet = true; m_passwordParam.assign(value); } /** * The key used to extract the password from EC2 Parameter store. */ inline InputSource& WithPasswordParam(const Aws::String& value) { SetPasswordParam(value); return *this;} /** * The key used to extract the password from EC2 Parameter store. */ inline InputSource& WithPasswordParam(Aws::String&& value) { SetPasswordParam(std::move(value)); return *this;} /** * The key used to extract the password from EC2 Parameter store. */ inline InputSource& WithPasswordParam(const char* value) { SetPasswordParam(value); return *this;} /** * This represents the customer's source URL where stream is pulled from. */ inline const Aws::String& GetUrl() const{ return m_url; } /** * This represents the customer's source URL where stream is pulled from. */ inline bool UrlHasBeenSet() const { return m_urlHasBeenSet; } /** * This represents the customer's source URL where stream is pulled from. */ inline void SetUrl(const Aws::String& value) { m_urlHasBeenSet = true; m_url = value; } /** * This represents the customer's source URL where stream is pulled from. */ inline void SetUrl(Aws::String&& value) { m_urlHasBeenSet = true; m_url = std::move(value); } /** * This represents the customer's source URL where stream is pulled from. */ inline void SetUrl(const char* value) { m_urlHasBeenSet = true; m_url.assign(value); } /** * This represents the customer's source URL where stream is pulled from. */ inline InputSource& WithUrl(const Aws::String& value) { SetUrl(value); return *this;} /** * This represents the customer's source URL where stream is pulled from. */ inline InputSource& WithUrl(Aws::String&& value) { SetUrl(std::move(value)); return *this;} /** * This represents the customer's source URL where stream is pulled from. */ inline InputSource& WithUrl(const char* value) { SetUrl(value); return *this;} /** * The username for the input source. */ inline const Aws::String& GetUsername() const{ return m_username; } /** * The username for the input source. */ inline bool UsernameHasBeenSet() const { return m_usernameHasBeenSet; } /** * The username for the input source. */ inline void SetUsername(const Aws::String& value) { m_usernameHasBeenSet = true; m_username = value; } /** * The username for the input source. */ inline void SetUsername(Aws::String&& value) { m_usernameHasBeenSet = true; m_username = std::move(value); } /** * The username for the input source. */ inline void SetUsername(const char* value) { m_usernameHasBeenSet = true; m_username.assign(value); } /** * The username for the input source. */ inline InputSource& WithUsername(const Aws::String& value) { SetUsername(value); return *this;} /** * The username for the input source. */ inline InputSource& WithUsername(Aws::String&& value) { SetUsername(std::move(value)); return *this;} /** * The username for the input source. */ inline InputSource& WithUsername(const char* value) { SetUsername(value); return *this;} private: Aws::String m_passwordParam; bool m_passwordParamHasBeenSet = false; Aws::String m_url; bool m_urlHasBeenSet = false; Aws::String m_username; bool m_usernameHasBeenSet = false; }; } // namespace Model } // namespace MediaLive } // namespace Aws