/* * 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 elasticbeanstalk-2010-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.ElasticBeanstalk.Model { /// /// Container for the parameters to the UpdateEnvironment operation. /// Updates the environment description, deploys a new application version, updates the /// configuration settings to an entirely new configuration template, or updates select /// configuration option values in the running environment. /// /// /// /// Attempting to update both the release and configuration is not allowed and AWS Elastic /// Beanstalk returns an InvalidParameterCombination error. /// /// /// /// When updating the configuration settings to a new template or individual settings, /// a draft configuration is created and DescribeConfigurationSettings for this /// environment returns two setting descriptions with different DeploymentStatus /// values. /// /// public partial class UpdateEnvironmentRequest : AmazonElasticBeanstalkRequest { private string _applicationName; private string _description; private string _environmentId; private string _environmentName; private string _groupName; private List _optionSettings = new List(); private List _optionsToRemove = new List(); private string _platformArn; private string _solutionStackName; private string _templateName; private EnvironmentTier _tier; private string _versionLabel; /// /// Empty constructor used to set properties independently even when a simple constructor is available /// public UpdateEnvironmentRequest() { } /// /// Gets and sets the property ApplicationName. /// /// The name of the application with which the environment is associated. /// /// [AWSProperty(Min=1, Max=100)] public string ApplicationName { get { return this._applicationName; } set { this._applicationName = value; } } // Check to see if ApplicationName property is set internal bool IsSetApplicationName() { return this._applicationName != null; } /// /// Gets and sets the property Description. /// /// If this parameter is specified, AWS Elastic Beanstalk updates the description of this /// environment. /// /// [AWSProperty(Max=200)] 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 EnvironmentId. /// /// The ID of the environment to update. /// /// /// /// If no environment with this ID exists, AWS Elastic Beanstalk returns an InvalidParameterValue /// error. /// /// /// /// Condition: You must specify either this or an EnvironmentName, or both. If you do /// not specify either, AWS Elastic Beanstalk returns MissingRequiredParameter /// error. /// /// 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 EnvironmentName. /// /// The name of the environment to update. If no environment with this name exists, AWS /// Elastic Beanstalk returns an InvalidParameterValue error. /// /// /// /// Condition: You must specify either this or an EnvironmentId, or both. If you do not /// specify either, AWS Elastic Beanstalk returns MissingRequiredParameter /// error. /// /// [AWSProperty(Min=4, Max=40)] public string EnvironmentName { get { return this._environmentName; } set { this._environmentName = value; } } // Check to see if EnvironmentName property is set internal bool IsSetEnvironmentName() { return this._environmentName != null; } /// /// Gets and sets the property GroupName. /// /// The name of the group to which the target environment belongs. Specify a group name /// only if the environment's name is specified in an environment manifest and not with /// the environment name or environment ID parameters. See Environment /// Manifest (env.yaml) for details. /// /// [AWSProperty(Min=1, Max=19)] public string GroupName { get { return this._groupName; } set { this._groupName = value; } } // Check to see if GroupName property is set internal bool IsSetGroupName() { return this._groupName != null; } /// /// Gets and sets the property OptionSettings. /// /// If specified, AWS Elastic Beanstalk updates the configuration set associated with /// the running environment and sets the specified configuration options to the requested /// value. /// /// public List OptionSettings { get { return this._optionSettings; } set { this._optionSettings = value; } } // Check to see if OptionSettings property is set internal bool IsSetOptionSettings() { return this._optionSettings != null && this._optionSettings.Count > 0; } /// /// Gets and sets the property OptionsToRemove. /// /// A list of custom user-defined configuration options to remove from the configuration /// set for this environment. /// /// public List OptionsToRemove { get { return this._optionsToRemove; } set { this._optionsToRemove = value; } } // Check to see if OptionsToRemove property is set internal bool IsSetOptionsToRemove() { return this._optionsToRemove != null && this._optionsToRemove.Count > 0; } /// /// Gets and sets the property PlatformArn. /// /// The ARN of the platform, if used. /// /// public string PlatformArn { get { return this._platformArn; } set { this._platformArn = value; } } // Check to see if PlatformArn property is set internal bool IsSetPlatformArn() { return this._platformArn != null; } /// /// Gets and sets the property SolutionStackName. /// /// This specifies the platform version that the environment will run after the environment /// is updated. /// /// public string SolutionStackName { get { return this._solutionStackName; } set { this._solutionStackName = value; } } // Check to see if SolutionStackName property is set internal bool IsSetSolutionStackName() { return this._solutionStackName != null; } /// /// Gets and sets the property TemplateName. /// /// If this parameter is specified, AWS Elastic Beanstalk deploys this configuration template /// to the environment. If no such configuration template is found, AWS Elastic Beanstalk /// returns an InvalidParameterValue error. /// /// [AWSProperty(Min=1, Max=100)] public string TemplateName { get { return this._templateName; } set { this._templateName = value; } } // Check to see if TemplateName property is set internal bool IsSetTemplateName() { return this._templateName != null; } /// /// Gets and sets the property Tier. /// /// This specifies the tier to use to update the environment. /// /// /// /// Condition: At this time, if you change the tier version, name, or type, AWS Elastic /// Beanstalk returns InvalidParameterValue error. /// /// public EnvironmentTier Tier { get { return this._tier; } set { this._tier = value; } } // Check to see if Tier property is set internal bool IsSetTier() { return this._tier != null; } /// /// Gets and sets the property VersionLabel. /// /// If this parameter is specified, AWS Elastic Beanstalk deploys the named application /// version to the environment. If no such application version is found, returns an InvalidParameterValue /// error. /// /// [AWSProperty(Min=1, Max=100)] public string VersionLabel { get { return this._versionLabel; } set { this._versionLabel = value; } } // Check to see if VersionLabel property is set internal bool IsSetVersionLabel() { return this._versionLabel != null; } } }