/*
* 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 CreateApplication operation.
/// Creates an application.
///
///
///
/// Applications are an Amazon AppStream 2.0 resource that stores the details about how
/// to launch applications on Elastic fleet streaming instances. An application consists
/// of the launch details, icon, and display name. Applications are associated with an
/// app block that contains the application binaries and other files. The applications
/// assigned to an Elastic fleet are the applications users can launch.
///
///
///
/// This is only supported for Elastic fleets.
///
///
public partial class CreateApplicationRequest : AmazonAppStreamRequest
{
private string _appBlockArn;
private string _description;
private string _displayName;
private S3Location _iconS3Location;
private List _instanceFamilies = new List();
private string _launchParameters;
private string _launchPath;
private string _name;
private List _platforms = new List();
private Dictionary _tags = new Dictionary();
private string _workingDirectory;
///
/// Gets and sets the property AppBlockArn.
///
/// The app block ARN to which the application should be associated
///
///
[AWSProperty(Required=true)]
public string AppBlockArn
{
get { return this._appBlockArn; }
set { this._appBlockArn = value; }
}
// Check to see if AppBlockArn property is set
internal bool IsSetAppBlockArn()
{
return this._appBlockArn != null;
}
///
/// Gets and sets the property Description.
///
/// The description of the application.
///
///
[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 application. This name is visible to users in the application
/// catalog.
///
///
[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 IconS3Location.
///
/// The location in S3 of the application icon.
///
///
[AWSProperty(Required=true)]
public S3Location IconS3Location
{
get { return this._iconS3Location; }
set { this._iconS3Location = value; }
}
// Check to see if IconS3Location property is set
internal bool IsSetIconS3Location()
{
return this._iconS3Location != null;
}
///
/// Gets and sets the property InstanceFamilies.
///
/// The instance families the application supports. Valid values are GENERAL_PURPOSE and
/// GRAPHICS_G4.
///
///
[AWSProperty(Required=true)]
public List InstanceFamilies
{
get { return this._instanceFamilies; }
set { this._instanceFamilies = value; }
}
// Check to see if InstanceFamilies property is set
internal bool IsSetInstanceFamilies()
{
return this._instanceFamilies != null && this._instanceFamilies.Count > 0;
}
///
/// Gets and sets the property LaunchParameters.
///
/// The launch parameters of the application.
///
///
[AWSProperty(Min=1)]
public string LaunchParameters
{
get { return this._launchParameters; }
set { this._launchParameters = value; }
}
// Check to see if LaunchParameters property is set
internal bool IsSetLaunchParameters()
{
return this._launchParameters != null;
}
///
/// Gets and sets the property LaunchPath.
///
/// The launch path of the application.
///
///
[AWSProperty(Required=true, Min=1)]
public string LaunchPath
{
get { return this._launchPath; }
set { this._launchPath = value; }
}
// Check to see if LaunchPath property is set
internal bool IsSetLaunchPath()
{
return this._launchPath != null;
}
///
/// Gets and sets the property Name.
///
/// The name of the application. This name is visible to users when display name is not
/// specified.
///
///
[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 Platforms.
///
/// The platforms the application supports. WINDOWS_SERVER_2019 and AMAZON_LINUX2 are
/// supported for Elastic fleets.
///
///
[AWSProperty(Required=true, Max=4)]
public List Platforms
{
get { return this._platforms; }
set { this._platforms = value; }
}
// Check to see if Platforms property is set
internal bool IsSetPlatforms()
{
return this._platforms != null && this._platforms.Count > 0;
}
///
/// Gets and sets the property Tags.
///
/// The tags assigned to the application.
///
///
[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 WorkingDirectory.
///
/// The working directory of the application.
///
///
[AWSProperty(Min=1)]
public string WorkingDirectory
{
get { return this._workingDirectory; }
set { this._workingDirectory = value; }
}
// Check to see if WorkingDirectory property is set
internal bool IsSetWorkingDirectory()
{
return this._workingDirectory != null;
}
}
}