/* * 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 backup-2018-11-15.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.Backup.Model { /// /// Contains an array of triplets made up of a condition type (such as StringEquals), /// a key, and a value. Used to filter resources using their tags and assign them to a /// backup plan. Case sensitive. /// public partial class Condition { private string _conditionKey; private ConditionType _conditionType; private string _conditionValue; /// /// Gets and sets the property ConditionKey. /// /// The key in a key-value pair. For example, in the tag Department: Accounting, /// Department is the key. /// /// [AWSProperty(Required=true)] public string ConditionKey { get { return this._conditionKey; } set { this._conditionKey = value; } } // Check to see if ConditionKey property is set internal bool IsSetConditionKey() { return this._conditionKey != null; } /// /// Gets and sets the property ConditionType. /// /// An operation applied to a key-value pair used to assign resources to your backup plan. /// Condition only supports StringEquals. For more flexible assignment options, /// including StringLike and the ability to exclude resources from your backup /// plan, use Conditions (with an "s" on the end) for your /// BackupSelection . /// /// [AWSProperty(Required=true)] public ConditionType ConditionType { get { return this._conditionType; } set { this._conditionType = value; } } // Check to see if ConditionType property is set internal bool IsSetConditionType() { return this._conditionType != null; } /// /// Gets and sets the property ConditionValue. /// /// The value in a key-value pair. For example, in the tag Department: Accounting, /// Accounting is the value. /// /// [AWSProperty(Required=true)] public string ConditionValue { get { return this._conditionValue; } set { this._conditionValue = value; } } // Check to see if ConditionValue property is set internal bool IsSetConditionValue() { return this._conditionValue != null; } } }