/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include Diagnostic information about executable scripts that are part of a
* deployment.See Also:
AWS
* API Reference
The associated error code:
Success: The specified script * ran.
ScriptMissing: The specified script was not found in the * specified location.
ScriptNotExecutable: The specified script * is not a recognized executable file type.
ScriptTimedOut: The * specified script did not finish running in the specified time period.
ScriptFailed: The specified script failed to run as expected.
UnknownError: The specified script did not run for an unknown * reason.
The associated error code:
Success: The specified script * ran.
ScriptMissing: The specified script was not found in the * specified location.
ScriptNotExecutable: The specified script * is not a recognized executable file type.
ScriptTimedOut: The * specified script did not finish running in the specified time period.
ScriptFailed: The specified script failed to run as expected.
UnknownError: The specified script did not run for an unknown * reason.
The associated error code:
Success: The specified script * ran.
ScriptMissing: The specified script was not found in the * specified location.
ScriptNotExecutable: The specified script * is not a recognized executable file type.
ScriptTimedOut: The * specified script did not finish running in the specified time period.
ScriptFailed: The specified script failed to run as expected.
UnknownError: The specified script did not run for an unknown * reason.
The associated error code:
Success: The specified script * ran.
ScriptMissing: The specified script was not found in the * specified location.
ScriptNotExecutable: The specified script * is not a recognized executable file type.
ScriptTimedOut: The * specified script did not finish running in the specified time period.
ScriptFailed: The specified script failed to run as expected.
UnknownError: The specified script did not run for an unknown * reason.
The associated error code:
Success: The specified script * ran.
ScriptMissing: The specified script was not found in the * specified location.
ScriptNotExecutable: The specified script * is not a recognized executable file type.
ScriptTimedOut: The * specified script did not finish running in the specified time period.
ScriptFailed: The specified script failed to run as expected.
UnknownError: The specified script did not run for an unknown * reason.
The associated error code:
Success: The specified script * ran.
ScriptMissing: The specified script was not found in the * specified location.
ScriptNotExecutable: The specified script * is not a recognized executable file type.
ScriptTimedOut: The * specified script did not finish running in the specified time period.
ScriptFailed: The specified script failed to run as expected.
UnknownError: The specified script did not run for an unknown * reason.
The name of the script.
*/ inline const Aws::String& GetScriptName() const{ return m_scriptName; } /** *The name of the script.
*/ inline bool ScriptNameHasBeenSet() const { return m_scriptNameHasBeenSet; } /** *The name of the script.
*/ inline void SetScriptName(const Aws::String& value) { m_scriptNameHasBeenSet = true; m_scriptName = value; } /** *The name of the script.
*/ inline void SetScriptName(Aws::String&& value) { m_scriptNameHasBeenSet = true; m_scriptName = std::move(value); } /** *The name of the script.
*/ inline void SetScriptName(const char* value) { m_scriptNameHasBeenSet = true; m_scriptName.assign(value); } /** *The name of the script.
*/ inline Diagnostics& WithScriptName(const Aws::String& value) { SetScriptName(value); return *this;} /** *The name of the script.
*/ inline Diagnostics& WithScriptName(Aws::String&& value) { SetScriptName(std::move(value)); return *this;} /** *The name of the script.
*/ inline Diagnostics& WithScriptName(const char* value) { SetScriptName(value); return *this;} /** *The message associated with the error.
*/ inline const Aws::String& GetMessage() const{ return m_message; } /** *The message associated with the error.
*/ inline bool MessageHasBeenSet() const { return m_messageHasBeenSet; } /** *The message associated with the error.
*/ inline void SetMessage(const Aws::String& value) { m_messageHasBeenSet = true; m_message = value; } /** *The message associated with the error.
*/ inline void SetMessage(Aws::String&& value) { m_messageHasBeenSet = true; m_message = std::move(value); } /** *The message associated with the error.
*/ inline void SetMessage(const char* value) { m_messageHasBeenSet = true; m_message.assign(value); } /** *The message associated with the error.
*/ inline Diagnostics& WithMessage(const Aws::String& value) { SetMessage(value); return *this;} /** *The message associated with the error.
*/ inline Diagnostics& WithMessage(Aws::String&& value) { SetMessage(std::move(value)); return *this;} /** *The message associated with the error.
*/ inline Diagnostics& WithMessage(const char* value) { SetMessage(value); return *this;} /** *The last portion of the diagnostic log.
If available, CodeDeploy * returns up to the last 4 KB of the diagnostic log.
*/ inline const Aws::String& GetLogTail() const{ return m_logTail; } /** *The last portion of the diagnostic log.
If available, CodeDeploy * returns up to the last 4 KB of the diagnostic log.
*/ inline bool LogTailHasBeenSet() const { return m_logTailHasBeenSet; } /** *The last portion of the diagnostic log.
If available, CodeDeploy * returns up to the last 4 KB of the diagnostic log.
*/ inline void SetLogTail(const Aws::String& value) { m_logTailHasBeenSet = true; m_logTail = value; } /** *The last portion of the diagnostic log.
If available, CodeDeploy * returns up to the last 4 KB of the diagnostic log.
*/ inline void SetLogTail(Aws::String&& value) { m_logTailHasBeenSet = true; m_logTail = std::move(value); } /** *The last portion of the diagnostic log.
If available, CodeDeploy * returns up to the last 4 KB of the diagnostic log.
*/ inline void SetLogTail(const char* value) { m_logTailHasBeenSet = true; m_logTail.assign(value); } /** *The last portion of the diagnostic log.
If available, CodeDeploy * returns up to the last 4 KB of the diagnostic log.
*/ inline Diagnostics& WithLogTail(const Aws::String& value) { SetLogTail(value); return *this;} /** *The last portion of the diagnostic log.
If available, CodeDeploy * returns up to the last 4 KB of the diagnostic log.
*/ inline Diagnostics& WithLogTail(Aws::String&& value) { SetLogTail(std::move(value)); return *this;} /** *The last portion of the diagnostic log.
If available, CodeDeploy * returns up to the last 4 KB of the diagnostic log.
*/ inline Diagnostics& WithLogTail(const char* value) { SetLogTail(value); return *this;} private: LifecycleErrorCode m_errorCode; bool m_errorCodeHasBeenSet = false; Aws::String m_scriptName; bool m_scriptNameHasBeenSet = false; Aws::String m_message; bool m_messageHasBeenSet = false; Aws::String m_logTail; bool m_logTailHasBeenSet = false; }; } // namespace Model } // namespace CodeDeploy } // namespace Aws