/*
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License").
* You may not use this file except in compliance with the License.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" file accompanying this file. This file is distributed
* on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
* express or implied. See the License for the specific language governing
* permissions and limitations under the License.
*/
/*
* Do not modify this file. This file is generated from the codedeploy-2014-10-06.normal.json service model.
*/
using System;
using System.Collections.Generic;
using System.Xml.Serialization;
using System.Text;
using System.IO;
using System.Net;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
namespace Amazon.CodeDeploy.Model
{
///
/// Diagnostic information about executable scripts that are part of a deployment.
///
public partial class Diagnostics
{
private LifecycleErrorCode _errorCode;
private string _logTail;
private string _message;
private string _scriptName;
///
/// Gets and sets the property ErrorCode.
///
/// 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.
///
///
///
public LifecycleErrorCode ErrorCode
{
get { return this._errorCode; }
set { this._errorCode = value; }
}
// Check to see if ErrorCode property is set
internal bool IsSetErrorCode()
{
return this._errorCode != null;
}
///
/// Gets and sets the property LogTail.
///
/// The last portion of the diagnostic log.
///
///
///
/// If available, CodeDeploy returns up to the last 4 KB of the diagnostic log.
///
///
public string LogTail
{
get { return this._logTail; }
set { this._logTail = value; }
}
// Check to see if LogTail property is set
internal bool IsSetLogTail()
{
return this._logTail != null;
}
///
/// Gets and sets the property Message.
///
/// The message associated with the error.
///
///
public string Message
{
get { return this._message; }
set { this._message = value; }
}
// Check to see if Message property is set
internal bool IsSetMessage()
{
return this._message != null;
}
///
/// Gets and sets the property ScriptName.
///
/// The name of the script.
///
///
public string ScriptName
{
get { return this._scriptName; }
set { this._scriptName = value; }
}
// Check to see if ScriptName property is set
internal bool IsSetScriptName()
{
return this._scriptName != null;
}
}
}