com.pulumi.azurenative.avs.outputs.WorkloadNetworkDhcpRelayResponse 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.
The newest version!
// *** 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 WorkloadNetworkDhcpRelayResponse {
/**
* @return Type of DHCP: SERVER or RELAY.
* Expected value is 'RELAY'.
*
*/
private String dhcpType;
/**
* @return Display name of the DHCP entity.
*
*/
private @Nullable String displayName;
/**
* @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 Relay Addresses. Max 3.
*
*/
private @Nullable List serverAddresses;
private WorkloadNetworkDhcpRelayResponse() {}
/**
* @return Type of DHCP: SERVER or RELAY.
* Expected value is 'RELAY'.
*
*/
public String dhcpType() {
return this.dhcpType;
}
/**
* @return Display name of the DHCP entity.
*
*/
public Optional displayName() {
return Optional.ofNullable(this.displayName);
}
/**
* @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 Relay Addresses. Max 3.
*
*/
public List serverAddresses() {
return this.serverAddresses == null ? List.of() : this.serverAddresses;
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(WorkloadNetworkDhcpRelayResponse defaults) {
return new Builder(defaults);
}
@CustomType.Builder
public static final class Builder {
private String dhcpType;
private @Nullable String displayName;
private String provisioningState;
private @Nullable Double revision;
private List segments;
private @Nullable List serverAddresses;
public Builder() {}
public Builder(WorkloadNetworkDhcpRelayResponse defaults) {
Objects.requireNonNull(defaults);
this.dhcpType = defaults.dhcpType;
this.displayName = defaults.displayName;
this.provisioningState = defaults.provisioningState;
this.revision = defaults.revision;
this.segments = defaults.segments;
this.serverAddresses = defaults.serverAddresses;
}
@CustomType.Setter
public Builder dhcpType(String dhcpType) {
if (dhcpType == null) {
throw new MissingRequiredPropertyException("WorkloadNetworkDhcpRelayResponse", "dhcpType");
}
this.dhcpType = dhcpType;
return this;
}
@CustomType.Setter
public Builder displayName(@Nullable String displayName) {
this.displayName = displayName;
return this;
}
@CustomType.Setter
public Builder provisioningState(String provisioningState) {
if (provisioningState == null) {
throw new MissingRequiredPropertyException("WorkloadNetworkDhcpRelayResponse", "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("WorkloadNetworkDhcpRelayResponse", "segments");
}
this.segments = segments;
return this;
}
public Builder segments(String... segments) {
return segments(List.of(segments));
}
@CustomType.Setter
public Builder serverAddresses(@Nullable List serverAddresses) {
this.serverAddresses = serverAddresses;
return this;
}
public Builder serverAddresses(String... serverAddresses) {
return serverAddresses(List.of(serverAddresses));
}
public WorkloadNetworkDhcpRelayResponse build() {
final var _resultValue = new WorkloadNetworkDhcpRelayResponse();
_resultValue.dhcpType = dhcpType;
_resultValue.displayName = displayName;
_resultValue.provisioningState = provisioningState;
_resultValue.revision = revision;
_resultValue.segments = segments;
_resultValue.serverAddresses = serverAddresses;
return _resultValue;
}
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy