/* * 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 m2-2021-04-28.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.MainframeModernization.Model { /// /// Container for the parameters to the UpdateEnvironment operation. /// Updates the configuration details for a specific runtime environment. /// public partial class UpdateEnvironmentRequest : AmazonMainframeModernizationRequest { private bool? _applyDuringMaintenanceWindow; private int? _desiredCapacity; private string _engineVersion; private string _environmentId; private string _instanceType; private string _preferredMaintenanceWindow; /// /// Gets and sets the property ApplyDuringMaintenanceWindow. /// /// Indicates whether to update the runtime environment during the maintenance window. /// The default is false. Currently, Amazon Web Services Mainframe Modernization accepts /// the engineVersion parameter only if applyDuringMaintenanceWindow /// is true. If any parameter other than engineVersion is provided in UpdateEnvironmentRequest, /// it will fail if applyDuringMaintenanceWindow is set to true. /// /// public bool ApplyDuringMaintenanceWindow { get { return this._applyDuringMaintenanceWindow.GetValueOrDefault(); } set { this._applyDuringMaintenanceWindow = value; } } // Check to see if ApplyDuringMaintenanceWindow property is set internal bool IsSetApplyDuringMaintenanceWindow() { return this._applyDuringMaintenanceWindow.HasValue; } /// /// Gets and sets the property DesiredCapacity. /// /// The desired capacity for the runtime environment to update. The minimum possible value /// is 0 and the maximum is 100. /// /// public int DesiredCapacity { get { return this._desiredCapacity.GetValueOrDefault(); } set { this._desiredCapacity = value; } } // Check to see if DesiredCapacity property is set internal bool IsSetDesiredCapacity() { return this._desiredCapacity.HasValue; } /// /// Gets and sets the property EngineVersion. /// /// The version of the runtime engine for the runtime environment. /// /// public string EngineVersion { get { return this._engineVersion; } set { this._engineVersion = value; } } // Check to see if EngineVersion property is set internal bool IsSetEngineVersion() { return this._engineVersion != null; } /// /// Gets and sets the property EnvironmentId. /// /// The unique identifier of the runtime environment that you want to update. /// /// [AWSProperty(Required=true)] public string EnvironmentId { get { return this._environmentId; } set { this._environmentId = value; } } // Check to see if EnvironmentId property is set internal bool IsSetEnvironmentId() { return this._environmentId != null; } /// /// Gets and sets the property InstanceType. /// /// The instance type for the runtime environment to update. /// /// public string InstanceType { get { return this._instanceType; } set { this._instanceType = value; } } // Check to see if InstanceType property is set internal bool IsSetInstanceType() { return this._instanceType != null; } /// /// Gets and sets the property PreferredMaintenanceWindow. /// /// Configures the maintenance window you want for the runtime environment. If you do /// not provide a value, a random system-generated value will be assigned. /// /// public string PreferredMaintenanceWindow { get { return this._preferredMaintenanceWindow; } set { this._preferredMaintenanceWindow = value; } } // Check to see if PreferredMaintenanceWindow property is set internal bool IsSetPreferredMaintenanceWindow() { return this._preferredMaintenanceWindow != null; } } }