/* * 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 servicecatalog-2015-12-10.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.ServiceCatalog.Model { /// /// Container for the parameters to the DescribePortfolioShares operation. /// Returns a summary of each of the portfolio shares that were created for the specified /// portfolio. /// /// /// /// You can use this API to determine which accounts or organizational nodes this portfolio /// have been shared, whether the recipient entity has imported the share, and whether /// TagOptions are included with the share. /// /// /// /// The PortfolioId and Type parameters are both required. /// /// public partial class DescribePortfolioSharesRequest : AmazonServiceCatalogRequest { private int? _pageSize; private string _pageToken; private string _portfolioId; private DescribePortfolioShareType _type; /// /// Gets and sets the property PageSize. /// /// The maximum number of items to return with this call. /// /// [AWSProperty(Min=0, Max=100)] public int PageSize { get { return this._pageSize.GetValueOrDefault(); } set { this._pageSize = value; } } // Check to see if PageSize property is set internal bool IsSetPageSize() { return this._pageSize.HasValue; } /// /// Gets and sets the property PageToken. /// /// The page token for the next set of results. To retrieve the first set of results, /// use null. /// /// [AWSProperty(Max=2024)] public string PageToken { get { return this._pageToken; } set { this._pageToken = value; } } // Check to see if PageToken property is set internal bool IsSetPageToken() { return this._pageToken != null; } /// /// Gets and sets the property PortfolioId. /// /// The unique identifier of the portfolio for which shares will be retrieved. /// /// [AWSProperty(Required=true, Min=1, Max=100)] public string PortfolioId { get { return this._portfolioId; } set { this._portfolioId = value; } } // Check to see if PortfolioId property is set internal bool IsSetPortfolioId() { return this._portfolioId != null; } /// /// Gets and sets the property Type. /// /// The type of portfolio share to summarize. This field acts as a filter on the type /// of portfolio share, which can be one of the following: /// /// /// /// 1. ACCOUNT - Represents an external account to account share. /// /// /// /// 2. ORGANIZATION - Represents a share to an organization. This share is /// available to every account in the organization. /// /// /// /// 3. ORGANIZATIONAL_UNIT - Represents a share to an organizational unit. /// /// /// /// 4. ORGANIZATION_MEMBER_ACCOUNT - Represents a share to an account in /// the organization. /// /// [AWSProperty(Required=true)] public DescribePortfolioShareType Type { get { return this._type; } set { this._type = value; } } // Check to see if Type property is set internal bool IsSetType() { return this._type != null; } } }