/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include Additional information about a build phase that has an error. You can use
* this information for troubleshooting.See Also:
AWS
* API Reference
The status code for the context of the build phase.
*/ inline const Aws::String& GetStatusCode() const{ return m_statusCode; } /** *The status code for the context of the build phase.
*/ inline bool StatusCodeHasBeenSet() const { return m_statusCodeHasBeenSet; } /** *The status code for the context of the build phase.
*/ inline void SetStatusCode(const Aws::String& value) { m_statusCodeHasBeenSet = true; m_statusCode = value; } /** *The status code for the context of the build phase.
*/ inline void SetStatusCode(Aws::String&& value) { m_statusCodeHasBeenSet = true; m_statusCode = std::move(value); } /** *The status code for the context of the build phase.
*/ inline void SetStatusCode(const char* value) { m_statusCodeHasBeenSet = true; m_statusCode.assign(value); } /** *The status code for the context of the build phase.
*/ inline PhaseContext& WithStatusCode(const Aws::String& value) { SetStatusCode(value); return *this;} /** *The status code for the context of the build phase.
*/ inline PhaseContext& WithStatusCode(Aws::String&& value) { SetStatusCode(std::move(value)); return *this;} /** *The status code for the context of the build phase.
*/ inline PhaseContext& WithStatusCode(const char* value) { SetStatusCode(value); return *this;} /** *An explanation of the build phase's context. This might include a command ID * and an exit code.
*/ inline const Aws::String& GetMessage() const{ return m_message; } /** *An explanation of the build phase's context. This might include a command ID * and an exit code.
*/ inline bool MessageHasBeenSet() const { return m_messageHasBeenSet; } /** *An explanation of the build phase's context. This might include a command ID * and an exit code.
*/ inline void SetMessage(const Aws::String& value) { m_messageHasBeenSet = true; m_message = value; } /** *An explanation of the build phase's context. This might include a command ID * and an exit code.
*/ inline void SetMessage(Aws::String&& value) { m_messageHasBeenSet = true; m_message = std::move(value); } /** *An explanation of the build phase's context. This might include a command ID * and an exit code.
*/ inline void SetMessage(const char* value) { m_messageHasBeenSet = true; m_message.assign(value); } /** *An explanation of the build phase's context. This might include a command ID * and an exit code.
*/ inline PhaseContext& WithMessage(const Aws::String& value) { SetMessage(value); return *this;} /** *An explanation of the build phase's context. This might include a command ID * and an exit code.
*/ inline PhaseContext& WithMessage(Aws::String&& value) { SetMessage(std::move(value)); return *this;} /** *An explanation of the build phase's context. This might include a command ID * and an exit code.
*/ inline PhaseContext& WithMessage(const char* value) { SetMessage(value); return *this;} private: Aws::String m_statusCode; bool m_statusCodeHasBeenSet = false; Aws::String m_message; bool m_messageHasBeenSet = false; }; } // namespace Model } // namespace CodeBuild } // namespace Aws