/*
* 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 securityhub-2018-10-26.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.SecurityHub.Model
{
///
/// The details of network-related information about a finding.
///
public partial class Network
{
private string _destinationDomain;
private string _destinationIpV4;
private string _destinationIpV6;
private int? _destinationPort;
private NetworkDirection _direction;
private PortRange _openPortRange;
private string _protocol;
private string _sourceDomain;
private string _sourceIpV4;
private string _sourceIpV6;
private string _sourceMac;
private int? _sourcePort;
///
/// Gets and sets the property DestinationDomain.
///
/// The destination domain of network-related information about a finding.
///
///
public string DestinationDomain
{
get { return this._destinationDomain; }
set { this._destinationDomain = value; }
}
// Check to see if DestinationDomain property is set
internal bool IsSetDestinationDomain()
{
return this._destinationDomain != null;
}
///
/// Gets and sets the property DestinationIpV4.
///
/// The destination IPv4 address of network-related information about a finding.
///
///
public string DestinationIpV4
{
get { return this._destinationIpV4; }
set { this._destinationIpV4 = value; }
}
// Check to see if DestinationIpV4 property is set
internal bool IsSetDestinationIpV4()
{
return this._destinationIpV4 != null;
}
///
/// Gets and sets the property DestinationIpV6.
///
/// The destination IPv6 address of network-related information about a finding.
///
///
public string DestinationIpV6
{
get { return this._destinationIpV6; }
set { this._destinationIpV6 = value; }
}
// Check to see if DestinationIpV6 property is set
internal bool IsSetDestinationIpV6()
{
return this._destinationIpV6 != null;
}
///
/// Gets and sets the property DestinationPort.
///
/// The destination port of network-related information about a finding.
///
///
public int DestinationPort
{
get { return this._destinationPort.GetValueOrDefault(); }
set { this._destinationPort = value; }
}
// Check to see if DestinationPort property is set
internal bool IsSetDestinationPort()
{
return this._destinationPort.HasValue;
}
///
/// Gets and sets the property Direction.
///
/// The direction of network traffic associated with a finding.
///
///
public NetworkDirection Direction
{
get { return this._direction; }
set { this._direction = value; }
}
// Check to see if Direction property is set
internal bool IsSetDirection()
{
return this._direction != null;
}
///
/// Gets and sets the property OpenPortRange.
///
/// The range of open ports that is present on the network.
///
///
public PortRange OpenPortRange
{
get { return this._openPortRange; }
set { this._openPortRange = value; }
}
// Check to see if OpenPortRange property is set
internal bool IsSetOpenPortRange()
{
return this._openPortRange != null;
}
///
/// Gets and sets the property Protocol.
///
/// The protocol of network-related information about a finding.
///
///
public string 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 SourceDomain.
///
/// The source domain of network-related information about a finding.
///
///
public string SourceDomain
{
get { return this._sourceDomain; }
set { this._sourceDomain = value; }
}
// Check to see if SourceDomain property is set
internal bool IsSetSourceDomain()
{
return this._sourceDomain != null;
}
///
/// Gets and sets the property SourceIpV4.
///
/// The source IPv4 address of network-related information about a finding.
///
///
public string SourceIpV4
{
get { return this._sourceIpV4; }
set { this._sourceIpV4 = value; }
}
// Check to see if SourceIpV4 property is set
internal bool IsSetSourceIpV4()
{
return this._sourceIpV4 != null;
}
///
/// Gets and sets the property SourceIpV6.
///
/// The source IPv6 address of network-related information about a finding.
///
///
public string SourceIpV6
{
get { return this._sourceIpV6; }
set { this._sourceIpV6 = value; }
}
// Check to see if SourceIpV6 property is set
internal bool IsSetSourceIpV6()
{
return this._sourceIpV6 != null;
}
///
/// Gets and sets the property SourceMac.
///
/// The source media access control (MAC) address of network-related information about
/// a finding.
///
///
public string SourceMac
{
get { return this._sourceMac; }
set { this._sourceMac = value; }
}
// Check to see if SourceMac property is set
internal bool IsSetSourceMac()
{
return this._sourceMac != null;
}
///
/// Gets and sets the property SourcePort.
///
/// The source port of network-related information about a finding.
///
///
public int SourcePort
{
get { return this._sourcePort.GetValueOrDefault(); }
set { this._sourcePort = value; }
}
// Check to see if SourcePort property is set
internal bool IsSetSourcePort()
{
return this._sourcePort.HasValue;
}
}
}