/* * 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 fis-2020-12-01.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.FIS.Model { /// /// Describes the action for an experiment. /// public partial class ExperimentAction { private string _actionId; private string _description; private DateTime? _endTime; private Dictionary _parameters = new Dictionary(); private List _startAfter = new List(); private DateTime? _startTime; private ExperimentActionState _state; private Dictionary _targets = new Dictionary(); /// /// Gets and sets the property ActionId. /// /// The ID of the action. /// /// [AWSProperty(Max=128)] public string ActionId { get { return this._actionId; } set { this._actionId = value; } } // Check to see if ActionId property is set internal bool IsSetActionId() { return this._actionId != null; } /// /// Gets and sets the property Description. /// /// The description for the action. /// /// [AWSProperty(Max=512)] public string Description { get { return this._description; } set { this._description = value; } } // Check to see if Description property is set internal bool IsSetDescription() { return this._description != null; } /// /// Gets and sets the property EndTime. /// /// The time that the action ended. /// /// public DateTime EndTime { get { return this._endTime.GetValueOrDefault(); } set { this._endTime = value; } } // Check to see if EndTime property is set internal bool IsSetEndTime() { return this._endTime.HasValue; } /// /// Gets and sets the property Parameters. /// /// The parameters for the action. /// /// public Dictionary Parameters { get { return this._parameters; } set { this._parameters = value; } } // Check to see if Parameters property is set internal bool IsSetParameters() { return this._parameters != null && this._parameters.Count > 0; } /// /// Gets and sets the property StartAfter. /// /// The name of the action that must be completed before this action starts. /// /// public List StartAfter { get { return this._startAfter; } set { this._startAfter = value; } } // Check to see if StartAfter property is set internal bool IsSetStartAfter() { return this._startAfter != null && this._startAfter.Count > 0; } /// /// Gets and sets the property StartTime. /// /// The time that the action started. /// /// public DateTime StartTime { get { return this._startTime.GetValueOrDefault(); } set { this._startTime = value; } } // Check to see if StartTime property is set internal bool IsSetStartTime() { return this._startTime.HasValue; } /// /// Gets and sets the property State. /// /// The state of the action. /// /// public ExperimentActionState State { get { return this._state; } set { this._state = value; } } // Check to see if State property is set internal bool IsSetState() { return this._state != null; } /// /// Gets and sets the property Targets. /// /// The targets for the action. /// /// public Dictionary Targets { get { return this._targets; } set { this._targets = value; } } // Check to see if Targets property is set internal bool IsSetTargets() { return this._targets != null && this._targets.Count > 0; } } }