/* * 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 { /// /// Defines the high-level patch compliance state for a managed node, providing information /// about the number of installed, missing, not applicable, and failed patches along with /// metadata about the operation when this information was gathered for the managed node. /// public partial class InstancePatchState { private string _baselineId; private int? _criticalNonCompliantCount; private int? _failedCount; private int? _installedCount; private int? _installedOtherCount; private int? _installedPendingRebootCount; private int? _installedRejectedCount; private string _installOverrideList; private string _instanceId; private DateTime? _lastNoRebootInstallOperationTime; private int? _missingCount; private int? _notApplicableCount; private PatchOperationType _operation; private DateTime? _operationEndTime; private DateTime? _operationStartTime; private int? _otherNonCompliantCount; private string _ownerInformation; private string _patchGroup; private RebootOption _rebootOption; private int? _securityNonCompliantCount; private string _snapshotId; private int? _unreportedNotApplicableCount; /// /// Gets and sets the property BaselineId. /// /// The ID of the patch baseline used to patch the managed node. /// /// [AWSProperty(Required=true, Min=20, Max=128)] public string BaselineId { get { return this._baselineId; } set { this._baselineId = value; } } // Check to see if BaselineId property is set internal bool IsSetBaselineId() { return this._baselineId != null; } /// /// Gets and sets the property CriticalNonCompliantCount. /// /// The number of patches per node that are specified as Critical for compliance /// reporting in the patch baseline aren't installed. These patches might be missing, /// have failed installation, were rejected, or were installed but awaiting a required /// managed node reboot. The status of these managed nodes is NON_COMPLIANT. /// /// public int CriticalNonCompliantCount { get { return this._criticalNonCompliantCount.GetValueOrDefault(); } set { this._criticalNonCompliantCount = value; } } // Check to see if CriticalNonCompliantCount property is set internal bool IsSetCriticalNonCompliantCount() { return this._criticalNonCompliantCount.HasValue; } /// /// Gets and sets the property FailedCount. /// /// The number of patches from the patch baseline that were attempted to be installed /// during the last patching operation, but failed to install. /// /// public int FailedCount { get { return this._failedCount.GetValueOrDefault(); } set { this._failedCount = value; } } // Check to see if FailedCount property is set internal bool IsSetFailedCount() { return this._failedCount.HasValue; } /// /// Gets and sets the property InstalledCount. /// /// The number of patches from the patch baseline that are installed on the managed node. /// /// public int InstalledCount { get { return this._installedCount.GetValueOrDefault(); } set { this._installedCount = value; } } // Check to see if InstalledCount property is set internal bool IsSetInstalledCount() { return this._installedCount.HasValue; } /// /// Gets and sets the property InstalledOtherCount. /// /// The number of patches not specified in the patch baseline that are installed on the /// managed node. /// /// public int InstalledOtherCount { get { return this._installedOtherCount.GetValueOrDefault(); } set { this._installedOtherCount = value; } } // Check to see if InstalledOtherCount property is set internal bool IsSetInstalledOtherCount() { return this._installedOtherCount.HasValue; } /// /// Gets and sets the property InstalledPendingRebootCount. /// /// The number of patches installed by Patch Manager since the last time the managed node /// was rebooted. /// /// public int InstalledPendingRebootCount { get { return this._installedPendingRebootCount.GetValueOrDefault(); } set { this._installedPendingRebootCount = value; } } // Check to see if InstalledPendingRebootCount property is set internal bool IsSetInstalledPendingRebootCount() { return this._installedPendingRebootCount.HasValue; } /// /// Gets and sets the property InstalledRejectedCount. /// /// The number of patches installed on a managed node that are specified in a RejectedPatches /// list. Patches with a status of InstalledRejected were typically installed /// before they were added to a RejectedPatches list. /// /// /// /// If ALLOW_AS_DEPENDENCY is the specified option for RejectedPatchesAction, /// the value of InstalledRejectedCount will always be 0 (zero). /// /// /// public int InstalledRejectedCount { get { return this._installedRejectedCount.GetValueOrDefault(); } set { this._installedRejectedCount = value; } } // Check to see if InstalledRejectedCount property is set internal bool IsSetInstalledRejectedCount() { return this._installedRejectedCount.HasValue; } /// /// Gets and sets the property InstallOverrideList. /// /// An https URL or an Amazon Simple Storage Service (Amazon S3) path-style URL to a list /// of patches to be installed. This patch installation list, which you maintain in an /// S3 bucket in YAML format and specify in the SSM document AWS-RunPatchBaseline, /// overrides the patches specified by the default patch baseline. /// /// /// /// For more information about the InstallOverrideList parameter, see About /// the AWS-RunPatchBaseline SSM document in the Amazon Web Services /// Systems Manager User Guide. /// /// [AWSProperty(Min=1, Max=256)] public string InstallOverrideList { get { return this._installOverrideList; } set { this._installOverrideList = value; } } // Check to see if InstallOverrideList property is set internal bool IsSetInstallOverrideList() { return this._installOverrideList != null; } /// /// Gets and sets the property InstanceId. /// /// The ID of the managed node the high-level patch compliance information was collected /// for. /// /// [AWSProperty(Required=true)] public string InstanceId { get { return this._instanceId; } set { this._instanceId = value; } } // Check to see if InstanceId property is set internal bool IsSetInstanceId() { return this._instanceId != null; } /// /// Gets and sets the property LastNoRebootInstallOperationTime. /// /// The time of the last attempt to patch the managed node with NoReboot /// specified as the reboot option. /// /// public DateTime LastNoRebootInstallOperationTime { get { return this._lastNoRebootInstallOperationTime.GetValueOrDefault(); } set { this._lastNoRebootInstallOperationTime = value; } } // Check to see if LastNoRebootInstallOperationTime property is set internal bool IsSetLastNoRebootInstallOperationTime() { return this._lastNoRebootInstallOperationTime.HasValue; } /// /// Gets and sets the property MissingCount. /// /// The number of patches from the patch baseline that are applicable for the managed /// node but aren't currently installed. /// /// public int MissingCount { get { return this._missingCount.GetValueOrDefault(); } set { this._missingCount = value; } } // Check to see if MissingCount property is set internal bool IsSetMissingCount() { return this._missingCount.HasValue; } /// /// Gets and sets the property NotApplicableCount. /// /// The number of patches from the patch baseline that aren't applicable for the managed /// node and therefore aren't installed on the node. This number may be truncated if the /// list of patch names is very large. The number of patches beyond this limit are reported /// in UnreportedNotApplicableCount. /// /// public int NotApplicableCount { get { return this._notApplicableCount.GetValueOrDefault(); } set { this._notApplicableCount = value; } } // Check to see if NotApplicableCount property is set internal bool IsSetNotApplicableCount() { return this._notApplicableCount.HasValue; } /// /// Gets and sets the property Operation. /// /// The type of patching operation that was performed: or /// /// /// [AWSProperty(Required=true)] public PatchOperationType Operation { get { return this._operation; } set { this._operation = value; } } // Check to see if Operation property is set internal bool IsSetOperation() { return this._operation != null; } /// /// Gets and sets the property OperationEndTime. /// /// The time the most recent patching operation completed on the managed node. /// /// [AWSProperty(Required=true)] public DateTime OperationEndTime { get { return this._operationEndTime.GetValueOrDefault(); } set { this._operationEndTime = value; } } // Check to see if OperationEndTime property is set internal bool IsSetOperationEndTime() { return this._operationEndTime.HasValue; } /// /// Gets and sets the property OperationStartTime. /// /// The time the most recent patching operation was started on the managed node. /// /// [AWSProperty(Required=true)] public DateTime OperationStartTime { get { return this._operationStartTime.GetValueOrDefault(); } set { this._operationStartTime = value; } } // Check to see if OperationStartTime property is set internal bool IsSetOperationStartTime() { return this._operationStartTime.HasValue; } /// /// Gets and sets the property OtherNonCompliantCount. /// /// The number of patches per node that are specified as other than Critical /// or Security but aren't compliant with the patch baseline. The status /// of these managed nodes is NON_COMPLIANT. /// /// public int OtherNonCompliantCount { get { return this._otherNonCompliantCount.GetValueOrDefault(); } set { this._otherNonCompliantCount = value; } } // Check to see if OtherNonCompliantCount property is set internal bool IsSetOtherNonCompliantCount() { return this._otherNonCompliantCount.HasValue; } /// /// Gets and sets the property OwnerInformation. /// /// Placeholder information. This field will always be empty in the current release of /// the service. /// /// [AWSProperty(Sensitive=true, Min=1, Max=128)] public string OwnerInformation { get { return this._ownerInformation; } set { this._ownerInformation = value; } } // Check to see if OwnerInformation property is set internal bool IsSetOwnerInformation() { return this._ownerInformation != null; } /// /// Gets and sets the property PatchGroup. /// /// The name of the patch group the managed node belongs to. /// /// [AWSProperty(Required=true, Min=1, Max=256)] public string PatchGroup { get { return this._patchGroup; } set { this._patchGroup = value; } } // Check to see if PatchGroup property is set internal bool IsSetPatchGroup() { return this._patchGroup != null; } /// /// Gets and sets the property RebootOption. /// /// Indicates the reboot option specified in the patch baseline. /// /// /// /// Reboot options apply to Install operations only. Reboots aren't attempted /// for Patch Manager Scan operations. /// /// /// public RebootOption RebootOption { get { return this._rebootOption; } set { this._rebootOption = value; } } // Check to see if RebootOption property is set internal bool IsSetRebootOption() { return this._rebootOption != null; } /// /// Gets and sets the property SecurityNonCompliantCount. /// /// The number of patches per node that are specified as Security in a patch /// advisory aren't installed. These patches might be missing, have failed installation, /// were rejected, or were installed but awaiting a required managed node reboot. The /// status of these managed nodes is NON_COMPLIANT. /// /// public int SecurityNonCompliantCount { get { return this._securityNonCompliantCount.GetValueOrDefault(); } set { this._securityNonCompliantCount = value; } } // Check to see if SecurityNonCompliantCount property is set internal bool IsSetSecurityNonCompliantCount() { return this._securityNonCompliantCount.HasValue; } /// /// Gets and sets the property SnapshotId. /// /// The ID of the patch baseline snapshot used during the patching operation when this /// compliance data was collected. /// /// [AWSProperty(Min=36, Max=36)] public string SnapshotId { get { return this._snapshotId; } set { this._snapshotId = value; } } // Check to see if SnapshotId property is set internal bool IsSetSnapshotId() { return this._snapshotId != null; } /// /// Gets and sets the property UnreportedNotApplicableCount. /// /// The number of patches beyond the supported limit of NotApplicableCount /// that aren't reported by name to Inventory. Inventory is a capability of Amazon Web /// Services Systems Manager. /// /// public int UnreportedNotApplicableCount { get { return this._unreportedNotApplicableCount.GetValueOrDefault(); } set { this._unreportedNotApplicableCount = value; } } // Check to see if UnreportedNotApplicableCount property is set internal bool IsSetUnreportedNotApplicableCount() { return this._unreportedNotApplicableCount.HasValue; } } }