/*
* 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 route53resolver-2018-04-01.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.Route53Resolver.Model
{
///
/// In a CreateResolverRule
/// request, an array of the IPs that you want to forward DNS queries to.
///
public partial class TargetAddress
{
private string _ip;
private string _ipv6;
private int? _port;
///
/// Gets and sets the property Ip.
///
/// One IPv4 address that you want to forward DNS queries to.
///
///
[AWSProperty(Min=7, Max=36)]
public string Ip
{
get { return this._ip; }
set { this._ip = value; }
}
// Check to see if Ip property is set
internal bool IsSetIp()
{
return this._ip != null;
}
///
/// Gets and sets the property Ipv6.
///
/// One IPv6 address that you want to forward DNS queries to.
///
///
[AWSProperty(Min=7, Max=39)]
public string Ipv6
{
get { return this._ipv6; }
set { this._ipv6 = value; }
}
// Check to see if Ipv6 property is set
internal bool IsSetIpv6()
{
return this._ipv6 != null;
}
///
/// Gets and sets the property Port.
///
/// The port at Ip
that you want to forward DNS queries to.
///
///
[AWSProperty(Min=0, 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;
}
}
}