/*
* 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 lightsail-2016-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;
namespace Amazon.Lightsail.Model
{
///
/// Describes the settings of a container that will be launched, or that is launched,
/// to an Amazon Lightsail container service.
///
public partial class Container
{
private List _command = new List();
private Dictionary _environment = new Dictionary();
private string _image;
private Dictionary _ports = new Dictionary();
///
/// Gets and sets the property Command.
///
/// The launch command for the container.
///
///
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 Environment.
///
/// The environment variables of the container.
///
///
public Dictionary 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 Image.
///
/// The name of the image used for the container.
///
///
///
/// Container images sourced from your Lightsail container service, that are registered
/// and stored on your service, start with a colon (:
). For example, if your
/// container service name is container-service-1
, the container image label
/// is mystaticsite
, and you want to use the third (3
) version
/// of the registered container image, then you should specify :container-service-1.mystaticsite.3
.
/// To use the latest version of a container image, specify latest
instead
/// of a version number (for example, :container-service-1.mystaticsite.latest
).
/// Lightsail will automatically use the highest numbered version of the registered container
/// image.
///
///
///
/// Container images sourced from a public registry like Docker Hub don't start with a
/// colon. For example, nginx:latest
or nginx
.
///
///
public string Image
{
get { return this._image; }
set { this._image = value; }
}
// Check to see if Image property is set
internal bool IsSetImage()
{
return this._image != null;
}
///
/// Gets and sets the property Ports.
///
/// The open firewall ports of the container.
///
///
public Dictionary Ports
{
get { return this._ports; }
set { this._ports = value; }
}
// Check to see if Ports property is set
internal bool IsSetPorts()
{
return this._ports != null && this._ports.Count > 0;
}
}
}