/*
* 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 CreateAppBlockBuilder operation.
/// Creates an app block builder.
///
public partial class CreateAppBlockBuilderRequest : AmazonAppStreamRequest
{
private List _accessEndpoints = new List();
private string _description;
private string _displayName;
private bool? _enableDefaultInternetAccess;
private string _iamRoleArn;
private string _instanceType;
private string _name;
private AppBlockBuilderPlatformType _platform;
private Dictionary _tags = new Dictionary();
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 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(Required=true, 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.
///
///
[AWSProperty(Required=true)]
public AppBlockBuilderPlatformType 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 Tags.
///
/// The tags to associate with the app block builder. A tag is a key-value pair, and the
/// value is optional. For example, Environment=Test. If you do not specify a value, Environment=.
///
///
///
///
/// If you do not specify a value, the value is set to an empty string.
///
///
///
/// Generally allowed characters are: letters, numbers, and spaces representable in UTF-8,
/// and the following special characters:
///
///
///
/// _ . : / = + \ - @
///
///
///
/// For more information, see Tagging
/// Your Resources in the Amazon AppStream 2.0 Administration Guide.
///
///
[AWSProperty(Min=1, Max=50)]
public Dictionary Tags
{
get { return this._tags; }
set { this._tags = value; }
}
// Check to see if Tags property is set
internal bool IsSetTags()
{
return this._tags != null && this._tags.Count > 0;
}
///
/// 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.
///
///
[AWSProperty(Required=true)]
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;
}
}
}