/* * 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 { /// <summary> /// 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. /// /// /// <para> /// This operation requires permissions for the <code>elasticfilesystem:DescribeMountTargets</code> /// action, on either the file system ID that you specify in <code>FileSystemId</code>, /// or on the file system of the mount target that you specify in <code>MountTargetId</code>. /// </para> /// </summary> public partial class DescribeMountTargetsRequest : AmazonElasticFileSystemRequest { private string _accessPointId; private string _fileSystemId; private string _marker; private int? _maxItems; private string _mountTargetId; /// <summary> /// Empty constructor used to set properties independently even when a simple constructor is available /// </summary> public DescribeMountTargetsRequest() { } /// <summary> /// Instantiates DescribeMountTargetsRequest with the parameterized properties /// </summary> /// <param name="fileSystemId">(Optional) ID of the file system whose mount targets you want to list (String). It must be included in your request if an <code>AccessPointId</code> or <code>MountTargetId</code> is not included. Accepts either a file system ID or ARN as input.</param> public DescribeMountTargetsRequest(string fileSystemId) { _fileSystemId = fileSystemId; } /// <summary> /// Gets and sets the property AccessPointId. /// <para> /// (Optional) The ID of the access point whose mount targets that you want to list. It /// must be included in your request if a <code>FileSystemId</code> or <code>MountTargetId</code> /// is not included in your request. Accepts either an access point ID or ARN as input. /// </para> /// </summary> [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; } /// <summary> /// Gets and sets the property FileSystemId. /// <para> /// (Optional) ID of the file system whose mount targets you want to list (String). It /// must be included in your request if an <code>AccessPointId</code> or <code>MountTargetId</code> /// is not included. Accepts either a file system ID or ARN as input. /// </para> /// </summary> [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; } /// <summary> /// Gets and sets the property Marker. /// <para> /// (Optional) Opaque pagination token returned from a previous <code>DescribeMountTargets</code> /// operation (String). If present, it specifies to continue the list from where the previous /// returning call left off. /// </para> /// </summary> [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; } /// <summary> /// Gets and sets the property MaxItems. /// <para> /// (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. /// </para> /// </summary> [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; } /// <summary> /// Gets and sets the property MountTargetId. /// <para> /// (Optional) ID of the mount target that you want to have described (String). It must /// be included in your request if <code>FileSystemId</code> is not included. Accepts /// either a mount target ID or ARN as input. /// </para> /// </summary> [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; } } }