/* * 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 batch-2016-08-10.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.Batch.Model { /// /// Specifies an array of up to 5 conditions to be met, and an action to take (RETRY /// or EXIT) if all conditions are met. If none of the EvaluateOnExit /// conditions in a RetryStrategy match, then the job is retried. /// public partial class EvaluateOnExit { private RetryAction _action; private string _onExitCode; private string _onReason; private string _onStatusReason; /// /// Gets and sets the property Action. /// /// Specifies the action to take if all of the specified conditions (onStatusReason, /// onReason, and onExitCode) are met. The values aren't case /// sensitive. /// /// [AWSProperty(Required=true)] public RetryAction Action { get { return this._action; } set { this._action = value; } } // Check to see if Action property is set internal bool IsSetAction() { return this._action != null; } /// /// Gets and sets the property OnExitCode. /// /// Contains a glob pattern to match against the decimal representation of the ExitCode /// returned for a job. The pattern can be up to 512 characters long. It can contain only /// numbers, and can end with an asterisk (*) so that only the start of the string needs /// to be an exact match. /// /// /// /// The string can contain up to 512 characters. /// /// public string OnExitCode { get { return this._onExitCode; } set { this._onExitCode = value; } } // Check to see if OnExitCode property is set internal bool IsSetOnExitCode() { return this._onExitCode != null; } /// /// Gets and sets the property OnReason. /// /// Contains a glob pattern to match against the Reason returned for a job. /// The pattern can contain up to 512 characters. It can contain letters, numbers, periods /// (.), colons (:), and white space (including spaces and tabs). It can optionally end /// with an asterisk (*) so that only the start of the string needs to be an exact match. /// /// public string OnReason { get { return this._onReason; } set { this._onReason = value; } } // Check to see if OnReason property is set internal bool IsSetOnReason() { return this._onReason != null; } /// /// Gets and sets the property OnStatusReason. /// /// Contains a glob pattern to match against the StatusReason returned for /// a job. The pattern can contain up to 512 characters. It can contain letters, numbers, /// periods (.), colons (:), and white spaces (including spaces or tabs). It can optionally /// end with an asterisk (*) so that only the start of the string needs to be an exact /// match. /// /// public string OnStatusReason { get { return this._onStatusReason; } set { this._onStatusReason = value; } } // Check to see if OnStatusReason property is set internal bool IsSetOnStatusReason() { return this._onStatusReason != null; } } }