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

Summary information about a constraint.

See Also:

AWS * API Reference

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

The type of constraint.

  • LAUNCH

  • *

    NOTIFICATION

  • STACKSET

  • * TEMPLATE

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

The type of constraint.

  • LAUNCH

  • *

    NOTIFICATION

  • STACKSET

  • * TEMPLATE

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

The type of constraint.

  • LAUNCH

  • *

    NOTIFICATION

  • STACKSET

  • * TEMPLATE

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

The type of constraint.

  • LAUNCH

  • *

    NOTIFICATION

  • STACKSET

  • * TEMPLATE

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

The type of constraint.

  • LAUNCH

  • *

    NOTIFICATION

  • STACKSET

  • * TEMPLATE

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

The type of constraint.

  • LAUNCH

  • *

    NOTIFICATION

  • STACKSET

  • * TEMPLATE

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

The type of constraint.

  • LAUNCH

  • *

    NOTIFICATION

  • STACKSET

  • * TEMPLATE

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

The type of constraint.

  • LAUNCH

  • *

    NOTIFICATION

  • STACKSET

  • * TEMPLATE

*/ inline ConstraintSummary& WithType(const char* value) { SetType(value); return *this;} /** *

The description of the constraint.

*/ inline const Aws::String& GetDescription() const{ return m_description; } /** *

The description of the constraint.

*/ inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; } /** *

The description of the constraint.

*/ inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; } /** *

The description of the constraint.

*/ inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); } /** *

The description of the constraint.

*/ inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); } /** *

The description of the constraint.

*/ inline ConstraintSummary& WithDescription(const Aws::String& value) { SetDescription(value); return *this;} /** *

The description of the constraint.

*/ inline ConstraintSummary& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;} /** *

The description of the constraint.

*/ inline ConstraintSummary& WithDescription(const char* value) { SetDescription(value); return *this;} private: Aws::String m_type; bool m_typeHasBeenSet = false; Aws::String m_description; bool m_descriptionHasBeenSet = false; }; } // namespace Model } // namespace ServiceCatalog } // namespace Aws