/** * 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 placement constraint object to use for tasks.

See Also:

AWS * API Reference

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

A cluster query language expression to apply to the constraint.

*/ inline const Aws::String& GetExpression() const{ return m_expression; } /** *

A cluster query language expression to apply to the constraint.

*/ inline bool ExpressionHasBeenSet() const { return m_expressionHasBeenSet; } /** *

A cluster query language expression to apply to the constraint.

*/ inline void SetExpression(const Aws::String& value) { m_expressionHasBeenSet = true; m_expression = value; } /** *

A cluster query language expression to apply to the constraint.

*/ inline void SetExpression(Aws::String&& value) { m_expressionHasBeenSet = true; m_expression = std::move(value); } /** *

A cluster query language expression to apply to the constraint.

*/ inline void SetExpression(const char* value) { m_expressionHasBeenSet = true; m_expression.assign(value); } /** *

A cluster query language expression to apply to the constraint.

*/ inline AwsEcsTaskDefinitionPlacementConstraintsDetails& WithExpression(const Aws::String& value) { SetExpression(value); return *this;} /** *

A cluster query language expression to apply to the constraint.

*/ inline AwsEcsTaskDefinitionPlacementConstraintsDetails& WithExpression(Aws::String&& value) { SetExpression(std::move(value)); return *this;} /** *

A cluster query language expression to apply to the constraint.

*/ inline AwsEcsTaskDefinitionPlacementConstraintsDetails& WithExpression(const char* value) { SetExpression(value); return *this;} /** *

The type of constraint.

*/ inline const Aws::String& GetType() const{ return m_type; } /** *

The type of constraint.

*/ inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; } /** *

The type of constraint.

*/ inline void SetType(const Aws::String& value) { m_typeHasBeenSet = true; m_type = value; } /** *

The type of constraint.

*/ inline void SetType(Aws::String&& value) { m_typeHasBeenSet = true; m_type = std::move(value); } /** *

The type of constraint.

*/ inline void SetType(const char* value) { m_typeHasBeenSet = true; m_type.assign(value); } /** *

The type of constraint.

*/ inline AwsEcsTaskDefinitionPlacementConstraintsDetails& WithType(const Aws::String& value) { SetType(value); return *this;} /** *

The type of constraint.

*/ inline AwsEcsTaskDefinitionPlacementConstraintsDetails& WithType(Aws::String&& value) { SetType(std::move(value)); return *this;} /** *

The type of constraint.

*/ inline AwsEcsTaskDefinitionPlacementConstraintsDetails& WithType(const char* value) { SetType(value); return *this;} private: Aws::String m_expression; bool m_expressionHasBeenSet = false; Aws::String m_type; bool m_typeHasBeenSet = false; }; } // namespace Model } // namespace SecurityHub } // namespace Aws