/* * 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 { /// /// Describes the destination Amazon Simple Storage Service (Amazon S3) bucket name and /// key prefix for a recommendations export job. /// /// /// /// You must create the destination Amazon S3 bucket for your recommendations export before /// you create the export job. Compute Optimizer does not create the S3 bucket for you. /// After you create the S3 bucket, ensure that it has the required permission policy /// to allow Compute Optimizer to write the export file to it. If you plan to specify /// an object prefix when you create the export job, you must include the object prefix /// in the policy that you add to the S3 bucket. For more information, see Amazon /// S3 Bucket Policy for Compute Optimizer in the Compute Optimizer User Guide. /// /// public partial class S3DestinationConfig { private string _bucket; private string _keyPrefix; /// /// Gets and sets the property Bucket. /// /// The name of the Amazon S3 bucket to use as the destination for an export job. /// /// public string Bucket { get { return this._bucket; } set { this._bucket = value; } } // Check to see if Bucket property is set internal bool IsSetBucket() { return this._bucket != null; } /// /// Gets and sets the property KeyPrefix. /// /// The Amazon S3 bucket prefix for an export job. /// /// public string KeyPrefix { get { return this._keyPrefix; } set { this._keyPrefix = value; } } // Check to see if KeyPrefix property is set internal bool IsSetKeyPrefix() { return this._keyPrefix != null; } } }