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

Represents information about incompatibility.

See Also:

AWS * API Reference

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

A message about the incompatibility.

*/ inline const Aws::String& GetMessage() const{ return m_message; } /** *

A message about the incompatibility.

*/ inline bool MessageHasBeenSet() const { return m_messageHasBeenSet; } /** *

A message about the incompatibility.

*/ inline void SetMessage(const Aws::String& value) { m_messageHasBeenSet = true; m_message = value; } /** *

A message about the incompatibility.

*/ inline void SetMessage(Aws::String&& value) { m_messageHasBeenSet = true; m_message = std::move(value); } /** *

A message about the incompatibility.

*/ inline void SetMessage(const char* value) { m_messageHasBeenSet = true; m_message.assign(value); } /** *

A message about the incompatibility.

*/ inline IncompatibilityMessage& WithMessage(const Aws::String& value) { SetMessage(value); return *this;} /** *

A message about the incompatibility.

*/ inline IncompatibilityMessage& WithMessage(Aws::String&& value) { SetMessage(std::move(value)); return *this;} /** *

A message about the incompatibility.

*/ inline IncompatibilityMessage& WithMessage(const char* value) { SetMessage(value); return *this;} /** *

The type of incompatibility.

Allowed values include:

  • *

    ARN

  • FORM_FACTOR (for example, phone or tablet)

  • *
  • MANUFACTURER

  • PLATFORM (for example, Android or * iOS)

  • REMOTE_ACCESS_ENABLED

  • *

    APPIUM_VERSION

*/ inline const DeviceAttribute& GetType() const{ return m_type; } /** *

The type of incompatibility.

Allowed values include:

  • *

    ARN

  • FORM_FACTOR (for example, phone or tablet)

  • *
  • MANUFACTURER

  • PLATFORM (for example, Android or * iOS)

  • REMOTE_ACCESS_ENABLED

  • *

    APPIUM_VERSION

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

The type of incompatibility.

Allowed values include:

  • *

    ARN

  • FORM_FACTOR (for example, phone or tablet)

  • *
  • MANUFACTURER

  • PLATFORM (for example, Android or * iOS)

  • REMOTE_ACCESS_ENABLED

  • *

    APPIUM_VERSION

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

The type of incompatibility.

Allowed values include:

  • *

    ARN

  • FORM_FACTOR (for example, phone or tablet)

  • *
  • MANUFACTURER

  • PLATFORM (for example, Android or * iOS)

  • REMOTE_ACCESS_ENABLED

  • *

    APPIUM_VERSION

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

The type of incompatibility.

Allowed values include:

  • *

    ARN

  • FORM_FACTOR (for example, phone or tablet)

  • *
  • MANUFACTURER

  • PLATFORM (for example, Android or * iOS)

  • REMOTE_ACCESS_ENABLED

  • *

    APPIUM_VERSION

*/ inline IncompatibilityMessage& WithType(const DeviceAttribute& value) { SetType(value); return *this;} /** *

The type of incompatibility.

Allowed values include:

  • *

    ARN

  • FORM_FACTOR (for example, phone or tablet)

  • *
  • MANUFACTURER

  • PLATFORM (for example, Android or * iOS)

  • REMOTE_ACCESS_ENABLED

  • *

    APPIUM_VERSION

*/ inline IncompatibilityMessage& WithType(DeviceAttribute&& value) { SetType(std::move(value)); return *this;} private: Aws::String m_message; bool m_messageHasBeenSet = false; DeviceAttribute m_type; bool m_typeHasBeenSet = false; }; } // namespace Model } // namespace DeviceFarm } // namespace Aws