/*
* 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 iotsecuretunneling-2018-10-05.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.IoTSecureTunneling.Model
{
///
/// Container for the parameters to the CloseTunnel operation.
/// Closes a tunnel identified by the unique tunnel id. When a CloseTunnel
/// request is received, we close the WebSocket connections between the client and proxy
/// server so no data can be transmitted.
///
///
///
/// Requires permission to access the CloseTunnel
/// action.
///
///
public partial class CloseTunnelRequest : AmazonIoTSecureTunnelingRequest
{
private bool? _delete;
private string _tunnelId;
///
/// Gets and sets the property Delete.
///
/// When set to true, IoT Secure Tunneling deletes the tunnel data immediately.
///
///
public bool Delete
{
get { return this._delete.GetValueOrDefault(); }
set { this._delete = value; }
}
// Check to see if Delete property is set
internal bool IsSetDelete()
{
return this._delete.HasValue;
}
///
/// Gets and sets the property TunnelId.
///
/// The ID of the tunnel to close.
///
///
[AWSProperty(Required=true)]
public string TunnelId
{
get { return this._tunnelId; }
set { this._tunnelId = value; }
}
// Check to see if TunnelId property is set
internal bool IsSetTunnelId()
{
return this._tunnelId != null;
}
}
}