/* * 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 macie2-2020-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.Macie2.Model { /// /// Provides the details of a sensitive data finding, including the types, number of occurrences, /// and locations of the sensitive data that was detected. /// public partial class ClassificationResult { private bool? _additionalOccurrences; private CustomDataIdentifiers _customDataIdentifiers; private string _mimeType; private List _sensitiveData = new List(); private long? _sizeClassified; private ClassificationResultStatus _status; /// /// Gets and sets the property AdditionalOccurrences. /// /// Specifies whether Amazon Macie detected additional occurrences of sensitive data in /// the S3 object. A finding includes location data for a maximum of 15 occurrences of /// sensitive data. /// /// /// /// This value can help you determine whether to investigate additional occurrences of /// sensitive data in an object. You can do this by referring to the corresponding sensitive /// data discovery result for the finding (classificationDetails.detailedResultsLocation). /// /// public bool AdditionalOccurrences { get { return this._additionalOccurrences.GetValueOrDefault(); } set { this._additionalOccurrences = value; } } // Check to see if AdditionalOccurrences property is set internal bool IsSetAdditionalOccurrences() { return this._additionalOccurrences.HasValue; } /// /// Gets and sets the property CustomDataIdentifiers. /// /// The custom data identifiers that detected the sensitive data and the number of occurrences /// of the data that they detected. /// /// public CustomDataIdentifiers CustomDataIdentifiers { get { return this._customDataIdentifiers; } set { this._customDataIdentifiers = value; } } // Check to see if CustomDataIdentifiers property is set internal bool IsSetCustomDataIdentifiers() { return this._customDataIdentifiers != null; } /// /// Gets and sets the property MimeType. /// /// The type of content, as a MIME type, that the finding applies to. For example, application/gzip, /// for a GNU Gzip compressed archive file, or application/pdf, for an Adobe Portable /// Document Format file. /// /// public string MimeType { get { return this._mimeType; } set { this._mimeType = value; } } // Check to see if MimeType property is set internal bool IsSetMimeType() { return this._mimeType != null; } /// /// Gets and sets the property SensitiveData. /// /// The category, types, and number of occurrences of the sensitive data that produced /// the finding. /// /// public List SensitiveData { get { return this._sensitiveData; } set { this._sensitiveData = value; } } // Check to see if SensitiveData property is set internal bool IsSetSensitiveData() { return this._sensitiveData != null && this._sensitiveData.Count > 0; } /// /// Gets and sets the property SizeClassified. /// /// The total size, in bytes, of the data that the finding applies to. /// /// public long SizeClassified { get { return this._sizeClassified.GetValueOrDefault(); } set { this._sizeClassified = value; } } // Check to see if SizeClassified property is set internal bool IsSetSizeClassified() { return this._sizeClassified.HasValue; } /// /// Gets and sets the property Status. /// /// The status of the finding. /// /// public ClassificationResultStatus Status { get { return this._status; } set { this._status = value; } } // Check to see if Status property is set internal bool IsSetStatus() { return this._status != null; } } }