/* * 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 omics-2022-11-28.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; using Amazon.Runtime.Internal.Auth; namespace Amazon.Omics.Model { /// /// Container for the parameters to the CreateRunGroup operation. /// Creates a run group. /// public partial class CreateRunGroupRequest : AmazonOmicsRequest { private int? _maxCpus; private int? _maxDuration; private int? _maxGpus; private int? _maxRuns; private string _name; private string _requestId; private Dictionary _tags = new Dictionary(); /// /// Gets and sets the property MaxCpus. /// /// The maximum number of CPUs to use in the group. /// /// [AWSProperty(Min=1, Max=100000)] public int MaxCpus { get { return this._maxCpus.GetValueOrDefault(); } set { this._maxCpus = value; } } // Check to see if MaxCpus property is set internal bool IsSetMaxCpus() { return this._maxCpus.HasValue; } /// /// Gets and sets the property MaxDuration. /// /// A maximum run time for the group in minutes. /// /// [AWSProperty(Min=1, Max=100000)] public int MaxDuration { get { return this._maxDuration.GetValueOrDefault(); } set { this._maxDuration = value; } } // Check to see if MaxDuration property is set internal bool IsSetMaxDuration() { return this._maxDuration.HasValue; } /// /// Gets and sets the property MaxGpus. /// /// The maximum GPUs that can be used by a run group. /// /// [AWSProperty(Min=1, Max=100000)] public int MaxGpus { get { return this._maxGpus.GetValueOrDefault(); } set { this._maxGpus = value; } } // Check to see if MaxGpus property is set internal bool IsSetMaxGpus() { return this._maxGpus.HasValue; } /// /// Gets and sets the property MaxRuns. /// /// The maximum number of concurrent runs for the group. /// /// [AWSProperty(Min=1, Max=100000)] public int MaxRuns { get { return this._maxRuns.GetValueOrDefault(); } set { this._maxRuns = value; } } // Check to see if MaxRuns property is set internal bool IsSetMaxRuns() { return this._maxRuns.HasValue; } /// /// Gets and sets the property Name. /// /// A name for the group. /// /// [AWSProperty(Min=1, Max=128)] 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 RequestId. /// /// To ensure that requests don't run multiple times, specify a unique ID for each request. /// /// [AWSProperty(Min=1, Max=128)] public string RequestId { get { return this._requestId; } set { this._requestId = value; } } // Check to see if RequestId property is set internal bool IsSetRequestId() { return this._requestId != null; } /// /// Gets and sets the property Tags. /// /// Tags for the group. /// /// 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; } /// /// Get the signer to use for this request. /// /// A signer for this request. override protected AbstractAWSSigner CreateSigner() { return new AWS4Signer(); } } }