/* * 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 { /// /// Container for the parameters to the DeleteDocument operation. /// Deletes the Amazon Web Services Systems Manager document (SSM document) and all managed /// node associations to the document. /// /// /// /// Before you delete the document, we recommend that you use DeleteAssociation /// to disassociate all managed nodes that are associated with the document. /// /// public partial class DeleteDocumentRequest : AmazonSimpleSystemsManagementRequest { private string _documentVersion; private bool? _force; private string _name; private string _versionName; /// /// Empty constructor used to set properties independently even when a simple constructor is available /// public DeleteDocumentRequest() { } /// /// Instantiates DeleteDocumentRequest with the parameterized properties /// /// The name of the document. public DeleteDocumentRequest(string name) { _name = name; } /// /// Gets and sets the property DocumentVersion. /// /// The version of the document that you want to delete. If not provided, all versions /// of the document are deleted. /// /// public string DocumentVersion { get { return this._documentVersion; } set { this._documentVersion = value; } } // Check to see if DocumentVersion property is set internal bool IsSetDocumentVersion() { return this._documentVersion != null; } /// /// Gets and sets the property Force. /// /// Some SSM document types require that you specify a Force flag before /// you can delete the document. For example, you must specify a Force flag /// to delete a document of type ApplicationConfigurationSchema. You can /// restrict access to the Force flag in an Identity and Access Management /// (IAM) policy. /// /// public bool Force { get { return this._force.GetValueOrDefault(); } set { this._force = value; } } // Check to see if Force property is set internal bool IsSetForce() { return this._force.HasValue; } /// /// Gets and sets the property Name. /// /// The name of the document. /// /// [AWSProperty(Required=true)] 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 VersionName. /// /// The version name of the document that you want to delete. If not provided, all versions /// of the document are deleted. /// /// public string VersionName { get { return this._versionName; } set { this._versionName = value; } } // Check to see if VersionName property is set internal bool IsSetVersionName() { return this._versionName != null; } } }