/*
* 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 pipes-2015-10-07.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.Pipes.Model
{
///
/// The overrides that are sent to a container. An empty container override can be passed
/// in. An example of an empty container override is {"containerOverrides": [ ]
/// }
. If a non-empty container override is specified, the name
parameter
/// must be included.
///
public partial class EcsContainerOverride
{
private List _command = new List();
private int? _cpu;
private List _environment = new List();
private List _environmentFiles = new List();
private int? _memory;
private int? _memoryReservation;
private string _name;
private List _resourceRequirements = new List();
///
/// Gets and sets the property Command.
///
/// The command to send to the container that overrides the default command from the Docker
/// image or the task definition. You must also specify a container name.
///
///
public List Command
{
get { return this._command; }
set { this._command = value; }
}
// Check to see if Command property is set
internal bool IsSetCommand()
{
return this._command != null && this._command.Count > 0;
}
///
/// Gets and sets the property Cpu.
///
/// The number of cpu
units reserved for the container, instead of the default
/// value from the task definition. You must also specify a container name.
///
///
public int Cpu
{
get { return this._cpu.GetValueOrDefault(); }
set { this._cpu = value; }
}
// Check to see if Cpu property is set
internal bool IsSetCpu()
{
return this._cpu.HasValue;
}
///
/// Gets and sets the property Environment.
///
/// The environment variables to send to the container. You can add new environment variables,
/// which are added to the container at launch, or you can override the existing environment
/// variables from the Docker image or the task definition. You must also specify a container
/// name.
///
///
public List Environment
{
get { return this._environment; }
set { this._environment = value; }
}
// Check to see if Environment property is set
internal bool IsSetEnvironment()
{
return this._environment != null && this._environment.Count > 0;
}
///
/// Gets and sets the property EnvironmentFiles.
///
/// A list of files containing the environment variables to pass to a container, instead
/// of the value from the container definition.
///
///
public List EnvironmentFiles
{
get { return this._environmentFiles; }
set { this._environmentFiles = value; }
}
// Check to see if EnvironmentFiles property is set
internal bool IsSetEnvironmentFiles()
{
return this._environmentFiles != null && this._environmentFiles.Count > 0;
}
///
/// Gets and sets the property Memory.
///
/// The hard limit (in MiB) of memory to present to the container, instead of the default
/// value from the task definition. If your container attempts to exceed the memory specified
/// here, the container is killed. You must also specify a container name.
///
///
public int Memory
{
get { return this._memory.GetValueOrDefault(); }
set { this._memory = value; }
}
// Check to see if Memory property is set
internal bool IsSetMemory()
{
return this._memory.HasValue;
}
///
/// Gets and sets the property MemoryReservation.
///
/// The soft limit (in MiB) of memory to reserve for the container, instead of the default
/// value from the task definition. You must also specify a container name.
///
///
public int MemoryReservation
{
get { return this._memoryReservation.GetValueOrDefault(); }
set { this._memoryReservation = value; }
}
// Check to see if MemoryReservation property is set
internal bool IsSetMemoryReservation()
{
return this._memoryReservation.HasValue;
}
///
/// Gets and sets the property Name.
///
/// The name of the container that receives the override. This parameter is required if
/// any override is specified.
///
///
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 ResourceRequirements.
///
/// The type and amount of a resource to assign to a container, instead of the default
/// value from the task definition. The only supported resource is a GPU.
///
///
public List ResourceRequirements
{
get { return this._resourceRequirements; }
set { this._resourceRequirements = value; }
}
// Check to see if ResourceRequirements property is set
internal bool IsSetResourceRequirements()
{
return this._resourceRequirements != null && this._resourceRequirements.Count > 0;
}
}
}