/*
* 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 elasticfilesystem-2015-02-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.ElasticFileSystem.Model
{
///
/// Container for the parameters to the DescribeMountTargets operation.
/// Returns the descriptions of all the current mount targets, or a specific mount target,
/// for a file system. When requesting all of the current mount targets, the order of
/// mount targets returned in the response is unspecified.
///
///
///
/// This operation requires permissions for the elasticfilesystem:DescribeMountTargets
/// action, on either the file system ID that you specify in FileSystemId
,
/// or on the file system of the mount target that you specify in MountTargetId
.
///
///
public partial class DescribeMountTargetsRequest : AmazonElasticFileSystemRequest
{
private string _accessPointId;
private string _fileSystemId;
private string _marker;
private int? _maxItems;
private string _mountTargetId;
///
/// Empty constructor used to set properties independently even when a simple constructor is available
///
public DescribeMountTargetsRequest() { }
///
/// Instantiates DescribeMountTargetsRequest with the parameterized properties
///
/// (Optional) ID of the file system whose mount targets you want to list (String). It must be included in your request if an AccessPointId
or MountTargetId
is not included. Accepts either a file system ID or ARN as input.
public DescribeMountTargetsRequest(string fileSystemId)
{
_fileSystemId = fileSystemId;
}
///
/// Gets and sets the property AccessPointId.
///
/// (Optional) The ID of the access point whose mount targets that you want to list. It
/// must be included in your request if a FileSystemId
or MountTargetId
/// is not included in your request. Accepts either an access point ID or ARN as input.
///
///
[AWSProperty(Max=128)]
public string AccessPointId
{
get { return this._accessPointId; }
set { this._accessPointId = value; }
}
// Check to see if AccessPointId property is set
internal bool IsSetAccessPointId()
{
return this._accessPointId != null;
}
///
/// Gets and sets the property FileSystemId.
///
/// (Optional) ID of the file system whose mount targets you want to list (String). It
/// must be included in your request if an AccessPointId
or MountTargetId
/// is not included. Accepts either a file system ID or ARN as input.
///
///
[AWSProperty(Max=128)]
public string FileSystemId
{
get { return this._fileSystemId; }
set { this._fileSystemId = value; }
}
// Check to see if FileSystemId property is set
internal bool IsSetFileSystemId()
{
return this._fileSystemId != null;
}
///
/// Gets and sets the property Marker.
///
/// (Optional) Opaque pagination token returned from a previous DescribeMountTargets
/// operation (String). If present, it specifies to continue the list from where the previous
/// returning call left off.
///
///
[AWSProperty(Min=1, Max=128)]
public string Marker
{
get { return this._marker; }
set { this._marker = value; }
}
// Check to see if Marker property is set
internal bool IsSetMarker()
{
return this._marker != null;
}
///
/// Gets and sets the property MaxItems.
///
/// (Optional) Maximum number of mount targets to return in the response. Currently, this
/// number is automatically set to 10, and other values are ignored. The response is paginated
/// at 100 per page if you have more than 100 mount targets.
///
///
[AWSProperty(Min=1)]
public int MaxItems
{
get { return this._maxItems.GetValueOrDefault(); }
set { this._maxItems = value; }
}
// Check to see if MaxItems property is set
internal bool IsSetMaxItems()
{
return this._maxItems.HasValue;
}
///
/// Gets and sets the property MountTargetId.
///
/// (Optional) ID of the mount target that you want to have described (String). It must
/// be included in your request if FileSystemId
is not included. Accepts
/// either a mount target ID or ARN as input.
///
///
[AWSProperty(Min=13, Max=45)]
public string MountTargetId
{
get { return this._mountTargetId; }
set { this._mountTargetId = value; }
}
// Check to see if MountTargetId property is set
internal bool IsSetMountTargetId()
{
return this._mountTargetId != null;
}
}
}