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

Describes an application in the application catalog.

See Also:

* AWS * API Reference

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

The name of the application.

*/ inline const Aws::String& GetName() const{ return m_name; } /** *

The name of the application.

*/ inline bool NameHasBeenSet() const { return m_nameHasBeenSet; } /** *

The name of the application.

*/ inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; } /** *

The name of the application.

*/ inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); } /** *

The name of the application.

*/ inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); } /** *

The name of the application.

*/ inline Application& WithName(const Aws::String& value) { SetName(value); return *this;} /** *

The name of the application.

*/ inline Application& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;} /** *

The name of the application.

*/ inline Application& WithName(const char* value) { SetName(value); return *this;} /** *

The application name to display.

*/ inline const Aws::String& GetDisplayName() const{ return m_displayName; } /** *

The application name to display.

*/ inline bool DisplayNameHasBeenSet() const { return m_displayNameHasBeenSet; } /** *

The application name to display.

*/ inline void SetDisplayName(const Aws::String& value) { m_displayNameHasBeenSet = true; m_displayName = value; } /** *

The application name to display.

*/ inline void SetDisplayName(Aws::String&& value) { m_displayNameHasBeenSet = true; m_displayName = std::move(value); } /** *

The application name to display.

*/ inline void SetDisplayName(const char* value) { m_displayNameHasBeenSet = true; m_displayName.assign(value); } /** *

The application name to display.

*/ inline Application& WithDisplayName(const Aws::String& value) { SetDisplayName(value); return *this;} /** *

The application name to display.

*/ inline Application& WithDisplayName(Aws::String&& value) { SetDisplayName(std::move(value)); return *this;} /** *

The application name to display.

*/ inline Application& WithDisplayName(const char* value) { SetDisplayName(value); return *this;} /** *

The URL for the application icon. This URL might be time-limited.

*/ inline const Aws::String& GetIconURL() const{ return m_iconURL; } /** *

The URL for the application icon. This URL might be time-limited.

*/ inline bool IconURLHasBeenSet() const { return m_iconURLHasBeenSet; } /** *

The URL for the application icon. This URL might be time-limited.

*/ inline void SetIconURL(const Aws::String& value) { m_iconURLHasBeenSet = true; m_iconURL = value; } /** *

The URL for the application icon. This URL might be time-limited.

*/ inline void SetIconURL(Aws::String&& value) { m_iconURLHasBeenSet = true; m_iconURL = std::move(value); } /** *

The URL for the application icon. This URL might be time-limited.

*/ inline void SetIconURL(const char* value) { m_iconURLHasBeenSet = true; m_iconURL.assign(value); } /** *

The URL for the application icon. This URL might be time-limited.

*/ inline Application& WithIconURL(const Aws::String& value) { SetIconURL(value); return *this;} /** *

The URL for the application icon. This URL might be time-limited.

*/ inline Application& WithIconURL(Aws::String&& value) { SetIconURL(std::move(value)); return *this;} /** *

The URL for the application icon. This URL might be time-limited.

*/ inline Application& WithIconURL(const char* value) { SetIconURL(value); return *this;} /** *

The path to the application executable in the instance.

*/ inline const Aws::String& GetLaunchPath() const{ return m_launchPath; } /** *

The path to the application executable in the instance.

*/ inline bool LaunchPathHasBeenSet() const { return m_launchPathHasBeenSet; } /** *

The path to the application executable in the instance.

*/ inline void SetLaunchPath(const Aws::String& value) { m_launchPathHasBeenSet = true; m_launchPath = value; } /** *

The path to the application executable in the instance.

*/ inline void SetLaunchPath(Aws::String&& value) { m_launchPathHasBeenSet = true; m_launchPath = std::move(value); } /** *

The path to the application executable in the instance.

*/ inline void SetLaunchPath(const char* value) { m_launchPathHasBeenSet = true; m_launchPath.assign(value); } /** *

The path to the application executable in the instance.

*/ inline Application& WithLaunchPath(const Aws::String& value) { SetLaunchPath(value); return *this;} /** *

The path to the application executable in the instance.

*/ inline Application& WithLaunchPath(Aws::String&& value) { SetLaunchPath(std::move(value)); return *this;} /** *

The path to the application executable in the instance.

*/ inline Application& WithLaunchPath(const char* value) { SetLaunchPath(value); return *this;} /** *

The arguments that are passed to the application at launch.

*/ inline const Aws::String& GetLaunchParameters() const{ return m_launchParameters; } /** *

The arguments that are passed to the application at launch.

*/ inline bool LaunchParametersHasBeenSet() const { return m_launchParametersHasBeenSet; } /** *

The arguments that are passed to the application at launch.

*/ inline void SetLaunchParameters(const Aws::String& value) { m_launchParametersHasBeenSet = true; m_launchParameters = value; } /** *

The arguments that are passed to the application at launch.

*/ inline void SetLaunchParameters(Aws::String&& value) { m_launchParametersHasBeenSet = true; m_launchParameters = std::move(value); } /** *

The arguments that are passed to the application at launch.

*/ inline void SetLaunchParameters(const char* value) { m_launchParametersHasBeenSet = true; m_launchParameters.assign(value); } /** *

The arguments that are passed to the application at launch.

*/ inline Application& WithLaunchParameters(const Aws::String& value) { SetLaunchParameters(value); return *this;} /** *

The arguments that are passed to the application at launch.

*/ inline Application& WithLaunchParameters(Aws::String&& value) { SetLaunchParameters(std::move(value)); return *this;} /** *

The arguments that are passed to the application at launch.

*/ inline Application& WithLaunchParameters(const char* value) { SetLaunchParameters(value); return *this;} /** *

If there is a problem, the application can be disabled after image * creation.

*/ inline bool GetEnabled() const{ return m_enabled; } /** *

If there is a problem, the application can be disabled after image * creation.

*/ inline bool EnabledHasBeenSet() const { return m_enabledHasBeenSet; } /** *

If there is a problem, the application can be disabled after image * creation.

*/ inline void SetEnabled(bool value) { m_enabledHasBeenSet = true; m_enabled = value; } /** *

If there is a problem, the application can be disabled after image * creation.

*/ inline Application& WithEnabled(bool value) { SetEnabled(value); return *this;} /** *

Additional attributes that describe the application.

*/ inline const Aws::Map& GetMetadata() const{ return m_metadata; } /** *

Additional attributes that describe the application.

*/ inline bool MetadataHasBeenSet() const { return m_metadataHasBeenSet; } /** *

Additional attributes that describe the application.

*/ inline void SetMetadata(const Aws::Map& value) { m_metadataHasBeenSet = true; m_metadata = value; } /** *

Additional attributes that describe the application.

*/ inline void SetMetadata(Aws::Map&& value) { m_metadataHasBeenSet = true; m_metadata = std::move(value); } /** *

Additional attributes that describe the application.

*/ inline Application& WithMetadata(const Aws::Map& value) { SetMetadata(value); return *this;} /** *

Additional attributes that describe the application.

*/ inline Application& WithMetadata(Aws::Map&& value) { SetMetadata(std::move(value)); return *this;} /** *

Additional attributes that describe the application.

*/ inline Application& AddMetadata(const Aws::String& key, const Aws::String& value) { m_metadataHasBeenSet = true; m_metadata.emplace(key, value); return *this; } /** *

Additional attributes that describe the application.

*/ inline Application& AddMetadata(Aws::String&& key, const Aws::String& value) { m_metadataHasBeenSet = true; m_metadata.emplace(std::move(key), value); return *this; } /** *

Additional attributes that describe the application.

*/ inline Application& AddMetadata(const Aws::String& key, Aws::String&& value) { m_metadataHasBeenSet = true; m_metadata.emplace(key, std::move(value)); return *this; } /** *

Additional attributes that describe the application.

*/ inline Application& AddMetadata(Aws::String&& key, Aws::String&& value) { m_metadataHasBeenSet = true; m_metadata.emplace(std::move(key), std::move(value)); return *this; } /** *

Additional attributes that describe the application.

*/ inline Application& AddMetadata(const char* key, Aws::String&& value) { m_metadataHasBeenSet = true; m_metadata.emplace(key, std::move(value)); return *this; } /** *

Additional attributes that describe the application.

*/ inline Application& AddMetadata(Aws::String&& key, const char* value) { m_metadataHasBeenSet = true; m_metadata.emplace(std::move(key), value); return *this; } /** *

Additional attributes that describe the application.

*/ inline Application& AddMetadata(const char* key, const char* value) { m_metadataHasBeenSet = true; m_metadata.emplace(key, value); return *this; } private: Aws::String m_name; bool m_nameHasBeenSet; Aws::String m_displayName; bool m_displayNameHasBeenSet; Aws::String m_iconURL; bool m_iconURLHasBeenSet; Aws::String m_launchPath; bool m_launchPathHasBeenSet; Aws::String m_launchParameters; bool m_launchParametersHasBeenSet; bool m_enabled; bool m_enabledHasBeenSet; Aws::Map m_metadata; bool m_metadataHasBeenSet; }; } // namespace Model } // namespace AppStream } // namespace Aws