/*
* 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 ecs-2014-11-13.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.ECS.Model
{
///
/// The details for the service registry.
///
///
///
/// Each service may be associated with one service registry. Multiple service registries
/// for each service are not supported.
///
///
///
/// When you add, update, or remove the service registries configuration, Amazon ECS starts
/// a new deployment. New tasks are registered and deregistered to the updated service
/// registry configuration.
///
///
public partial class ServiceRegistry
{
private string _containerName;
private int? _containerPort;
private int? _port;
private string _registryArn;
///
/// Gets and sets the property ContainerName.
///
/// The container name value to be used for your service discovery service. It's already
/// specified in the task definition. If the task definition that your service task specifies
/// uses the bridge
or host
network mode, you must specify a
/// containerName
and containerPort
combination from the task
/// definition. If the task definition that your service task specifies uses the awsvpc
/// network mode and a type SRV DNS record is used, you must specify either a containerName
/// and containerPort
combination or a port
value. However,
/// you can't specify both.
///
///
public string ContainerName
{
get { return this._containerName; }
set { this._containerName = value; }
}
// Check to see if ContainerName property is set
internal bool IsSetContainerName()
{
return this._containerName != null;
}
///
/// Gets and sets the property ContainerPort.
///
/// The port value to be used for your service discovery service. It's already specified
/// in the task definition. If the task definition your service task specifies uses the
/// bridge
or host
network mode, you must specify a containerName
/// and containerPort
combination from the task definition. If the task definition
/// your service task specifies uses the awsvpc
network mode and a type SRV
/// DNS record is used, you must specify either a containerName
and containerPort
/// combination or a port
value. However, you can't specify both.
///
///
public int ContainerPort
{
get { return this._containerPort.GetValueOrDefault(); }
set { this._containerPort = value; }
}
// Check to see if ContainerPort property is set
internal bool IsSetContainerPort()
{
return this._containerPort.HasValue;
}
///
/// Gets and sets the property Port.
///
/// The port value used if your service discovery service specified an SRV record. This
/// field might be used if both the awsvpc
network mode and SRV records are
/// used.
///
///
public int Port
{
get { return this._port.GetValueOrDefault(); }
set { this._port = value; }
}
// Check to see if Port property is set
internal bool IsSetPort()
{
return this._port.HasValue;
}
///
/// Gets and sets the property RegistryArn.
///
/// The Amazon Resource Name (ARN) of the service registry. The currently supported service
/// registry is Cloud Map. For more information, see CreateService.
///
///
public string RegistryArn
{
get { return this._registryArn; }
set { this._registryArn = value; }
}
// Check to see if RegistryArn property is set
internal bool IsSetRegistryArn()
{
return this._registryArn != null;
}
}
}