/* * 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 ssm-2014-11-06.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.SimpleSystemsManagement.Model { /// /// Information about the compliance as defined by the resource type. For example, for /// a patch resource type, Items includes information about the PatchSeverity, /// Classification, and so on. /// public partial class ComplianceItem { private string _complianceType; private Dictionary _details = new Dictionary(); private ComplianceExecutionSummary _executionSummary; private string _id; private string _resourceId; private string _resourceType; private ComplianceSeverity _severity; private ComplianceStatus _status; private string _title; /// /// Gets and sets the property ComplianceType. /// /// The compliance type. For example, Association (for a State Manager association), Patch, /// or Custom:string are all valid compliance types. /// /// [AWSProperty(Min=1, Max=100)] public string ComplianceType { get { return this._complianceType; } set { this._complianceType = value; } } // Check to see if ComplianceType property is set internal bool IsSetComplianceType() { return this._complianceType != null; } /// /// Gets and sets the property Details. /// /// A "Key": "Value" tag combination for the compliance item. /// /// public Dictionary Details { get { return this._details; } set { this._details = value; } } // Check to see if Details property is set internal bool IsSetDetails() { return this._details != null && this._details.Count > 0; } /// /// Gets and sets the property ExecutionSummary. /// /// A summary for the compliance item. The summary includes an execution ID, the execution /// type (for example, command), and the execution time. /// /// public ComplianceExecutionSummary ExecutionSummary { get { return this._executionSummary; } set { this._executionSummary = value; } } // Check to see if ExecutionSummary property is set internal bool IsSetExecutionSummary() { return this._executionSummary != null; } /// /// Gets and sets the property Id. /// /// An ID for the compliance item. For example, if the compliance item is a Windows patch, /// the ID could be the number of the KB article; for example: KB4010320. /// /// 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 ResourceId. /// /// An ID for the resource. For a managed node, this is the node ID. /// /// [AWSProperty(Min=1, Max=100)] public string ResourceId { get { return this._resourceId; } set { this._resourceId = value; } } // Check to see if ResourceId property is set internal bool IsSetResourceId() { return this._resourceId != null; } /// /// Gets and sets the property ResourceType. /// /// The type of resource. ManagedInstance is currently the only supported /// resource type. /// /// [AWSProperty(Min=1, Max=50)] public string ResourceType { get { return this._resourceType; } set { this._resourceType = value; } } // Check to see if ResourceType property is set internal bool IsSetResourceType() { return this._resourceType != null; } /// /// Gets and sets the property Severity. /// /// The severity of the compliance status. Severity can be one of the following: Critical, /// High, Medium, Low, Informational, Unspecified. /// /// public ComplianceSeverity Severity { get { return this._severity; } set { this._severity = value; } } // Check to see if Severity property is set internal bool IsSetSeverity() { return this._severity != null; } /// /// Gets and sets the property Status. /// /// The status of the compliance item. An item is either COMPLIANT, NON_COMPLIANT, or /// an empty string (for Windows patches that aren't applicable). /// /// public ComplianceStatus Status { get { return this._status; } set { this._status = value; } } // Check to see if Status property is set internal bool IsSetStatus() { return this._status != null; } /// /// Gets and sets the property Title. /// /// A title for the compliance item. For example, if the compliance item is a Windows /// patch, the title could be the title of the KB article for the patch; for example: /// Security Update for Active Directory Federation Services. /// /// [AWSProperty(Max=500)] public string Title { get { return this._title; } set { this._title = value; } } // Check to see if Title property is set internal bool IsSetTitle() { return this._title != null; } } }