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

The launch profile initialization script is used when start streaming session * runs.

See Also:

AWS * API Reference

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

An IAM role attached to a Studio Component that gives the studio component * access to Amazon Web Services resources at anytime while the instance is * running.

*/ inline const Aws::String& GetRuntimeRoleArn() const{ return m_runtimeRoleArn; } /** *

An IAM role attached to a Studio Component that gives the studio component * access to Amazon Web Services resources at anytime while the instance is * running.

*/ inline bool RuntimeRoleArnHasBeenSet() const { return m_runtimeRoleArnHasBeenSet; } /** *

An IAM role attached to a Studio Component that gives the studio component * access to Amazon Web Services resources at anytime while the instance is * running.

*/ inline void SetRuntimeRoleArn(const Aws::String& value) { m_runtimeRoleArnHasBeenSet = true; m_runtimeRoleArn = value; } /** *

An IAM role attached to a Studio Component that gives the studio component * access to Amazon Web Services resources at anytime while the instance is * running.

*/ inline void SetRuntimeRoleArn(Aws::String&& value) { m_runtimeRoleArnHasBeenSet = true; m_runtimeRoleArn = std::move(value); } /** *

An IAM role attached to a Studio Component that gives the studio component * access to Amazon Web Services resources at anytime while the instance is * running.

*/ inline void SetRuntimeRoleArn(const char* value) { m_runtimeRoleArnHasBeenSet = true; m_runtimeRoleArn.assign(value); } /** *

An IAM role attached to a Studio Component that gives the studio component * access to Amazon Web Services resources at anytime while the instance is * running.

*/ inline LaunchProfileInitializationScript& WithRuntimeRoleArn(const Aws::String& value) { SetRuntimeRoleArn(value); return *this;} /** *

An IAM role attached to a Studio Component that gives the studio component * access to Amazon Web Services resources at anytime while the instance is * running.

*/ inline LaunchProfileInitializationScript& WithRuntimeRoleArn(Aws::String&& value) { SetRuntimeRoleArn(std::move(value)); return *this;} /** *

An IAM role attached to a Studio Component that gives the studio component * access to Amazon Web Services resources at anytime while the instance is * running.

*/ inline LaunchProfileInitializationScript& WithRuntimeRoleArn(const char* value) { SetRuntimeRoleArn(value); return *this;} /** *

The initialization script.

*/ inline const Aws::String& GetScript() const{ return m_script; } /** *

The initialization script.

*/ inline bool ScriptHasBeenSet() const { return m_scriptHasBeenSet; } /** *

The initialization script.

*/ inline void SetScript(const Aws::String& value) { m_scriptHasBeenSet = true; m_script = value; } /** *

The initialization script.

*/ inline void SetScript(Aws::String&& value) { m_scriptHasBeenSet = true; m_script = std::move(value); } /** *

The initialization script.

*/ inline void SetScript(const char* value) { m_scriptHasBeenSet = true; m_script.assign(value); } /** *

The initialization script.

*/ inline LaunchProfileInitializationScript& WithScript(const Aws::String& value) { SetScript(value); return *this;} /** *

The initialization script.

*/ inline LaunchProfileInitializationScript& WithScript(Aws::String&& value) { SetScript(std::move(value)); return *this;} /** *

The initialization script.

*/ inline LaunchProfileInitializationScript& WithScript(const char* value) { SetScript(value); return *this;} /** *

An IAM role attached to Studio Component when the system initialization * script runs which give the studio component access to Amazon Web Services * resources when the system initialization script runs.

*/ inline const Aws::String& GetSecureInitializationRoleArn() const{ return m_secureInitializationRoleArn; } /** *

An IAM role attached to Studio Component when the system initialization * script runs which give the studio component access to Amazon Web Services * resources when the system initialization script runs.

*/ inline bool SecureInitializationRoleArnHasBeenSet() const { return m_secureInitializationRoleArnHasBeenSet; } /** *

An IAM role attached to Studio Component when the system initialization * script runs which give the studio component access to Amazon Web Services * resources when the system initialization script runs.

*/ inline void SetSecureInitializationRoleArn(const Aws::String& value) { m_secureInitializationRoleArnHasBeenSet = true; m_secureInitializationRoleArn = value; } /** *

An IAM role attached to Studio Component when the system initialization * script runs which give the studio component access to Amazon Web Services * resources when the system initialization script runs.

*/ inline void SetSecureInitializationRoleArn(Aws::String&& value) { m_secureInitializationRoleArnHasBeenSet = true; m_secureInitializationRoleArn = std::move(value); } /** *

An IAM role attached to Studio Component when the system initialization * script runs which give the studio component access to Amazon Web Services * resources when the system initialization script runs.

*/ inline void SetSecureInitializationRoleArn(const char* value) { m_secureInitializationRoleArnHasBeenSet = true; m_secureInitializationRoleArn.assign(value); } /** *

An IAM role attached to Studio Component when the system initialization * script runs which give the studio component access to Amazon Web Services * resources when the system initialization script runs.

*/ inline LaunchProfileInitializationScript& WithSecureInitializationRoleArn(const Aws::String& value) { SetSecureInitializationRoleArn(value); return *this;} /** *

An IAM role attached to Studio Component when the system initialization * script runs which give the studio component access to Amazon Web Services * resources when the system initialization script runs.

*/ inline LaunchProfileInitializationScript& WithSecureInitializationRoleArn(Aws::String&& value) { SetSecureInitializationRoleArn(std::move(value)); return *this;} /** *

An IAM role attached to Studio Component when the system initialization * script runs which give the studio component access to Amazon Web Services * resources when the system initialization script runs.

*/ inline LaunchProfileInitializationScript& WithSecureInitializationRoleArn(const char* value) { SetSecureInitializationRoleArn(value); return *this;} /** *

The unique identifier for a studio component resource.

*/ inline const Aws::String& GetStudioComponentId() const{ return m_studioComponentId; } /** *

The unique identifier for a studio component resource.

*/ inline bool StudioComponentIdHasBeenSet() const { return m_studioComponentIdHasBeenSet; } /** *

The unique identifier for a studio component resource.

*/ inline void SetStudioComponentId(const Aws::String& value) { m_studioComponentIdHasBeenSet = true; m_studioComponentId = value; } /** *

The unique identifier for a studio component resource.

*/ inline void SetStudioComponentId(Aws::String&& value) { m_studioComponentIdHasBeenSet = true; m_studioComponentId = std::move(value); } /** *

The unique identifier for a studio component resource.

*/ inline void SetStudioComponentId(const char* value) { m_studioComponentIdHasBeenSet = true; m_studioComponentId.assign(value); } /** *

The unique identifier for a studio component resource.

*/ inline LaunchProfileInitializationScript& WithStudioComponentId(const Aws::String& value) { SetStudioComponentId(value); return *this;} /** *

The unique identifier for a studio component resource.

*/ inline LaunchProfileInitializationScript& WithStudioComponentId(Aws::String&& value) { SetStudioComponentId(std::move(value)); return *this;} /** *

The unique identifier for a studio component resource.

*/ inline LaunchProfileInitializationScript& WithStudioComponentId(const char* value) { SetStudioComponentId(value); return *this;} /** *

The name for the studio component.

*/ inline const Aws::String& GetStudioComponentName() const{ return m_studioComponentName; } /** *

The name for the studio component.

*/ inline bool StudioComponentNameHasBeenSet() const { return m_studioComponentNameHasBeenSet; } /** *

The name for the studio component.

*/ inline void SetStudioComponentName(const Aws::String& value) { m_studioComponentNameHasBeenSet = true; m_studioComponentName = value; } /** *

The name for the studio component.

*/ inline void SetStudioComponentName(Aws::String&& value) { m_studioComponentNameHasBeenSet = true; m_studioComponentName = std::move(value); } /** *

The name for the studio component.

*/ inline void SetStudioComponentName(const char* value) { m_studioComponentNameHasBeenSet = true; m_studioComponentName.assign(value); } /** *

The name for the studio component.

*/ inline LaunchProfileInitializationScript& WithStudioComponentName(const Aws::String& value) { SetStudioComponentName(value); return *this;} /** *

The name for the studio component.

*/ inline LaunchProfileInitializationScript& WithStudioComponentName(Aws::String&& value) { SetStudioComponentName(std::move(value)); return *this;} /** *

The name for the studio component.

*/ inline LaunchProfileInitializationScript& WithStudioComponentName(const char* value) { SetStudioComponentName(value); return *this;} private: Aws::String m_runtimeRoleArn; bool m_runtimeRoleArnHasBeenSet = false; Aws::String m_script; bool m_scriptHasBeenSet = false; Aws::String m_secureInitializationRoleArn; bool m_secureInitializationRoleArnHasBeenSet = false; Aws::String m_studioComponentId; bool m_studioComponentIdHasBeenSet = false; Aws::String m_studioComponentName; bool m_studioComponentNameHasBeenSet = false; }; } // namespace Model } // namespace NimbleStudio } // namespace Aws