/*
* 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 lightsail-2016-11-28.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.Lightsail.Model
{
///
/// Describes the anonymous access permissions for an Amazon Lightsail bucket and its
/// objects.
///
///
///
/// For more information about bucket access permissions, see Understanding
/// bucket permissions in Amazon Lightsail in the
///
///
///
/// Amazon Lightsail Developer Guide.
///
///
public partial class AccessRules
{
private bool? _allowPublicOverrides;
private AccessType _getObject;
///
/// Gets and sets the property AllowPublicOverrides.
///
/// A Boolean value that indicates whether the access control list (ACL) permissions that
/// are applied to individual objects override the getObject
option that
/// is currently specified.
///
///
///
/// When this is true, you can use the PutObjectAcl
/// Amazon S3 API action to set individual objects to public (read-only) using the public-read
/// ACL, or to private using the private
ACL.
///
///
public bool AllowPublicOverrides
{
get { return this._allowPublicOverrides.GetValueOrDefault(); }
set { this._allowPublicOverrides = value; }
}
// Check to see if AllowPublicOverrides property is set
internal bool IsSetAllowPublicOverrides()
{
return this._allowPublicOverrides.HasValue;
}
///
/// Gets and sets the property GetObject.
///
/// Specifies the anonymous access to all objects in a bucket.
///
///
///
/// The following options can be specified:
///
/// -
///
///
public
- Sets all objects in the bucket to public (read-only), making
/// them readable by anyone in the world.
///
///
///
/// If the getObject
value is set to public
, then all objects
/// in the bucket default to public regardless of the allowPublicOverrides
/// value.
///
/// -
///
///
private
- Sets all objects in the bucket to private, making them readable
/// only by you or anyone you give access to.
///
///
///
/// If the getObject
value is set to private
, and the allowPublicOverrides
/// value is set to true
, then all objects in the bucket default to private
/// unless they are configured with a public-read
ACL. Individual objects
/// with a public-read
ACL are readable by anyone in the world.
///
///
///
public AccessType GetObject
{
get { return this._getObject; }
set { this._getObject = value; }
}
// Check to see if GetObject property is set
internal bool IsSetGetObject()
{
return this._getObject != null;
}
}
}