/*
* 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 vpc-lattice-2022-11-30.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.VPCLattice.Model
{
///
/// Describes the configuration of a target group. Lambda functions don't support target
/// group configuration.
///
public partial class TargetGroupConfig
{
private HealthCheckConfig _healthCheck;
private IpAddressType _ipAddressType;
private int? _port;
private TargetGroupProtocol _protocol;
private TargetGroupProtocolVersion _protocolVersion;
private string _vpcIdentifier;
///
/// Gets and sets the property HealthCheck.
///
/// The health check configuration.
///
///
public HealthCheckConfig HealthCheck
{
get { return this._healthCheck; }
set { this._healthCheck = value; }
}
// Check to see if HealthCheck property is set
internal bool IsSetHealthCheck()
{
return this._healthCheck != null;
}
///
/// Gets and sets the property IpAddressType.
///
/// The type of IP address used for the target group. The possible values are ipv4
/// and ipv6
. This is an optional parameter. If not specified, the IP address
/// type defaults to ipv4
.
///
///
public IpAddressType IpAddressType
{
get { return this._ipAddressType; }
set { this._ipAddressType = value; }
}
// Check to see if IpAddressType property is set
internal bool IsSetIpAddressType()
{
return this._ipAddressType != null;
}
///
/// Gets and sets the property Port.
///
/// The port on which the targets are listening. For HTTP, the default is 80
.
/// For HTTPS, the default is 443
///
///
[AWSProperty(Required=true, Min=1, Max=65535)]
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 Protocol.
///
/// The protocol to use for routing traffic to the targets. Default is the protocol of
/// a target group.
///
///
[AWSProperty(Required=true)]
public TargetGroupProtocol Protocol
{
get { return this._protocol; }
set { this._protocol = value; }
}
// Check to see if Protocol property is set
internal bool IsSetProtocol()
{
return this._protocol != null;
}
///
/// Gets and sets the property ProtocolVersion.
///
/// The protocol version. Default value is HTTP1
.
///
///
public TargetGroupProtocolVersion ProtocolVersion
{
get { return this._protocolVersion; }
set { this._protocolVersion = value; }
}
// Check to see if ProtocolVersion property is set
internal bool IsSetProtocolVersion()
{
return this._protocolVersion != null;
}
///
/// Gets and sets the property VpcIdentifier.
///
/// The ID of the VPC.
///
///
[AWSProperty(Required=true, Min=5, Max=50)]
public string VpcIdentifier
{
get { return this._vpcIdentifier; }
set { this._vpcIdentifier = value; }
}
// Check to see if VpcIdentifier property is set
internal bool IsSetVpcIdentifier()
{
return this._vpcIdentifier != null;
}
}
}