/*
* 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 migration-hub-refactor-spaces-2021-10-26.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.MigrationHubRefactorSpaces.Model
{
///
/// The configuration for the URI path route type.
///
public partial class UriPathRouteInput
{
private RouteActivationState _activationState;
private bool? _appendSourcePath;
private bool? _includeChildPaths;
private List _methods = new List();
private string _sourcePath;
///
/// Gets and sets the property ActivationState.
///
/// If set to ACTIVE
, traffic is forwarded to this route’s service after
/// the route is created.
///
///
[AWSProperty(Required=true)]
public RouteActivationState ActivationState
{
get { return this._activationState; }
set { this._activationState = value; }
}
// Check to see if ActivationState property is set
internal bool IsSetActivationState()
{
return this._activationState != null;
}
///
/// Gets and sets the property AppendSourcePath.
///
/// If set to true
, this option appends the source path to the service URL
/// endpoint.
///
///
public bool AppendSourcePath
{
get { return this._appendSourcePath.GetValueOrDefault(); }
set { this._appendSourcePath = value; }
}
// Check to see if AppendSourcePath property is set
internal bool IsSetAppendSourcePath()
{
return this._appendSourcePath.HasValue;
}
///
/// Gets and sets the property IncludeChildPaths.
///
/// Indicates whether to match all subpaths of the given source path. If this value is
/// false
, requests must match the source path exactly before they are forwarded
/// to this route's service.
///
///
public bool IncludeChildPaths
{
get { return this._includeChildPaths.GetValueOrDefault(); }
set { this._includeChildPaths = value; }
}
// Check to see if IncludeChildPaths property is set
internal bool IsSetIncludeChildPaths()
{
return this._includeChildPaths.HasValue;
}
///
/// Gets and sets the property Methods.
///
/// A list of HTTP methods to match. An empty list matches all values. If a method is
/// present, only HTTP requests using that method are forwarded to this route’s service.
///
///
///
public List Methods
{
get { return this._methods; }
set { this._methods = value; }
}
// Check to see if Methods property is set
internal bool IsSetMethods()
{
return this._methods != null && this._methods.Count > 0;
}
///
/// Gets and sets the property SourcePath.
///
/// This is the path that Refactor Spaces uses to match traffic. Paths must start with
/// /
and are relative to the base of the application. To use path parameters
/// in the source path, add a variable in curly braces. For example, the resource path
/// {user} represents a path parameter called 'user'.
///
///
[AWSProperty(Required=true, Min=1, Max=2048)]
public string SourcePath
{
get { return this._sourcePath; }
set { this._sourcePath = value; }
}
// Check to see if SourcePath property is set
internal bool IsSetSourcePath()
{
return this._sourcePath != null;
}
}
}