/*
* 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 securityhub-2018-10-26.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.SecurityHub.Model
{
///
/// The details of an Amazon S3 bucket.
///
public partial class AwsS3BucketDetails
{
private string _accessControlList;
private AwsS3BucketBucketLifecycleConfigurationDetails _bucketLifecycleConfiguration;
private AwsS3BucketLoggingConfiguration _bucketLoggingConfiguration;
private AwsS3BucketNotificationConfiguration _bucketNotificationConfiguration;
private AwsS3BucketBucketVersioningConfiguration _bucketVersioningConfiguration;
private AwsS3BucketWebsiteConfiguration _bucketWebsiteConfiguration;
private string _createdAt;
private AwsS3BucketObjectLockConfiguration _objectLockConfiguration;
private string _ownerAccountId;
private string _ownerId;
private string _ownerName;
private AwsS3AccountPublicAccessBlockDetails _publicAccessBlockConfiguration;
private AwsS3BucketServerSideEncryptionConfiguration _serverSideEncryptionConfiguration;
///
/// Gets and sets the property AccessControlList.
///
/// The access control list for the S3 bucket.
///
///
public string AccessControlList
{
get { return this._accessControlList; }
set { this._accessControlList = value; }
}
// Check to see if AccessControlList property is set
internal bool IsSetAccessControlList()
{
return this._accessControlList != null;
}
///
/// Gets and sets the property BucketLifecycleConfiguration.
///
/// The lifecycle configuration for objects in the S3 bucket.
///
///
public AwsS3BucketBucketLifecycleConfigurationDetails BucketLifecycleConfiguration
{
get { return this._bucketLifecycleConfiguration; }
set { this._bucketLifecycleConfiguration = value; }
}
// Check to see if BucketLifecycleConfiguration property is set
internal bool IsSetBucketLifecycleConfiguration()
{
return this._bucketLifecycleConfiguration != null;
}
///
/// Gets and sets the property BucketLoggingConfiguration.
///
/// The logging configuration for the S3 bucket.
///
///
public AwsS3BucketLoggingConfiguration BucketLoggingConfiguration
{
get { return this._bucketLoggingConfiguration; }
set { this._bucketLoggingConfiguration = value; }
}
// Check to see if BucketLoggingConfiguration property is set
internal bool IsSetBucketLoggingConfiguration()
{
return this._bucketLoggingConfiguration != null;
}
///
/// Gets and sets the property BucketNotificationConfiguration.
///
/// The notification configuration for the S3 bucket.
///
///
public AwsS3BucketNotificationConfiguration BucketNotificationConfiguration
{
get { return this._bucketNotificationConfiguration; }
set { this._bucketNotificationConfiguration = value; }
}
// Check to see if BucketNotificationConfiguration property is set
internal bool IsSetBucketNotificationConfiguration()
{
return this._bucketNotificationConfiguration != null;
}
///
/// Gets and sets the property BucketVersioningConfiguration.
///
/// The versioning state of an S3 bucket.
///
///
public AwsS3BucketBucketVersioningConfiguration BucketVersioningConfiguration
{
get { return this._bucketVersioningConfiguration; }
set { this._bucketVersioningConfiguration = value; }
}
// Check to see if BucketVersioningConfiguration property is set
internal bool IsSetBucketVersioningConfiguration()
{
return this._bucketVersioningConfiguration != null;
}
///
/// Gets and sets the property BucketWebsiteConfiguration.
///
/// The website configuration parameters for the S3 bucket.
///
///
public AwsS3BucketWebsiteConfiguration BucketWebsiteConfiguration
{
get { return this._bucketWebsiteConfiguration; }
set { this._bucketWebsiteConfiguration = value; }
}
// Check to see if BucketWebsiteConfiguration property is set
internal bool IsSetBucketWebsiteConfiguration()
{
return this._bucketWebsiteConfiguration != null;
}
///
/// Gets and sets the property CreatedAt.
///
/// Indicates when the S3 bucket was created.
///
///
///
/// Uses the date-time
format specified in RFC
/// 3339 section 5.6, Internet Date/Time Format. The value cannot contain spaces,
/// and date and time should be separated by T
. For example, 2020-03-22T13:22:13.933Z
.
///
///
public string CreatedAt
{
get { return this._createdAt; }
set { this._createdAt = value; }
}
// Check to see if CreatedAt property is set
internal bool IsSetCreatedAt()
{
return this._createdAt != null;
}
///
/// Gets and sets the property ObjectLockConfiguration.
///
/// Specifies which rule Amazon S3 applies by default to every new object placed in the
/// specified bucket.
///
///
public AwsS3BucketObjectLockConfiguration ObjectLockConfiguration
{
get { return this._objectLockConfiguration; }
set { this._objectLockConfiguration = value; }
}
// Check to see if ObjectLockConfiguration property is set
internal bool IsSetObjectLockConfiguration()
{
return this._objectLockConfiguration != null;
}
///
/// Gets and sets the property OwnerAccountId.
///
/// The Amazon Web Services account identifier of the account that owns the S3 bucket.
///
///
public string OwnerAccountId
{
get { return this._ownerAccountId; }
set { this._ownerAccountId = value; }
}
// Check to see if OwnerAccountId property is set
internal bool IsSetOwnerAccountId()
{
return this._ownerAccountId != null;
}
///
/// Gets and sets the property OwnerId.
///
/// The canonical user ID of the owner of the S3 bucket.
///
///
public string OwnerId
{
get { return this._ownerId; }
set { this._ownerId = value; }
}
// Check to see if OwnerId property is set
internal bool IsSetOwnerId()
{
return this._ownerId != null;
}
///
/// Gets and sets the property OwnerName.
///
/// The display name of the owner of the S3 bucket.
///
///
public string OwnerName
{
get { return this._ownerName; }
set { this._ownerName = value; }
}
// Check to see if OwnerName property is set
internal bool IsSetOwnerName()
{
return this._ownerName != null;
}
///
/// Gets and sets the property PublicAccessBlockConfiguration.
///
/// Provides information about the Amazon S3 Public Access Block configuration for the
/// S3 bucket.
///
///
public AwsS3AccountPublicAccessBlockDetails PublicAccessBlockConfiguration
{
get { return this._publicAccessBlockConfiguration; }
set { this._publicAccessBlockConfiguration = value; }
}
// Check to see if PublicAccessBlockConfiguration property is set
internal bool IsSetPublicAccessBlockConfiguration()
{
return this._publicAccessBlockConfiguration != null;
}
///
/// Gets and sets the property ServerSideEncryptionConfiguration.
///
/// The encryption rules that are applied to the S3 bucket.
///
///
public AwsS3BucketServerSideEncryptionConfiguration ServerSideEncryptionConfiguration
{
get { return this._serverSideEncryptionConfiguration; }
set { this._serverSideEncryptionConfiguration = value; }
}
// Check to see if ServerSideEncryptionConfiguration property is set
internal bool IsSetServerSideEncryptionConfiguration()
{
return this._serverSideEncryptionConfiguration != null;
}
}
}