/*
 * 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 proton-2020-07-20.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.Proton.Model
{
    /// 
    /// Container for the parameters to the ListComponents operation.
    /// List components with summary data. You can filter the result list by environment,
    /// service, or a single service instance.
    /// 
    ///  
    /// 
    /// For more information about components, see Proton
    /// components in the Proton User Guide.
    /// 
    /// 
    public partial class ListComponentsRequest : AmazonProtonRequest
    {
        private string _environmentName;
        private int? _maxResults;
        private string _nextToken;
        private string _serviceInstanceName;
        private string _serviceName;
        /// 
        /// Gets and sets the property EnvironmentName. 
        /// 
        /// The name of an environment for result list filtering. Proton returns components associated
        /// with the environment or attached to service instances running in it.
        /// 
        /// 
        [AWSProperty(Min=1, Max=100)]
        public string EnvironmentName
        {
            get { return this._environmentName; }
            set { this._environmentName = value; }
        }
        // Check to see if EnvironmentName property is set
        internal bool IsSetEnvironmentName()
        {
            return this._environmentName != null;
        }
        /// 
        /// Gets and sets the property MaxResults. 
        /// 
        /// The maximum number of components to list.
        /// 
        /// 
        [AWSProperty(Min=1, Max=100)]
        public int MaxResults
        {
            get { return this._maxResults.GetValueOrDefault(); }
            set { this._maxResults = value; }
        }
        // Check to see if MaxResults property is set
        internal bool IsSetMaxResults()
        {
            return this._maxResults.HasValue; 
        }
        /// 
        /// Gets and sets the property NextToken. 
        /// 
        /// A token that indicates the location of the next component in the array of components,
        /// after the list of components that was previously requested.
        /// 
        /// 
        public string NextToken
        {
            get { return this._nextToken; }
            set { this._nextToken = value; }
        }
        // Check to see if NextToken property is set
        internal bool IsSetNextToken()
        {
            return this._nextToken != null;
        }
        /// 
        /// Gets and sets the property ServiceInstanceName. 
        /// 
        /// The name of a service instance for result list filtering. Proton returns the component
        /// attached to the service instance, if any.
        /// 
        /// 
        [AWSProperty(Min=1, Max=100)]
        public string ServiceInstanceName
        {
            get { return this._serviceInstanceName; }
            set { this._serviceInstanceName = value; }
        }
        // Check to see if ServiceInstanceName property is set
        internal bool IsSetServiceInstanceName()
        {
            return this._serviceInstanceName != null;
        }
        /// 
        /// Gets and sets the property ServiceName. 
        /// 
        /// The name of a service for result list filtering. Proton returns components attached
        /// to service instances of the service.
        /// 
        /// 
        [AWSProperty(Min=1, Max=100)]
        public string ServiceName
        {
            get { return this._serviceName; }
            set { this._serviceName = value; }
        }
        // Check to see if ServiceName property is set
        internal bool IsSetServiceName()
        {
            return this._serviceName != null;
        }
    }
}