/* * 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 vpc-lattice-2022-11-30.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.VPCLattice.Model { /// /// Describes criteria that can be applied to incoming requests. /// public partial class HttpMatch { private List _headerMatches = new List(); private string _method; private PathMatch _pathMatch; /// /// Gets and sets the property HeaderMatches. /// /// The header matches. Matches incoming requests with rule based on request header value /// before applying rule action. /// /// [AWSProperty(Min=1, Max=5)] public List HeaderMatches { get { return this._headerMatches; } set { this._headerMatches = value; } } // Check to see if HeaderMatches property is set internal bool IsSetHeaderMatches() { return this._headerMatches != null && this._headerMatches.Count > 0; } /// /// Gets and sets the property Method. /// /// The HTTP method type. /// /// [AWSProperty(Min=0, Max=16)] public string Method { get { return this._method; } set { this._method = value; } } // Check to see if Method property is set internal bool IsSetMethod() { return this._method != null; } /// /// Gets and sets the property PathMatch. /// /// The path match. /// /// public PathMatch PathMatch { get { return this._pathMatch; } set { this._pathMatch = value; } } // Check to see if PathMatch property is set internal bool IsSetPathMatch() { return this._pathMatch != null; } } }