
com.pulumi.aws.ecr.outputs.RepositoryImageScanningConfiguration Maven / Gradle / Ivy
// *** 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.ecr.outputs;
import com.pulumi.core.annotations.CustomType;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.Boolean;
import java.util.Objects;
@CustomType
public final class RepositoryImageScanningConfiguration {
/**
* @return Indicates whether images are scanned after being pushed to the repository (true) or not scanned (false).
*
*/
private Boolean scanOnPush;
private RepositoryImageScanningConfiguration() {}
/**
* @return Indicates whether images are scanned after being pushed to the repository (true) or not scanned (false).
*
*/
public Boolean scanOnPush() {
return this.scanOnPush;
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(RepositoryImageScanningConfiguration defaults) {
return new Builder(defaults);
}
@CustomType.Builder
public static final class Builder {
private Boolean scanOnPush;
public Builder() {}
public Builder(RepositoryImageScanningConfiguration defaults) {
Objects.requireNonNull(defaults);
this.scanOnPush = defaults.scanOnPush;
}
@CustomType.Setter
public Builder scanOnPush(Boolean scanOnPush) {
if (scanOnPush == null) {
throw new MissingRequiredPropertyException("RepositoryImageScanningConfiguration", "scanOnPush");
}
this.scanOnPush = scanOnPush;
return this;
}
public RepositoryImageScanningConfiguration build() {
final var _resultValue = new RepositoryImageScanningConfiguration();
_resultValue.scanOnPush = scanOnPush;
return _resultValue;
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy