/* * 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 iotsitewise-2019-12-02.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.IoTSiteWise.Model { /// /// Contains an access policy that defines an identity's access to an IoT SiteWise Monitor /// resource. /// public partial class AccessPolicySummary { private DateTime? _creationDate; private string _id; private Identity _identity; private DateTime? _lastUpdateDate; private Permission _permission; private Resource _resource; /// /// Gets and sets the property CreationDate. /// /// The date the access policy was created, in Unix epoch time. /// /// 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 Id. /// /// The ID of the access policy. /// /// [AWSProperty(Required=true, Min=36, Max=36)] public string Id { get { return this._id; } set { this._id = value; } } // Check to see if Id property is set internal bool IsSetId() { return this._id != null; } /// /// Gets and sets the property Identity. /// /// The identity (an IAM Identity Center user, an IAM Identity Center group, or an IAM /// user). /// /// [AWSProperty(Required=true)] public Identity Identity { get { return this._identity; } set { this._identity = value; } } // Check to see if Identity property is set internal bool IsSetIdentity() { return this._identity != null; } /// /// Gets and sets the property LastUpdateDate. /// /// The date the access policy was last updated, in Unix epoch time. /// /// public DateTime LastUpdateDate { get { return this._lastUpdateDate.GetValueOrDefault(); } set { this._lastUpdateDate = value; } } // Check to see if LastUpdateDate property is set internal bool IsSetLastUpdateDate() { return this._lastUpdateDate.HasValue; } /// /// Gets and sets the property Permission. /// /// The permissions for the access policy. Note that a project ADMINISTRATOR /// is also known as a project owner. /// /// [AWSProperty(Required=true)] public Permission Permission { get { return this._permission; } set { this._permission = value; } } // Check to see if Permission property is set internal bool IsSetPermission() { return this._permission != null; } /// /// Gets and sets the property Resource. /// /// The IoT SiteWise Monitor resource (a portal or project). /// /// [AWSProperty(Required=true)] public Resource Resource { get { return this._resource; } set { this._resource = value; } } // Check to see if Resource property is set internal bool IsSetResource() { return this._resource != null; } } }