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

A dependency that is defined for container startup and * shutdown.

See Also:

AWS * API Reference

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

The dependency condition of the dependent container. Indicates the required * status of the dependent container before the current container can start. Valid * values are as follows:

  • COMPLETE

  • *

    HEALTHY

  • SUCCESS

  • *
  • START

*/ inline const Aws::String& GetCondition() const{ return m_condition; } /** *

The dependency condition of the dependent container. Indicates the required * status of the dependent container before the current container can start. Valid * values are as follows:

  • COMPLETE

  • *

    HEALTHY

  • SUCCESS

  • *
  • START

*/ inline bool ConditionHasBeenSet() const { return m_conditionHasBeenSet; } /** *

The dependency condition of the dependent container. Indicates the required * status of the dependent container before the current container can start. Valid * values are as follows:

  • COMPLETE

  • *

    HEALTHY

  • SUCCESS

  • *
  • START

*/ inline void SetCondition(const Aws::String& value) { m_conditionHasBeenSet = true; m_condition = value; } /** *

The dependency condition of the dependent container. Indicates the required * status of the dependent container before the current container can start. Valid * values are as follows:

  • COMPLETE

  • *

    HEALTHY

  • SUCCESS

  • *
  • START

*/ inline void SetCondition(Aws::String&& value) { m_conditionHasBeenSet = true; m_condition = std::move(value); } /** *

The dependency condition of the dependent container. Indicates the required * status of the dependent container before the current container can start. Valid * values are as follows:

  • COMPLETE

  • *

    HEALTHY

  • SUCCESS

  • *
  • START

*/ inline void SetCondition(const char* value) { m_conditionHasBeenSet = true; m_condition.assign(value); } /** *

The dependency condition of the dependent container. Indicates the required * status of the dependent container before the current container can start. Valid * values are as follows:

  • COMPLETE

  • *

    HEALTHY

  • SUCCESS

  • *
  • START

*/ inline AwsEcsTaskDefinitionContainerDefinitionsDependsOnDetails& WithCondition(const Aws::String& value) { SetCondition(value); return *this;} /** *

The dependency condition of the dependent container. Indicates the required * status of the dependent container before the current container can start. Valid * values are as follows:

  • COMPLETE

  • *

    HEALTHY

  • SUCCESS

  • *
  • START

*/ inline AwsEcsTaskDefinitionContainerDefinitionsDependsOnDetails& WithCondition(Aws::String&& value) { SetCondition(std::move(value)); return *this;} /** *

The dependency condition of the dependent container. Indicates the required * status of the dependent container before the current container can start. Valid * values are as follows:

  • COMPLETE

  • *

    HEALTHY

  • SUCCESS

  • *
  • START

*/ inline AwsEcsTaskDefinitionContainerDefinitionsDependsOnDetails& WithCondition(const char* value) { SetCondition(value); return *this;} /** *

The name of the dependent container.

*/ inline const Aws::String& GetContainerName() const{ return m_containerName; } /** *

The name of the dependent container.

*/ inline bool ContainerNameHasBeenSet() const { return m_containerNameHasBeenSet; } /** *

The name of the dependent container.

*/ inline void SetContainerName(const Aws::String& value) { m_containerNameHasBeenSet = true; m_containerName = value; } /** *

The name of the dependent container.

*/ inline void SetContainerName(Aws::String&& value) { m_containerNameHasBeenSet = true; m_containerName = std::move(value); } /** *

The name of the dependent container.

*/ inline void SetContainerName(const char* value) { m_containerNameHasBeenSet = true; m_containerName.assign(value); } /** *

The name of the dependent container.

*/ inline AwsEcsTaskDefinitionContainerDefinitionsDependsOnDetails& WithContainerName(const Aws::String& value) { SetContainerName(value); return *this;} /** *

The name of the dependent container.

*/ inline AwsEcsTaskDefinitionContainerDefinitionsDependsOnDetails& WithContainerName(Aws::String&& value) { SetContainerName(std::move(value)); return *this;} /** *

The name of the dependent container.

*/ inline AwsEcsTaskDefinitionContainerDefinitionsDependsOnDetails& WithContainerName(const char* value) { SetContainerName(value); return *this;} private: Aws::String m_condition; bool m_conditionHasBeenSet = false; Aws::String m_containerName; bool m_containerNameHasBeenSet = false; }; } // namespace Model } // namespace SecurityHub } // namespace Aws