/*
* 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
{
///
/// Describes a virtual machine that is used to create an image.
///
public partial class ImageBuilder
{
private List _accessEndpoints = new List();
private string _appstreamAgentVersion;
private string _arn;
private DateTime? _createdTime;
private string _description;
private string _displayName;
private DomainJoinInfo _domainJoinInfo;
private bool? _enableDefaultInternetAccess;
private string _iamRoleArn;
private string _imageArn;
private List _imageBuilderErrors = new List();
private string _instanceType;
private string _name;
private NetworkAccessConfiguration _networkAccessConfiguration;
private PlatformType _platform;
private ImageBuilderState _state;
private ImageBuilderStateChangeReason _stateChangeReason;
private VpcConfig _vpcConfig;
///
/// Gets and sets the property AccessEndpoints.
///
/// The list of virtual private cloud (VPC) interface endpoint objects. Administrators
/// can connect to the image 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 AppstreamAgentVersion.
///
/// The version of the AppStream 2.0 agent that is currently being used by the image builder.
///
///
///
[AWSProperty(Min=1, Max=100)]
public string AppstreamAgentVersion
{
get { return this._appstreamAgentVersion; }
set { this._appstreamAgentVersion = value; }
}
// Check to see if AppstreamAgentVersion property is set
internal bool IsSetAppstreamAgentVersion()
{
return this._appstreamAgentVersion != null;
}
///
/// Gets and sets the property Arn.
///
/// The ARN for the image builder.
///
///
public string Arn
{
get { return this._arn; }
set { this._arn = value; }
}
// Check to see if Arn property is set
internal bool IsSetArn()
{
return this._arn != null;
}
///
/// Gets and sets the property CreatedTime.
///
/// The time stamp when the image builder was created.
///
///
public DateTime CreatedTime
{
get { return this._createdTime.GetValueOrDefault(); }
set { this._createdTime = value; }
}
// Check to see if CreatedTime property is set
internal bool IsSetCreatedTime()
{
return this._createdTime.HasValue;
}
///
/// Gets and sets the property Description.
///
/// The description to display.
///
///
[AWSProperty(Min=1)]
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 image builder name to display.
///
///
[AWSProperty(Min=1)]
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 DomainJoinInfo.
///
/// The name of the directory and organizational unit (OU) to use to join the image builder
/// to a Microsoft Active Directory domain.
///
///
public DomainJoinInfo DomainJoinInfo
{
get { return this._domainJoinInfo; }
set { this._domainJoinInfo = value; }
}
// Check to see if DomainJoinInfo property is set
internal bool IsSetDomainJoinInfo()
{
return this._domainJoinInfo != null;
}
///
/// Gets and sets the property EnableDefaultInternetAccess.
///
/// Enables or disables default internet access for the image 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 ARN of the IAM role that is applied to the image builder. To assume a role, the
/// image 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 ImageArn.
///
/// The ARN of the image from which this builder was created.
///
///
public string ImageArn
{
get { return this._imageArn; }
set { this._imageArn = value; }
}
// Check to see if ImageArn property is set
internal bool IsSetImageArn()
{
return this._imageArn != null;
}
///
/// Gets and sets the property ImageBuilderErrors.
///
/// The image builder errors.
///
///
public List ImageBuilderErrors
{
get { return this._imageBuilderErrors; }
set { this._imageBuilderErrors = value; }
}
// Check to see if ImageBuilderErrors property is set
internal bool IsSetImageBuilderErrors()
{
return this._imageBuilderErrors != null && this._imageBuilderErrors.Count > 0;
}
///
/// Gets and sets the property InstanceType.
///
/// The instance type for the image builder. The following instance types are available:
///
/// -
///
/// stream.standard.small
///
///
-
///
/// stream.standard.medium
///
///
-
///
/// stream.standard.large
///
///
-
///
/// stream.compute.large
///
///
-
///
/// stream.compute.xlarge
///
///
-
///
/// stream.compute.2xlarge
///
///
-
///
/// stream.compute.4xlarge
///
///
-
///
/// stream.compute.8xlarge
///
///
-
///
/// stream.memory.large
///
///
-
///
/// stream.memory.xlarge
///
///
-
///
/// stream.memory.2xlarge
///
///
-
///
/// stream.memory.4xlarge
///
///
-
///
/// stream.memory.8xlarge
///
///
-
///
/// stream.memory.z1d.large
///
///
-
///
/// stream.memory.z1d.xlarge
///
///
-
///
/// stream.memory.z1d.2xlarge
///
///
-
///
/// stream.memory.z1d.3xlarge
///
///
-
///
/// stream.memory.z1d.6xlarge
///
///
-
///
/// stream.memory.z1d.12xlarge
///
///
-
///
/// stream.graphics-design.large
///
///
-
///
/// stream.graphics-design.xlarge
///
///
-
///
/// stream.graphics-design.2xlarge
///
///
-
///
/// stream.graphics-design.4xlarge
///
///
-
///
/// stream.graphics-desktop.2xlarge
///
///
-
///
/// stream.graphics.g4dn.xlarge
///
///
-
///
/// stream.graphics.g4dn.2xlarge
///
///
-
///
/// stream.graphics.g4dn.4xlarge
///
///
-
///
/// stream.graphics.g4dn.8xlarge
///
///
-
///
/// stream.graphics.g4dn.12xlarge
///
///
-
///
/// stream.graphics.g4dn.16xlarge
///
///
-
///
/// stream.graphics-pro.4xlarge
///
///
-
///
/// stream.graphics-pro.8xlarge
///
///
-
///
/// stream.graphics-pro.16xlarge
///
///
///
[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 name of the image builder.
///
///
[AWSProperty(Required=true, Min=1)]
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 NetworkAccessConfiguration.
///
public NetworkAccessConfiguration NetworkAccessConfiguration
{
get { return this._networkAccessConfiguration; }
set { this._networkAccessConfiguration = value; }
}
// Check to see if NetworkAccessConfiguration property is set
internal bool IsSetNetworkAccessConfiguration()
{
return this._networkAccessConfiguration != null;
}
///
/// Gets and sets the property Platform.
///
/// The operating system platform of the image builder.
///
///
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 State.
///
/// The state of the image builder.
///
///
public ImageBuilderState State
{
get { return this._state; }
set { this._state = value; }
}
// Check to see if State property is set
internal bool IsSetState()
{
return this._state != null;
}
///
/// Gets and sets the property StateChangeReason.
///
/// The reason why the last state change occurred.
///
///
public ImageBuilderStateChangeReason StateChangeReason
{
get { return this._stateChangeReason; }
set { this._stateChangeReason = value; }
}
// Check to see if StateChangeReason property is set
internal bool IsSetStateChangeReason()
{
return this._stateChangeReason != null;
}
///
/// Gets and sets the property VpcConfig.
///
/// The VPC configuration of the image builder.
///
///
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;
}
}
}