/*
* 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
{
///
/// Represents metadata about a patch.
///
public partial class Patch
{
private List _advisoryIds = new List();
private string _arch;
private List _bugzillaIds = new List();
private string _classification;
private string _contentUrl;
private List _cveIds = new List();
private string _description;
private int? _epoch;
private string _id;
private string _kbNumber;
private string _language;
private string _msrcNumber;
private string _msrcSeverity;
private string _name;
private string _product;
private string _productFamily;
private string _release;
private DateTime? _releaseDate;
private string _repository;
private string _severity;
private string _title;
private string _vendor;
private string _version;
///
/// Gets and sets the property AdvisoryIds.
///
/// The Advisory ID of the patch. For example, RHSA-2020:3779
. Applies to
/// Linux-based managed nodes only.
///
///
public List AdvisoryIds
{
get { return this._advisoryIds; }
set { this._advisoryIds = value; }
}
// Check to see if AdvisoryIds property is set
internal bool IsSetAdvisoryIds()
{
return this._advisoryIds != null && this._advisoryIds.Count > 0;
}
///
/// Gets and sets the property Arch.
///
/// The architecture of the patch. For example, in example-pkg-0.710.10-2.7.abcd.x86_64
,
/// the architecture is indicated by x86_64
. Applies to Linux-based managed
/// nodes only.
///
///
public string Arch
{
get { return this._arch; }
set { this._arch = value; }
}
// Check to see if Arch property is set
internal bool IsSetArch()
{
return this._arch != null;
}
///
/// Gets and sets the property BugzillaIds.
///
/// The Bugzilla ID of the patch. For example, 1600646
. Applies to Linux-based
/// managed nodes only.
///
///
public List BugzillaIds
{
get { return this._bugzillaIds; }
set { this._bugzillaIds = value; }
}
// Check to see if BugzillaIds property is set
internal bool IsSetBugzillaIds()
{
return this._bugzillaIds != null && this._bugzillaIds.Count > 0;
}
///
/// Gets and sets the property Classification.
///
/// The classification of the patch. For example, SecurityUpdates
, Updates
,
/// or CriticalUpdates
.
///
///
public string Classification
{
get { return this._classification; }
set { this._classification = value; }
}
// Check to see if Classification property is set
internal bool IsSetClassification()
{
return this._classification != null;
}
///
/// Gets and sets the property ContentUrl.
///
/// The URL where more information can be obtained about the patch.
///
///
public string ContentUrl
{
get { return this._contentUrl; }
set { this._contentUrl = value; }
}
// Check to see if ContentUrl property is set
internal bool IsSetContentUrl()
{
return this._contentUrl != null;
}
///
/// Gets and sets the property CVEIds.
///
/// The Common Vulnerabilities and Exposures (CVE) ID of the patch. For example, CVE-2011-3192
.
/// Applies to Linux-based managed nodes only.
///
///
public List CVEIds
{
get { return this._cveIds; }
set { this._cveIds = value; }
}
// Check to see if CVEIds property is set
internal bool IsSetCVEIds()
{
return this._cveIds != null && this._cveIds.Count > 0;
}
///
/// Gets and sets the property Description.
///
/// The description of the patch.
///
///
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 Epoch.
///
/// The epoch of the patch. For example in pkg-example-EE-20180914-2.2.amzn1.noarch
,
/// the epoch value is 20180914-2
. Applies to Linux-based managed nodes only.
///
///
public int Epoch
{
get { return this._epoch.GetValueOrDefault(); }
set { this._epoch = value; }
}
// Check to see if Epoch property is set
internal bool IsSetEpoch()
{
return this._epoch.HasValue;
}
///
/// Gets and sets the property Id.
///
/// The ID of the patch. Applies to Windows patches only.
///
///
///
/// This ID isn't the same as the Microsoft Knowledge Base ID.
///
///
///
[AWSProperty(Min=1, Max=100)]
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 KbNumber.
///
/// The Microsoft Knowledge Base ID of the patch. Applies to Windows patches only.
///
///
public string KbNumber
{
get { return this._kbNumber; }
set { this._kbNumber = value; }
}
// Check to see if KbNumber property is set
internal bool IsSetKbNumber()
{
return this._kbNumber != null;
}
///
/// Gets and sets the property Language.
///
/// The language of the patch if it's language-specific.
///
///
public string Language
{
get { return this._language; }
set { this._language = value; }
}
// Check to see if Language property is set
internal bool IsSetLanguage()
{
return this._language != null;
}
///
/// Gets and sets the property MsrcNumber.
///
/// The ID of the Microsoft Security Response Center (MSRC) bulletin the patch is related
/// to. For example, MS14-045
. Applies to Windows patches only.
///
///
public string MsrcNumber
{
get { return this._msrcNumber; }
set { this._msrcNumber = value; }
}
// Check to see if MsrcNumber property is set
internal bool IsSetMsrcNumber()
{
return this._msrcNumber != null;
}
///
/// Gets and sets the property MsrcSeverity.
///
/// The severity of the patch, such as Critical
, Important
,
/// or Moderate
. Applies to Windows patches only.
///
///
public string MsrcSeverity
{
get { return this._msrcSeverity; }
set { this._msrcSeverity = value; }
}
// Check to see if MsrcSeverity property is set
internal bool IsSetMsrcSeverity()
{
return this._msrcSeverity != null;
}
///
/// Gets and sets the property Name.
///
/// The name of the patch. Applies to Linux-based managed nodes only.
///
///
public string Name
{
get { return this._name; }
set { this._name = value; }
}
// Check to see if Name property is set
internal bool IsSetName()
{
return this._name != null;
}
///
/// Gets and sets the property Product.
///
/// The specific product the patch is applicable for. For example, WindowsServer2016
/// or AmazonLinux2018.03
.
///
///
public string Product
{
get { return this._product; }
set { this._product = value; }
}
// Check to see if Product property is set
internal bool IsSetProduct()
{
return this._product != null;
}
///
/// Gets and sets the property ProductFamily.
///
/// The product family the patch is applicable for. For example, Windows
/// or Amazon Linux 2
.
///
///
public string ProductFamily
{
get { return this._productFamily; }
set { this._productFamily = value; }
}
// Check to see if ProductFamily property is set
internal bool IsSetProductFamily()
{
return this._productFamily != null;
}
///
/// Gets and sets the property Release.
///
/// The particular release of a patch. For example, in pkg-example-EE-20180914-2.2.amzn1.noarch
,
/// the release is 2.amaz1
. Applies to Linux-based managed nodes only.
///
///
public string Release
{
get { return this._release; }
set { this._release = value; }
}
// Check to see if Release property is set
internal bool IsSetRelease()
{
return this._release != null;
}
///
/// Gets and sets the property ReleaseDate.
///
/// The date the patch was released.
///
///
public DateTime ReleaseDate
{
get { return this._releaseDate.GetValueOrDefault(); }
set { this._releaseDate = value; }
}
// Check to see if ReleaseDate property is set
internal bool IsSetReleaseDate()
{
return this._releaseDate.HasValue;
}
///
/// Gets and sets the property Repository.
///
/// The source patch repository for the operating system and version, such as trusty-security
/// for Ubuntu Server 14.04 LTE and focal-security
for Ubuntu Server 20.04
/// LTE. Applies to Linux-based managed nodes only.
///
///
public string Repository
{
get { return this._repository; }
set { this._repository = value; }
}
// Check to see if Repository property is set
internal bool IsSetRepository()
{
return this._repository != null;
}
///
/// Gets and sets the property Severity.
///
/// The severity level of the patch. For example, CRITICAL
or MODERATE
.
///
///
public string 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 Title.
///
/// The title of the patch.
///
///
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;
}
///
/// Gets and sets the property Vendor.
///
/// The name of the vendor providing the patch.
///
///
public string Vendor
{
get { return this._vendor; }
set { this._vendor = value; }
}
// Check to see if Vendor property is set
internal bool IsSetVendor()
{
return this._vendor != null;
}
///
/// Gets and sets the property Version.
///
/// The version number of the patch. For example, in example-pkg-1.710.10-2.7.abcd.x86_64
,
/// the version number is indicated by -1
. Applies to Linux-based managed
/// nodes only.
///
///
public string Version
{
get { return this._version; }
set { this._version = value; }
}
// Check to see if Version property is set
internal bool IsSetVersion()
{
return this._version != null;
}
}
}