com.pulumi.aws.s3control.outputs.StorageLensConfigurationStorageLensConfiguration Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of aws Show documentation
Show all versions of aws Show documentation
A Pulumi package for creating and managing Amazon Web Services (AWS) cloud resources.
// *** WARNING: this file was generated by pulumi-java-gen. ***
// *** Do not edit by hand unless you're certain you know what you are doing! ***
package com.pulumi.aws.s3control.outputs;
import com.pulumi.aws.s3control.outputs.StorageLensConfigurationStorageLensConfigurationAccountLevel;
import com.pulumi.aws.s3control.outputs.StorageLensConfigurationStorageLensConfigurationAwsOrg;
import com.pulumi.aws.s3control.outputs.StorageLensConfigurationStorageLensConfigurationDataExport;
import com.pulumi.aws.s3control.outputs.StorageLensConfigurationStorageLensConfigurationExclude;
import com.pulumi.aws.s3control.outputs.StorageLensConfigurationStorageLensConfigurationInclude;
import com.pulumi.core.annotations.CustomType;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.Boolean;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;
@CustomType
public final class StorageLensConfigurationStorageLensConfiguration {
/**
* @return The account-level configurations of the S3 Storage Lens configuration. See Account Level below for more details.
*
*/
private StorageLensConfigurationStorageLensConfigurationAccountLevel accountLevel;
/**
* @return The Amazon Web Services organization for the S3 Storage Lens configuration. See AWS Org below for more details.
*
*/
private @Nullable StorageLensConfigurationStorageLensConfigurationAwsOrg awsOrg;
/**
* @return Properties of S3 Storage Lens metrics export including the destination, schema and format. See Data Export below for more details.
*
*/
private @Nullable StorageLensConfigurationStorageLensConfigurationDataExport dataExport;
/**
* @return Whether the S3 Storage Lens configuration is enabled.
*
*/
private Boolean enabled;
/**
* @return What is excluded in this configuration. Conflicts with `include`. See Exclude below for more details.
*
*/
private @Nullable StorageLensConfigurationStorageLensConfigurationExclude exclude;
/**
* @return What is included in this configuration. Conflicts with `exclude`. See Include below for more details.
*
*/
private @Nullable StorageLensConfigurationStorageLensConfigurationInclude include;
private StorageLensConfigurationStorageLensConfiguration() {}
/**
* @return The account-level configurations of the S3 Storage Lens configuration. See Account Level below for more details.
*
*/
public StorageLensConfigurationStorageLensConfigurationAccountLevel accountLevel() {
return this.accountLevel;
}
/**
* @return The Amazon Web Services organization for the S3 Storage Lens configuration. See AWS Org below for more details.
*
*/
public Optional awsOrg() {
return Optional.ofNullable(this.awsOrg);
}
/**
* @return Properties of S3 Storage Lens metrics export including the destination, schema and format. See Data Export below for more details.
*
*/
public Optional dataExport() {
return Optional.ofNullable(this.dataExport);
}
/**
* @return Whether the S3 Storage Lens configuration is enabled.
*
*/
public Boolean enabled() {
return this.enabled;
}
/**
* @return What is excluded in this configuration. Conflicts with `include`. See Exclude below for more details.
*
*/
public Optional exclude() {
return Optional.ofNullable(this.exclude);
}
/**
* @return What is included in this configuration. Conflicts with `exclude`. See Include below for more details.
*
*/
public Optional include() {
return Optional.ofNullable(this.include);
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(StorageLensConfigurationStorageLensConfiguration defaults) {
return new Builder(defaults);
}
@CustomType.Builder
public static final class Builder {
private StorageLensConfigurationStorageLensConfigurationAccountLevel accountLevel;
private @Nullable StorageLensConfigurationStorageLensConfigurationAwsOrg awsOrg;
private @Nullable StorageLensConfigurationStorageLensConfigurationDataExport dataExport;
private Boolean enabled;
private @Nullable StorageLensConfigurationStorageLensConfigurationExclude exclude;
private @Nullable StorageLensConfigurationStorageLensConfigurationInclude include;
public Builder() {}
public Builder(StorageLensConfigurationStorageLensConfiguration defaults) {
Objects.requireNonNull(defaults);
this.accountLevel = defaults.accountLevel;
this.awsOrg = defaults.awsOrg;
this.dataExport = defaults.dataExport;
this.enabled = defaults.enabled;
this.exclude = defaults.exclude;
this.include = defaults.include;
}
@CustomType.Setter
public Builder accountLevel(StorageLensConfigurationStorageLensConfigurationAccountLevel accountLevel) {
if (accountLevel == null) {
throw new MissingRequiredPropertyException("StorageLensConfigurationStorageLensConfiguration", "accountLevel");
}
this.accountLevel = accountLevel;
return this;
}
@CustomType.Setter
public Builder awsOrg(@Nullable StorageLensConfigurationStorageLensConfigurationAwsOrg awsOrg) {
this.awsOrg = awsOrg;
return this;
}
@CustomType.Setter
public Builder dataExport(@Nullable StorageLensConfigurationStorageLensConfigurationDataExport dataExport) {
this.dataExport = dataExport;
return this;
}
@CustomType.Setter
public Builder enabled(Boolean enabled) {
if (enabled == null) {
throw new MissingRequiredPropertyException("StorageLensConfigurationStorageLensConfiguration", "enabled");
}
this.enabled = enabled;
return this;
}
@CustomType.Setter
public Builder exclude(@Nullable StorageLensConfigurationStorageLensConfigurationExclude exclude) {
this.exclude = exclude;
return this;
}
@CustomType.Setter
public Builder include(@Nullable StorageLensConfigurationStorageLensConfigurationInclude include) {
this.include = include;
return this;
}
public StorageLensConfigurationStorageLensConfiguration build() {
final var _resultValue = new StorageLensConfigurationStorageLensConfiguration();
_resultValue.accountLevel = accountLevel;
_resultValue.awsOrg = awsOrg;
_resultValue.dataExport = dataExport;
_resultValue.enabled = enabled;
_resultValue.exclude = exclude;
_resultValue.include = include;
return _resultValue;
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy