/* * 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 emr-serverless-2021-07-13.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.EMRServerless.Model { /// /// Container for the parameters to the UpdateApplication operation. /// Updates a specified application. An application has to be in a stopped or created /// state in order to be updated. /// public partial class UpdateApplicationRequest : AmazonEMRServerlessRequest { private string _applicationId; private Architecture _architecture; private AutoStartConfig _autoStartConfiguration; private AutoStopConfig _autoStopConfiguration; private string _clientToken; private ImageConfigurationInput _imageConfiguration; private Dictionary _initialCapacity = new Dictionary(); private MaximumAllowedResources _maximumCapacity; private NetworkConfiguration _networkConfiguration; private string _releaseLabel; private Dictionary _workerTypeSpecifications = new Dictionary(); /// /// Gets and sets the property ApplicationId. /// /// The ID of the application to update. /// /// [AWSProperty(Required=true, Min=1, Max=64)] public string ApplicationId { get { return this._applicationId; } set { this._applicationId = value; } } // Check to see if ApplicationId property is set internal bool IsSetApplicationId() { return this._applicationId != null; } /// /// Gets and sets the property Architecture. /// /// The CPU architecture of an application. /// /// public Architecture Architecture { get { return this._architecture; } set { this._architecture = value; } } // Check to see if Architecture property is set internal bool IsSetArchitecture() { return this._architecture != null; } /// /// Gets and sets the property AutoStartConfiguration. /// /// The configuration for an application to automatically start on job submission. /// /// public AutoStartConfig AutoStartConfiguration { get { return this._autoStartConfiguration; } set { this._autoStartConfiguration = value; } } // Check to see if AutoStartConfiguration property is set internal bool IsSetAutoStartConfiguration() { return this._autoStartConfiguration != null; } /// /// Gets and sets the property AutoStopConfiguration. /// /// The configuration for an application to automatically stop after a certain amount /// of time being idle. /// /// public AutoStopConfig AutoStopConfiguration { get { return this._autoStopConfiguration; } set { this._autoStopConfiguration = value; } } // Check to see if AutoStopConfiguration property is set internal bool IsSetAutoStopConfiguration() { return this._autoStopConfiguration != null; } /// /// Gets and sets the property ClientToken. /// /// The client idempotency token of the application to update. Its value must be unique /// for each request. /// /// [AWSProperty(Min=1, Max=64)] public string ClientToken { get { return this._clientToken; } set { this._clientToken = value; } } // Check to see if ClientToken property is set internal bool IsSetClientToken() { return this._clientToken != null; } /// /// Gets and sets the property ImageConfiguration. /// /// The image configuration to be used for all worker types. You can either set this parameter /// or imageConfiguration for each worker type in WorkerTypeSpecificationInput. /// /// public ImageConfigurationInput ImageConfiguration { get { return this._imageConfiguration; } set { this._imageConfiguration = value; } } // Check to see if ImageConfiguration property is set internal bool IsSetImageConfiguration() { return this._imageConfiguration != null; } /// /// Gets and sets the property InitialCapacity. /// /// The capacity to initialize when the application is updated. /// /// [AWSProperty(Min=0, Max=10)] public Dictionary InitialCapacity { get { return this._initialCapacity; } set { this._initialCapacity = value; } } // Check to see if InitialCapacity property is set internal bool IsSetInitialCapacity() { return this._initialCapacity != null && this._initialCapacity.Count > 0; } /// /// Gets and sets the property MaximumCapacity. /// /// The maximum capacity to allocate when the application is updated. This is cumulative /// across all workers at any given point in time during the lifespan of the application. /// No new resources will be created once any one of the defined limits is hit. /// /// public MaximumAllowedResources MaximumCapacity { get { return this._maximumCapacity; } set { this._maximumCapacity = value; } } // Check to see if MaximumCapacity property is set internal bool IsSetMaximumCapacity() { return this._maximumCapacity != null; } /// /// Gets and sets the property NetworkConfiguration. /// public NetworkConfiguration NetworkConfiguration { get { return this._networkConfiguration; } set { this._networkConfiguration = value; } } // Check to see if NetworkConfiguration property is set internal bool IsSetNetworkConfiguration() { return this._networkConfiguration != null; } /// /// Gets and sets the property ReleaseLabel. /// /// The Amazon EMR release label for the application. You can change the release label /// to use a different release of Amazon EMR. /// /// [AWSProperty(Min=1, Max=64)] public string ReleaseLabel { get { return this._releaseLabel; } set { this._releaseLabel = value; } } // Check to see if ReleaseLabel property is set internal bool IsSetReleaseLabel() { return this._releaseLabel != null; } /// /// Gets and sets the property WorkerTypeSpecifications. /// /// The key-value pairs that specify worker type to WorkerTypeSpecificationInput. /// This parameter must contain all valid worker types for a Spark or Hive application. /// Valid worker types include Driver and Executor for Spark /// applications and HiveDriver and TezTask for Hive applications. /// You can either set image details in this parameter for each worker type, or in imageConfiguration /// for all worker types. /// /// public Dictionary WorkerTypeSpecifications { get { return this._workerTypeSpecifications; } set { this._workerTypeSpecifications = value; } } // Check to see if WorkerTypeSpecifications property is set internal bool IsSetWorkerTypeSpecifications() { return this._workerTypeSpecifications != null && this._workerTypeSpecifications.Count > 0; } } }