/* * 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 workspaces-web-2020-07-08.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.WorkSpacesWeb.Model { /// /// The IP access settings resource that can be associated with a web portal. /// public partial class IpAccessSettings { private List _associatedPortalArns = new List(); private DateTime? _creationDate; private string _description; private string _displayName; private string _ipAccessSettingsArn; private List _ipRules = new List(); /// /// Gets and sets the property AssociatedPortalArns. /// /// A list of web portal ARNs that this IP access settings resource is associated with. /// /// public List AssociatedPortalArns { get { return this._associatedPortalArns; } set { this._associatedPortalArns = value; } } // Check to see if AssociatedPortalArns property is set internal bool IsSetAssociatedPortalArns() { return this._associatedPortalArns != null && this._associatedPortalArns.Count > 0; } /// /// Gets and sets the property CreationDate. /// /// The creation date timestamp of the IP access settings. /// /// public DateTime CreationDate { get { return this._creationDate.GetValueOrDefault(); } set { this._creationDate = value; } } // Check to see if CreationDate property is set internal bool IsSetCreationDate() { return this._creationDate.HasValue; } /// /// Gets and sets the property Description. /// /// The description of the IP access settings. /// /// [AWSProperty(Sensitive=true, Min=1, Max=256)] public string Description { get { return this._description; } set { this._description = value; } } // Check to see if Description property is set internal bool IsSetDescription() { return this._description != null; } /// /// Gets and sets the property DisplayName. /// /// The display name of the IP access settings. /// /// [AWSProperty(Sensitive=true, Min=1, Max=64)] public string DisplayName { get { return this._displayName; } set { this._displayName = value; } } // Check to see if DisplayName property is set internal bool IsSetDisplayName() { return this._displayName != null; } /// /// Gets and sets the property IpAccessSettingsArn. /// /// The ARN of the IP access settings resource. /// /// [AWSProperty(Required=true, Min=20, Max=2048)] public string IpAccessSettingsArn { get { return this._ipAccessSettingsArn; } set { this._ipAccessSettingsArn = value; } } // Check to see if IpAccessSettingsArn property is set internal bool IsSetIpAccessSettingsArn() { return this._ipAccessSettingsArn != null; } /// /// Gets and sets the property IpRules. /// /// The IP rules of the IP access settings. /// /// [AWSProperty(Sensitive=true, Min=1, Max=100)] public List IpRules { get { return this._ipRules; } set { this._ipRules = value; } } // Check to see if IpRules property is set internal bool IsSetIpRules() { return this._ipRules != null && this._ipRules.Count > 0; } } }