com.pulumi.azure.eventhub.outputs.EventHubNamespaceNetworkRulesetsVirtualNetworkRule Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of azure Show documentation
Show all versions of azure Show documentation
A Pulumi package for creating and managing Microsoft Azure cloud resources, based on the Terraform azurerm provider. We recommend using the [Azure Native provider](https://github.com/pulumi/pulumi-azure-native) to provision Azure infrastructure. Azure Native provides complete coverage of Azure resources and same-day access to new resources and resource updates.
// *** 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.azure.eventhub.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 EventHubNamespaceNetworkRulesetsVirtualNetworkRule {
/**
* @return Are missing virtual network service endpoints ignored?
*
*/
private @Nullable Boolean ignoreMissingVirtualNetworkServiceEndpoint;
/**
* @return The id of the subnet to match on.
*
*/
private String subnetId;
private EventHubNamespaceNetworkRulesetsVirtualNetworkRule() {}
/**
* @return Are missing virtual network service endpoints ignored?
*
*/
public Optional ignoreMissingVirtualNetworkServiceEndpoint() {
return Optional.ofNullable(this.ignoreMissingVirtualNetworkServiceEndpoint);
}
/**
* @return The id of the subnet to match on.
*
*/
public String subnetId() {
return this.subnetId;
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(EventHubNamespaceNetworkRulesetsVirtualNetworkRule defaults) {
return new Builder(defaults);
}
@CustomType.Builder
public static final class Builder {
private @Nullable Boolean ignoreMissingVirtualNetworkServiceEndpoint;
private String subnetId;
public Builder() {}
public Builder(EventHubNamespaceNetworkRulesetsVirtualNetworkRule defaults) {
Objects.requireNonNull(defaults);
this.ignoreMissingVirtualNetworkServiceEndpoint = defaults.ignoreMissingVirtualNetworkServiceEndpoint;
this.subnetId = defaults.subnetId;
}
@CustomType.Setter
public Builder ignoreMissingVirtualNetworkServiceEndpoint(@Nullable Boolean ignoreMissingVirtualNetworkServiceEndpoint) {
this.ignoreMissingVirtualNetworkServiceEndpoint = ignoreMissingVirtualNetworkServiceEndpoint;
return this;
}
@CustomType.Setter
public Builder subnetId(String subnetId) {
if (subnetId == null) {
throw new MissingRequiredPropertyException("EventHubNamespaceNetworkRulesetsVirtualNetworkRule", "subnetId");
}
this.subnetId = subnetId;
return this;
}
public EventHubNamespaceNetworkRulesetsVirtualNetworkRule build() {
final var _resultValue = new EventHubNamespaceNetworkRulesetsVirtualNetworkRule();
_resultValue.ignoreMissingVirtualNetworkServiceEndpoint = ignoreMissingVirtualNetworkServiceEndpoint;
_resultValue.subnetId = subnetId;
return _resultValue;
}
}
}