com.pulumi.scm.outputs.UrlAccessProfileCredentialEnforcement Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of scm Show documentation
Show all versions of scm Show documentation
A Pulumi package for managing resources on Strata Cloud Manager.
// *** 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.scm.outputs;
import com.pulumi.core.annotations.CustomType;
import com.pulumi.scm.outputs.UrlAccessProfileCredentialEnforcementMode;
import java.lang.String;
import java.util.List;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;
@CustomType
public final class UrlAccessProfileCredentialEnforcement {
/**
* @return The Alerts param.
*
*/
private @Nullable List alerts;
/**
* @return The Allows param.
*
*/
private @Nullable List allows;
/**
* @return The Blocks param.
*
*/
private @Nullable List blocks;
/**
* @return The Continues param.
*
*/
private @Nullable List continues;
/**
* @return The LogSeverity param. Default: `"medium"`.
*
*/
private @Nullable String logSeverity;
/**
* @return The Mode param.
*
*/
private @Nullable UrlAccessProfileCredentialEnforcementMode mode;
private UrlAccessProfileCredentialEnforcement() {}
/**
* @return The Alerts param.
*
*/
public List alerts() {
return this.alerts == null ? List.of() : this.alerts;
}
/**
* @return The Allows param.
*
*/
public List allows() {
return this.allows == null ? List.of() : this.allows;
}
/**
* @return The Blocks param.
*
*/
public List blocks() {
return this.blocks == null ? List.of() : this.blocks;
}
/**
* @return The Continues param.
*
*/
public List continues() {
return this.continues == null ? List.of() : this.continues;
}
/**
* @return The LogSeverity param. Default: `"medium"`.
*
*/
public Optional logSeverity() {
return Optional.ofNullable(this.logSeverity);
}
/**
* @return The Mode param.
*
*/
public Optional mode() {
return Optional.ofNullable(this.mode);
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(UrlAccessProfileCredentialEnforcement defaults) {
return new Builder(defaults);
}
@CustomType.Builder
public static final class Builder {
private @Nullable List alerts;
private @Nullable List allows;
private @Nullable List blocks;
private @Nullable List continues;
private @Nullable String logSeverity;
private @Nullable UrlAccessProfileCredentialEnforcementMode mode;
public Builder() {}
public Builder(UrlAccessProfileCredentialEnforcement defaults) {
Objects.requireNonNull(defaults);
this.alerts = defaults.alerts;
this.allows = defaults.allows;
this.blocks = defaults.blocks;
this.continues = defaults.continues;
this.logSeverity = defaults.logSeverity;
this.mode = defaults.mode;
}
@CustomType.Setter
public Builder alerts(@Nullable List alerts) {
this.alerts = alerts;
return this;
}
public Builder alerts(String... alerts) {
return alerts(List.of(alerts));
}
@CustomType.Setter
public Builder allows(@Nullable List allows) {
this.allows = allows;
return this;
}
public Builder allows(String... allows) {
return allows(List.of(allows));
}
@CustomType.Setter
public Builder blocks(@Nullable List blocks) {
this.blocks = blocks;
return this;
}
public Builder blocks(String... blocks) {
return blocks(List.of(blocks));
}
@CustomType.Setter
public Builder continues(@Nullable List continues) {
this.continues = continues;
return this;
}
public Builder continues(String... continues) {
return continues(List.of(continues));
}
@CustomType.Setter
public Builder logSeverity(@Nullable String logSeverity) {
this.logSeverity = logSeverity;
return this;
}
@CustomType.Setter
public Builder mode(@Nullable UrlAccessProfileCredentialEnforcementMode mode) {
this.mode = mode;
return this;
}
public UrlAccessProfileCredentialEnforcement build() {
final var _resultValue = new UrlAccessProfileCredentialEnforcement();
_resultValue.alerts = alerts;
_resultValue.allows = allows;
_resultValue.blocks = blocks;
_resultValue.continues = continues;
_resultValue.logSeverity = logSeverity;
_resultValue.mode = mode;
return _resultValue;
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy