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

A collection of app instances that run the same executable app code and have * the same launch options and commands.

For more information about domains, * see Key * concepts: Domains in the SimSpace Weaver User Guide.

See * Also:

AWS * API Reference

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

The type of lifecycle management for apps in the domain. Indicates whether * apps in this domain are managed (SimSpace Weaver starts and stops the * apps) or unmanaged (you must start and stop the apps).

Lifecycle types

  • PerWorker * – Managed: SimSpace Weaver starts one app on each worker.

  • * BySpatialSubdivision – Managed: SimSpace Weaver starts one app for * each spatial partition.

  • ByRequest – Unmanaged: * You use the StartApp API to start the apps and use the * StopApp API to stop the apps.

*/ inline const LifecycleManagementStrategy& GetLifecycle() const{ return m_lifecycle; } /** *

The type of lifecycle management for apps in the domain. Indicates whether * apps in this domain are managed (SimSpace Weaver starts and stops the * apps) or unmanaged (you must start and stop the apps).

Lifecycle types

  • PerWorker * – Managed: SimSpace Weaver starts one app on each worker.

  • * BySpatialSubdivision – Managed: SimSpace Weaver starts one app for * each spatial partition.

  • ByRequest – Unmanaged: * You use the StartApp API to start the apps and use the * StopApp API to stop the apps.

*/ inline bool LifecycleHasBeenSet() const { return m_lifecycleHasBeenSet; } /** *

The type of lifecycle management for apps in the domain. Indicates whether * apps in this domain are managed (SimSpace Weaver starts and stops the * apps) or unmanaged (you must start and stop the apps).

Lifecycle types

  • PerWorker * – Managed: SimSpace Weaver starts one app on each worker.

  • * BySpatialSubdivision – Managed: SimSpace Weaver starts one app for * each spatial partition.

  • ByRequest – Unmanaged: * You use the StartApp API to start the apps and use the * StopApp API to stop the apps.

*/ inline void SetLifecycle(const LifecycleManagementStrategy& value) { m_lifecycleHasBeenSet = true; m_lifecycle = value; } /** *

The type of lifecycle management for apps in the domain. Indicates whether * apps in this domain are managed (SimSpace Weaver starts and stops the * apps) or unmanaged (you must start and stop the apps).

Lifecycle types

  • PerWorker * – Managed: SimSpace Weaver starts one app on each worker.

  • * BySpatialSubdivision – Managed: SimSpace Weaver starts one app for * each spatial partition.

  • ByRequest – Unmanaged: * You use the StartApp API to start the apps and use the * StopApp API to stop the apps.

*/ inline void SetLifecycle(LifecycleManagementStrategy&& value) { m_lifecycleHasBeenSet = true; m_lifecycle = std::move(value); } /** *

The type of lifecycle management for apps in the domain. Indicates whether * apps in this domain are managed (SimSpace Weaver starts and stops the * apps) or unmanaged (you must start and stop the apps).

Lifecycle types

  • PerWorker * – Managed: SimSpace Weaver starts one app on each worker.

  • * BySpatialSubdivision – Managed: SimSpace Weaver starts one app for * each spatial partition.

  • ByRequest – Unmanaged: * You use the StartApp API to start the apps and use the * StopApp API to stop the apps.

*/ inline Domain& WithLifecycle(const LifecycleManagementStrategy& value) { SetLifecycle(value); return *this;} /** *

The type of lifecycle management for apps in the domain. Indicates whether * apps in this domain are managed (SimSpace Weaver starts and stops the * apps) or unmanaged (you must start and stop the apps).

Lifecycle types

  • PerWorker * – Managed: SimSpace Weaver starts one app on each worker.

  • * BySpatialSubdivision – Managed: SimSpace Weaver starts one app for * each spatial partition.

  • ByRequest – Unmanaged: * You use the StartApp API to start the apps and use the * StopApp API to stop the apps.

*/ inline Domain& WithLifecycle(LifecycleManagementStrategy&& value) { SetLifecycle(std::move(value)); return *this;} /** *

The name of the domain.

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

The name of the domain.

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

The name of the domain.

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

The name of the domain.

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

The name of the domain.

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

The name of the domain.

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

The name of the domain.

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

The name of the domain.

*/ inline Domain& WithName(const char* value) { SetName(value); return *this;} private: LifecycleManagementStrategy m_lifecycle; bool m_lifecycleHasBeenSet = false; Aws::String m_name; bool m_nameHasBeenSet = false; }; } // namespace Model } // namespace SimSpaceWeaver } // namespace Aws