/* * 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 compute-optimizer-2019-11-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.ComputeOptimizer.Model { /// /// Container for the parameters to the ExportECSServiceRecommendations operation. /// Exports optimization recommendations for Amazon ECS services on Fargate. /// /// /// /// Recommendations are exported in a CSV file, and its metadata in a JSON file, to an /// existing Amazon Simple Storage Service (Amazon S3) bucket that you specify. For more /// information, see Exporting /// Recommendations in the Compute Optimizer User Guide. /// /// /// /// You can only have one Amazon ECS service export job in progress per Amazon Web Services /// Region. /// /// public partial class ExportECSServiceRecommendationsRequest : AmazonComputeOptimizerRequest { private List _accountIds = new List(); private List _fieldsToExport = new List(); private FileFormat _fileFormat; private List _filters = new List(); private bool? _includeMemberAccounts; private S3DestinationConfig _s3DestinationConfig; /// /// Gets and sets the property AccountIds. /// /// The Amazon Web Services account IDs for the export Amazon ECS service recommendations. /// /// /// /// /// If your account is the management account or the delegated administrator of an organization, /// use this parameter to specify the member account you want to export recommendations /// to. /// /// /// /// This parameter can't be specified together with the include member accounts parameter. /// The parameters are mutually exclusive. /// /// /// /// If this parameter or the include member accounts parameter is omitted, the recommendations /// for member accounts aren't included in the export. /// /// /// /// You can specify multiple account IDs per request. /// /// public List AccountIds { get { return this._accountIds; } set { this._accountIds = value; } } // Check to see if AccountIds property is set internal bool IsSetAccountIds() { return this._accountIds != null && this._accountIds.Count > 0; } /// /// Gets and sets the property FieldsToExport. /// /// The recommendations data to include in the export file. For more information about /// the fields that can be exported, see Exported /// files in the Compute Optimizer User Guide. /// /// public List FieldsToExport { get { return this._fieldsToExport; } set { this._fieldsToExport = value; } } // Check to see if FieldsToExport property is set internal bool IsSetFieldsToExport() { return this._fieldsToExport != null && this._fieldsToExport.Count > 0; } /// /// Gets and sets the property FileFormat. /// /// The format of the export file. /// /// /// /// The CSV file is the only export file format currently supported. /// /// public FileFormat FileFormat { get { return this._fileFormat; } set { this._fileFormat = value; } } // Check to see if FileFormat property is set internal bool IsSetFileFormat() { return this._fileFormat != null; } /// /// Gets and sets the property Filters. /// /// An array of objects to specify a filter that exports a more specific set of Amazon /// ECS service recommendations. /// /// public List Filters { get { return this._filters; } set { this._filters = value; } } // Check to see if Filters property is set internal bool IsSetFilters() { return this._filters != null && this._filters.Count > 0; } /// /// Gets and sets the property IncludeMemberAccounts. /// /// If your account is the management account or the delegated administrator of an organization, /// this parameter indicates whether to include recommendations for resources in all member /// accounts of the organization. /// /// /// /// The member accounts must also be opted in to Compute Optimizer, and trusted access /// for Compute Optimizer must be enabled in the organization account. For more information, /// see Compute /// Optimizer and Amazon Web Services Organizations trusted access in the Compute /// Optimizer User Guide. /// /// /// /// If this parameter is omitted, recommendations for member accounts of the organization /// aren't included in the export file. /// /// /// /// If this parameter or the account ID parameter is omitted, recommendations for member /// accounts aren't included in the export. /// /// public bool IncludeMemberAccounts { get { return this._includeMemberAccounts.GetValueOrDefault(); } set { this._includeMemberAccounts = value; } } // Check to see if IncludeMemberAccounts property is set internal bool IsSetIncludeMemberAccounts() { return this._includeMemberAccounts.HasValue; } /// /// Gets and sets the property S3DestinationConfig. /// [AWSProperty(Required=true)] public S3DestinationConfig S3DestinationConfig { get { return this._s3DestinationConfig; } set { this._s3DestinationConfig = value; } } // Check to see if S3DestinationConfig property is set internal bool IsSetS3DestinationConfig() { return this._s3DestinationConfig != null; } } }