/* * 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 fms-2018-01-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.FMS.Model { /// /// An individual Firewall Manager application. /// public partial class App { private string _appName; private long? _port; private string _protocol; /// /// Gets and sets the property AppName. /// /// The application's name. /// /// [AWSProperty(Required=true, Min=1, Max=128)] public string AppName { get { return this._appName; } set { this._appName = value; } } // Check to see if AppName property is set internal bool IsSetAppName() { return this._appName != null; } /// /// Gets and sets the property Port. /// /// The application's port number, for example 80. /// /// [AWSProperty(Required=true, Min=0, Max=65535)] public long 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 IP protocol name or number. The name can be one of tcp, udp, /// or icmp. For information on possible numbers, see Protocol /// Numbers. /// /// [AWSProperty(Required=true, Min=1, Max=20)] 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; } } }