
com.pulumi.azurenative.avs.outputs.WorkloadNetworkDhcpServerResponse 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 com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.Double;
import java.lang.String;
import java.util.List;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;
@CustomType
public final class WorkloadNetworkDhcpServerResponse {
/**
* @return Type of DHCP: SERVER or RELAY.
* Expected value is 'SERVER'.
*
*/
private String dhcpType;
/**
* @return Display name of the DHCP entity.
*
*/
private @Nullable String displayName;
/**
* @return DHCP Server Lease Time.
*
*/
private @Nullable Double leaseTime;
/**
* @return The provisioning state
*
*/
private String provisioningState;
/**
* @return NSX revision number.
*
*/
private @Nullable Double revision;
/**
* @return NSX Segments consuming DHCP.
*
*/
private List segments;
/**
* @return DHCP Server Address.
*
*/
private @Nullable String serverAddress;
private WorkloadNetworkDhcpServerResponse() {}
/**
* @return Type of DHCP: SERVER or RELAY.
* Expected value is 'SERVER'.
*
*/
public String dhcpType() {
return this.dhcpType;
}
/**
* @return Display name of the DHCP entity.
*
*/
public Optional displayName() {
return Optional.ofNullable(this.displayName);
}
/**
* @return DHCP Server Lease Time.
*
*/
public Optional leaseTime() {
return Optional.ofNullable(this.leaseTime);
}
/**
* @return The provisioning state
*
*/
public String provisioningState() {
return this.provisioningState;
}
/**
* @return NSX revision number.
*
*/
public Optional revision() {
return Optional.ofNullable(this.revision);
}
/**
* @return NSX Segments consuming DHCP.
*
*/
public List segments() {
return this.segments;
}
/**
* @return DHCP Server Address.
*
*/
public Optional serverAddress() {
return Optional.ofNullable(this.serverAddress);
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(WorkloadNetworkDhcpServerResponse defaults) {
return new Builder(defaults);
}
@CustomType.Builder
public static final class Builder {
private String dhcpType;
private @Nullable String displayName;
private @Nullable Double leaseTime;
private String provisioningState;
private @Nullable Double revision;
private List segments;
private @Nullable String serverAddress;
public Builder() {}
public Builder(WorkloadNetworkDhcpServerResponse defaults) {
Objects.requireNonNull(defaults);
this.dhcpType = defaults.dhcpType;
this.displayName = defaults.displayName;
this.leaseTime = defaults.leaseTime;
this.provisioningState = defaults.provisioningState;
this.revision = defaults.revision;
this.segments = defaults.segments;
this.serverAddress = defaults.serverAddress;
}
@CustomType.Setter
public Builder dhcpType(String dhcpType) {
if (dhcpType == null) {
throw new MissingRequiredPropertyException("WorkloadNetworkDhcpServerResponse", "dhcpType");
}
this.dhcpType = dhcpType;
return this;
}
@CustomType.Setter
public Builder displayName(@Nullable String displayName) {
this.displayName = displayName;
return this;
}
@CustomType.Setter
public Builder leaseTime(@Nullable Double leaseTime) {
this.leaseTime = leaseTime;
return this;
}
@CustomType.Setter
public Builder provisioningState(String provisioningState) {
if (provisioningState == null) {
throw new MissingRequiredPropertyException("WorkloadNetworkDhcpServerResponse", "provisioningState");
}
this.provisioningState = provisioningState;
return this;
}
@CustomType.Setter
public Builder revision(@Nullable Double revision) {
this.revision = revision;
return this;
}
@CustomType.Setter
public Builder segments(List segments) {
if (segments == null) {
throw new MissingRequiredPropertyException("WorkloadNetworkDhcpServerResponse", "segments");
}
this.segments = segments;
return this;
}
public Builder segments(String... segments) {
return segments(List.of(segments));
}
@CustomType.Setter
public Builder serverAddress(@Nullable String serverAddress) {
this.serverAddress = serverAddress;
return this;
}
public WorkloadNetworkDhcpServerResponse build() {
final var _resultValue = new WorkloadNetworkDhcpServerResponse();
_resultValue.dhcpType = dhcpType;
_resultValue.displayName = displayName;
_resultValue.leaseTime = leaseTime;
_resultValue.provisioningState = provisioningState;
_resultValue.revision = revision;
_resultValue.segments = segments;
_resultValue.serverAddress = serverAddress;
return _resultValue;
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy