com.pulumi.azure.hdinsight.outputs.SparkClusterNetwork 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.hdinsight.outputs;
import com.pulumi.core.annotations.CustomType;
import java.lang.Boolean;
import java.lang.String;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;
@CustomType
public final class SparkClusterNetwork {
/**
* @return The direction of the resource provider connection. Possible values include `Inbound` or `Outbound`. Defaults to `Inbound`. Changing this forces a new resource to be created.
*
* > **NOTE:** To enabled the private link the `connection_direction` must be set to `Outbound`.
*
*/
private @Nullable String connectionDirection;
/**
* @return Is the private link enabled? Possible values include `true` or `false`. Defaults to `false`. Changing this forces a new resource to be created.
*
*/
private @Nullable Boolean privateLinkEnabled;
private SparkClusterNetwork() {}
/**
* @return The direction of the resource provider connection. Possible values include `Inbound` or `Outbound`. Defaults to `Inbound`. Changing this forces a new resource to be created.
*
* > **NOTE:** To enabled the private link the `connection_direction` must be set to `Outbound`.
*
*/
public Optional connectionDirection() {
return Optional.ofNullable(this.connectionDirection);
}
/**
* @return Is the private link enabled? Possible values include `true` or `false`. Defaults to `false`. Changing this forces a new resource to be created.
*
*/
public Optional privateLinkEnabled() {
return Optional.ofNullable(this.privateLinkEnabled);
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(SparkClusterNetwork defaults) {
return new Builder(defaults);
}
@CustomType.Builder
public static final class Builder {
private @Nullable String connectionDirection;
private @Nullable Boolean privateLinkEnabled;
public Builder() {}
public Builder(SparkClusterNetwork defaults) {
Objects.requireNonNull(defaults);
this.connectionDirection = defaults.connectionDirection;
this.privateLinkEnabled = defaults.privateLinkEnabled;
}
@CustomType.Setter
public Builder connectionDirection(@Nullable String connectionDirection) {
this.connectionDirection = connectionDirection;
return this;
}
@CustomType.Setter
public Builder privateLinkEnabled(@Nullable Boolean privateLinkEnabled) {
this.privateLinkEnabled = privateLinkEnabled;
return this;
}
public SparkClusterNetwork build() {
final var _resultValue = new SparkClusterNetwork();
_resultValue.connectionDirection = connectionDirection;
_resultValue.privateLinkEnabled = privateLinkEnabled;
return _resultValue;
}
}
}