
com.pulumi.azurenative.network.outputs.VirtualNetworkEncryptionResponse 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.azurenative.network.outputs;
import com.pulumi.core.annotations.CustomType;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.Boolean;
import java.lang.String;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;
@CustomType
public final class VirtualNetworkEncryptionResponse {
/**
* @return Indicates if encryption is enabled on the virtual network.
*
*/
private Boolean enabled;
/**
* @return If the encrypted VNet allows VM that does not support encryption
*
*/
private @Nullable String enforcement;
private VirtualNetworkEncryptionResponse() {}
/**
* @return Indicates if encryption is enabled on the virtual network.
*
*/
public Boolean enabled() {
return this.enabled;
}
/**
* @return If the encrypted VNet allows VM that does not support encryption
*
*/
public Optional enforcement() {
return Optional.ofNullable(this.enforcement);
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(VirtualNetworkEncryptionResponse defaults) {
return new Builder(defaults);
}
@CustomType.Builder
public static final class Builder {
private Boolean enabled;
private @Nullable String enforcement;
public Builder() {}
public Builder(VirtualNetworkEncryptionResponse defaults) {
Objects.requireNonNull(defaults);
this.enabled = defaults.enabled;
this.enforcement = defaults.enforcement;
}
@CustomType.Setter
public Builder enabled(Boolean enabled) {
if (enabled == null) {
throw new MissingRequiredPropertyException("VirtualNetworkEncryptionResponse", "enabled");
}
this.enabled = enabled;
return this;
}
@CustomType.Setter
public Builder enforcement(@Nullable String enforcement) {
this.enforcement = enforcement;
return this;
}
public VirtualNetworkEncryptionResponse build() {
final var _resultValue = new VirtualNetworkEncryptionResponse();
_resultValue.enabled = enabled;
_resultValue.enforcement = enforcement;
return _resultValue;
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy