/* * 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 elasticloadbalancingv2-2015-12-01.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.ElasticLoadBalancingV2.Model { /// /// Information about a rule. /// public partial class Rule { private List _actions = new List(); private List _conditions = new List(); private bool? _isDefault; private string _priority; private string _ruleArn; /// /// Gets and sets the property Actions. /// /// The actions. Each rule must include exactly one of the following types of actions: /// forward, redirect, or fixed-response, and it /// must be the last action to be performed. /// /// public List Actions { get { return this._actions; } set { this._actions = value; } } // Check to see if Actions property is set internal bool IsSetActions() { return this._actions != null && this._actions.Count > 0; } /// /// Gets and sets the property Conditions. /// /// The conditions. Each rule can include zero or one of the following conditions: http-request-method, /// host-header, path-pattern, and source-ip, and /// zero or more of the following conditions: http-header and query-string. /// /// public List Conditions { get { return this._conditions; } set { this._conditions = value; } } // Check to see if Conditions property is set internal bool IsSetConditions() { return this._conditions != null && this._conditions.Count > 0; } /// /// Gets and sets the property IsDefault. /// /// Indicates whether this is the default rule. /// /// public bool IsDefault { get { return this._isDefault.GetValueOrDefault(); } set { this._isDefault = value; } } // Check to see if IsDefault property is set internal bool IsSetIsDefault() { return this._isDefault.HasValue; } /// /// Gets and sets the property Priority. /// /// The priority. /// /// public string Priority { get { return this._priority; } set { this._priority = value; } } // Check to see if Priority property is set internal bool IsSetPriority() { return this._priority != null; } /// /// Gets and sets the property RuleArn. /// /// The Amazon Resource Name (ARN) of the rule. /// /// public string RuleArn { get { return this._ruleArn; } set { this._ruleArn = value; } } // Check to see if RuleArn property is set internal bool IsSetRuleArn() { return this._ruleArn != null; } } }