/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include Represents information about failure details.See Also:
AWS
* API Reference
The type of the failure.
*/ inline const FailureType& GetType() const{ return m_type; } /** *The type of the failure.
*/ inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; } /** *The type of the failure.
*/ inline void SetType(const FailureType& value) { m_typeHasBeenSet = true; m_type = value; } /** *The type of the failure.
*/ inline void SetType(FailureType&& value) { m_typeHasBeenSet = true; m_type = std::move(value); } /** *The type of the failure.
*/ inline FailureDetails& WithType(const FailureType& value) { SetType(value); return *this;} /** *The type of the failure.
*/ inline FailureDetails& WithType(FailureType&& value) { SetType(std::move(value)); return *this;} /** *The message about the failure.
*/ inline const Aws::String& GetMessage() const{ return m_message; } /** *The message about the failure.
*/ inline bool MessageHasBeenSet() const { return m_messageHasBeenSet; } /** *The message about the failure.
*/ inline void SetMessage(const Aws::String& value) { m_messageHasBeenSet = true; m_message = value; } /** *The message about the failure.
*/ inline void SetMessage(Aws::String&& value) { m_messageHasBeenSet = true; m_message = std::move(value); } /** *The message about the failure.
*/ inline void SetMessage(const char* value) { m_messageHasBeenSet = true; m_message.assign(value); } /** *The message about the failure.
*/ inline FailureDetails& WithMessage(const Aws::String& value) { SetMessage(value); return *this;} /** *The message about the failure.
*/ inline FailureDetails& WithMessage(Aws::String&& value) { SetMessage(std::move(value)); return *this;} /** *The message about the failure.
*/ inline FailureDetails& WithMessage(const char* value) { SetMessage(value); return *this;} /** *The external ID of the run of the action that failed.
*/ inline const Aws::String& GetExternalExecutionId() const{ return m_externalExecutionId; } /** *The external ID of the run of the action that failed.
*/ inline bool ExternalExecutionIdHasBeenSet() const { return m_externalExecutionIdHasBeenSet; } /** *The external ID of the run of the action that failed.
*/ inline void SetExternalExecutionId(const Aws::String& value) { m_externalExecutionIdHasBeenSet = true; m_externalExecutionId = value; } /** *The external ID of the run of the action that failed.
*/ inline void SetExternalExecutionId(Aws::String&& value) { m_externalExecutionIdHasBeenSet = true; m_externalExecutionId = std::move(value); } /** *The external ID of the run of the action that failed.
*/ inline void SetExternalExecutionId(const char* value) { m_externalExecutionIdHasBeenSet = true; m_externalExecutionId.assign(value); } /** *The external ID of the run of the action that failed.
*/ inline FailureDetails& WithExternalExecutionId(const Aws::String& value) { SetExternalExecutionId(value); return *this;} /** *The external ID of the run of the action that failed.
*/ inline FailureDetails& WithExternalExecutionId(Aws::String&& value) { SetExternalExecutionId(std::move(value)); return *this;} /** *The external ID of the run of the action that failed.
*/ inline FailureDetails& WithExternalExecutionId(const char* value) { SetExternalExecutionId(value); return *this;} private: FailureType m_type; bool m_typeHasBeenSet = false; Aws::String m_message; bool m_messageHasBeenSet = false; Aws::String m_externalExecutionId; bool m_externalExecutionIdHasBeenSet = false; }; } // namespace Model } // namespace CodePipeline } // namespace Aws