/* * 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 devicefarm-2015-06-23.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.DeviceFarm.Model { /// /// Container for the parameters to the CreateInstanceProfile operation. /// Creates a profile that can be applied to one or more private fleet device instances. /// public partial class CreateInstanceProfileRequest : AmazonDeviceFarmRequest { private string _description; private List _excludeAppPackagesFromCleanup = new List(); private string _name; private bool? _packageCleanup; private bool? _rebootAfterUse; /// /// Gets and sets the property Description. /// /// The description of your instance profile. /// /// [AWSProperty(Min=0, Max=16384)] 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 ExcludeAppPackagesFromCleanup. /// /// An array of strings that specifies the list of app packages that should not be cleaned /// up from the device after a test run. /// /// /// /// The list of packages is considered only if you set packageCleanup to /// true. /// /// public List ExcludeAppPackagesFromCleanup { get { return this._excludeAppPackagesFromCleanup; } set { this._excludeAppPackagesFromCleanup = value; } } // Check to see if ExcludeAppPackagesFromCleanup property is set internal bool IsSetExcludeAppPackagesFromCleanup() { return this._excludeAppPackagesFromCleanup != null && this._excludeAppPackagesFromCleanup.Count > 0; } /// /// Gets and sets the property Name. /// /// The name of your instance profile. /// /// [AWSProperty(Required=true, Min=0, Max=256)] 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 PackageCleanup. /// /// When set to true, Device Farm removes app packages after a test run. /// The default value is false for private devices. /// /// public bool PackageCleanup { get { return this._packageCleanup.GetValueOrDefault(); } set { this._packageCleanup = value; } } // Check to see if PackageCleanup property is set internal bool IsSetPackageCleanup() { return this._packageCleanup.HasValue; } /// /// Gets and sets the property RebootAfterUse. /// /// When set to true, Device Farm reboots the instance after a test run. /// The default value is true. /// /// public bool RebootAfterUse { get { return this._rebootAfterUse.GetValueOrDefault(); } set { this._rebootAfterUse = value; } } // Check to see if RebootAfterUse property is set internal bool IsSetRebootAfterUse() { return this._rebootAfterUse.HasValue; } } }