
com.pulumi.azurenative.avs.outputs.WorkloadNetworkSegmentSubnetResponse Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of azure-native Show documentation
Show all versions of azure-native Show documentation
A native Pulumi package for creating and managing Azure resources.
// *** 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.avs.outputs;
import com.pulumi.core.annotations.CustomType;
import java.lang.String;
import java.util.List;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;
@CustomType
public final class WorkloadNetworkSegmentSubnetResponse {
/**
* @return DHCP Range assigned for subnet.
*
*/
private @Nullable List dhcpRanges;
/**
* @return Gateway address.
*
*/
private @Nullable String gatewayAddress;
private WorkloadNetworkSegmentSubnetResponse() {}
/**
* @return DHCP Range assigned for subnet.
*
*/
public List dhcpRanges() {
return this.dhcpRanges == null ? List.of() : this.dhcpRanges;
}
/**
* @return Gateway address.
*
*/
public Optional gatewayAddress() {
return Optional.ofNullable(this.gatewayAddress);
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(WorkloadNetworkSegmentSubnetResponse defaults) {
return new Builder(defaults);
}
@CustomType.Builder
public static final class Builder {
private @Nullable List dhcpRanges;
private @Nullable String gatewayAddress;
public Builder() {}
public Builder(WorkloadNetworkSegmentSubnetResponse defaults) {
Objects.requireNonNull(defaults);
this.dhcpRanges = defaults.dhcpRanges;
this.gatewayAddress = defaults.gatewayAddress;
}
@CustomType.Setter
public Builder dhcpRanges(@Nullable List dhcpRanges) {
this.dhcpRanges = dhcpRanges;
return this;
}
public Builder dhcpRanges(String... dhcpRanges) {
return dhcpRanges(List.of(dhcpRanges));
}
@CustomType.Setter
public Builder gatewayAddress(@Nullable String gatewayAddress) {
this.gatewayAddress = gatewayAddress;
return this;
}
public WorkloadNetworkSegmentSubnetResponse build() {
final var _resultValue = new WorkloadNetworkSegmentSubnetResponse();
_resultValue.dhcpRanges = dhcpRanges;
_resultValue.gatewayAddress = gatewayAddress;
return _resultValue;
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy