/* * 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 fsx-2018-03-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.FSx.Model { /// /// Provides a report detailing the data repository task results of the files processed /// that match the criteria specified in the report Scope parameter. FSx /// delivers the report to the file system's linked data repository in Amazon S3, using /// the path specified in the report Path parameter. You can specify whether /// or not a report gets generated for a task using the Enabled parameter. /// public partial class CompletionReport { private bool? _enabled; private ReportFormat _format; private string _path; private ReportScope _scope; /// /// Gets and sets the property Enabled. /// /// Set Enabled to True to generate a CompletionReport /// when the task completes. If set to true, then you need to provide a report /// Scope, Path, and Format. Set Enabled /// to False if you do not want a CompletionReport generated /// when the task completes. /// /// [AWSProperty(Required=true)] public bool Enabled { get { return this._enabled.GetValueOrDefault(); } set { this._enabled = value; } } // Check to see if Enabled property is set internal bool IsSetEnabled() { return this._enabled.HasValue; } /// /// Gets and sets the property Format. /// /// Required if Enabled is set to true. Specifies the format /// of the CompletionReport. REPORT_CSV_20191124 is the only /// format currently supported. When Format is set to REPORT_CSV_20191124, /// the CompletionReport is provided in CSV format, and is delivered to {path}/task-{id}/failures.csv. /// /// /// public ReportFormat Format { get { return this._format; } set { this._format = value; } } // Check to see if Format property is set internal bool IsSetFormat() { return this._format != null; } /// /// Gets and sets the property Path. /// /// Required if Enabled is set to true. Specifies the location /// of the report on the file system's linked S3 data repository. An absolute path that /// defines where the completion report will be stored in the destination location. The /// Path you provide must be located within the file system’s ExportPath. /// An example Path value is "s3://myBucket/myExportPath/optionalPrefix". /// The report provides the following information for each file in the report: FilePath, /// FileStatus, and ErrorCode. /// /// [AWSProperty(Min=3, Max=4357)] public string Path { get { return this._path; } set { this._path = value; } } // Check to see if Path property is set internal bool IsSetPath() { return this._path != null; } /// /// Gets and sets the property Scope. /// /// Required if Enabled is set to true. Specifies the scope /// of the CompletionReport; FAILED_FILES_ONLY is the only scope /// currently supported. When Scope is set to FAILED_FILES_ONLY, /// the CompletionReport only contains information about files that the data /// repository task failed to process. /// /// public ReportScope Scope { get { return this._scope; } set { this._scope = value; } } // Check to see if Scope property is set internal bool IsSetScope() { return this._scope != null; } } }