/* * 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 appstream-2016-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.AppStream.Model { /// /// Container for the parameters to the UpdateAppBlockBuilder operation. /// Updates an app block builder. /// /// /// /// If the app block builder is in the STARTING or STOPPING /// state, you can't update it. If the app block builder is in the RUNNING /// state, you can only update the DisplayName and Description. If the app block builder /// is in the STOPPED state, you can update any attribute except the Name. /// /// public partial class UpdateAppBlockBuilderRequest : AmazonAppStreamRequest { private List _accessEndpoints = new List(); private List _attributesToDelete = new List(); private string _description; private string _displayName; private bool? _enableDefaultInternetAccess; private string _iamRoleArn; private string _instanceType; private string _name; private PlatformType _platform; private VpcConfig _vpcConfig; /// /// Gets and sets the property AccessEndpoints. /// /// The list of interface VPC endpoint (interface endpoint) objects. Administrators can /// connect to the app block builder only through the specified endpoints. /// /// [AWSProperty(Min=1, Max=4)] public List AccessEndpoints { get { return this._accessEndpoints; } set { this._accessEndpoints = value; } } // Check to see if AccessEndpoints property is set internal bool IsSetAccessEndpoints() { return this._accessEndpoints != null && this._accessEndpoints.Count > 0; } /// /// Gets and sets the property AttributesToDelete. /// /// The attributes to delete from the app block builder. /// /// public List AttributesToDelete { get { return this._attributesToDelete; } set { this._attributesToDelete = value; } } // Check to see if AttributesToDelete property is set internal bool IsSetAttributesToDelete() { return this._attributesToDelete != null && this._attributesToDelete.Count > 0; } /// /// Gets and sets the property Description. /// /// The description of the app block builder. /// /// [AWSProperty(Max=256)] 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 DisplayName. /// /// The display name of the app block builder. /// /// [AWSProperty(Max=100)] public string DisplayName { get { return this._displayName; } set { this._displayName = value; } } // Check to see if DisplayName property is set internal bool IsSetDisplayName() { return this._displayName != null; } /// /// Gets and sets the property EnableDefaultInternetAccess. /// /// Enables or disables default internet access for the app block builder. /// /// public bool EnableDefaultInternetAccess { get { return this._enableDefaultInternetAccess.GetValueOrDefault(); } set { this._enableDefaultInternetAccess = value; } } // Check to see if EnableDefaultInternetAccess property is set internal bool IsSetEnableDefaultInternetAccess() { return this._enableDefaultInternetAccess.HasValue; } /// /// Gets and sets the property IamRoleArn. /// /// The Amazon Resource Name (ARN) of the IAM role to apply to the app block builder. /// To assume a role, the app block builder calls the AWS Security Token Service (STS) /// AssumeRole API operation and passes the ARN of the role to use. The operation /// creates a new session with temporary credentials. AppStream 2.0 retrieves the temporary /// credentials and creates the appstream_machine_role credential profile on the /// instance. /// /// /// /// For more information, see Using /// an IAM Role to Grant Permissions to Applications and Scripts Running on AppStream /// 2.0 Streaming Instances in the Amazon AppStream 2.0 Administration Guide. /// /// public string IamRoleArn { get { return this._iamRoleArn; } set { this._iamRoleArn = value; } } // Check to see if IamRoleArn property is set internal bool IsSetIamRoleArn() { return this._iamRoleArn != null; } /// /// Gets and sets the property InstanceType. /// /// The instance type to use when launching the app block builder. The following instance /// types are available: /// ///
  • /// /// stream.standard.small /// ///
  • /// /// stream.standard.medium /// ///
  • /// /// stream.standard.large /// ///
  • /// /// stream.standard.xlarge /// ///
  • /// /// stream.standard.2xlarge /// ///
///
[AWSProperty(Min=1)] 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 Name. /// /// The unique name for the app block builder. /// /// [AWSProperty(Required=true)] public string Name { get { return this._name; } set { this._name = value; } } // Check to see if Name property is set internal bool IsSetName() { return this._name != null; } /// /// Gets and sets the property Platform. /// /// The platform of the app block builder. /// /// /// /// WINDOWS_SERVER_2019 is the only valid value. /// /// public PlatformType Platform { get { return this._platform; } set { this._platform = value; } } // Check to see if Platform property is set internal bool IsSetPlatform() { return this._platform != null; } /// /// Gets and sets the property VpcConfig. /// /// The VPC configuration for the app block builder. /// /// /// /// App block builders require that you specify at least two subnets in different availability /// zones. /// /// public VpcConfig VpcConfig { get { return this._vpcConfig; } set { this._vpcConfig = value; } } // Check to see if VpcConfig property is set internal bool IsSetVpcConfig() { return this._vpcConfig != null; } } }