com.pulumi.azurenative.hybridnetwork.outputs.NetworkInterfaceResponse 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.hybridnetwork.outputs;
import com.pulumi.azurenative.hybridnetwork.outputs.NetworkInterfaceIPConfigurationResponse;
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 NetworkInterfaceResponse {
/**
* @return A list of IP configurations of the network interface.
*
*/
private @Nullable List ipConfigurations;
/**
* @return The MAC address of the network interface.
*
*/
private @Nullable String macAddress;
/**
* @return The name of the network interface.
*
*/
private @Nullable String networkInterfaceName;
/**
* @return The type of the VM switch.
*
*/
private @Nullable String vmSwitchType;
private NetworkInterfaceResponse() {}
/**
* @return A list of IP configurations of the network interface.
*
*/
public List ipConfigurations() {
return this.ipConfigurations == null ? List.of() : this.ipConfigurations;
}
/**
* @return The MAC address of the network interface.
*
*/
public Optional macAddress() {
return Optional.ofNullable(this.macAddress);
}
/**
* @return The name of the network interface.
*
*/
public Optional networkInterfaceName() {
return Optional.ofNullable(this.networkInterfaceName);
}
/**
* @return The type of the VM switch.
*
*/
public Optional vmSwitchType() {
return Optional.ofNullable(this.vmSwitchType);
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(NetworkInterfaceResponse defaults) {
return new Builder(defaults);
}
@CustomType.Builder
public static final class Builder {
private @Nullable List ipConfigurations;
private @Nullable String macAddress;
private @Nullable String networkInterfaceName;
private @Nullable String vmSwitchType;
public Builder() {}
public Builder(NetworkInterfaceResponse defaults) {
Objects.requireNonNull(defaults);
this.ipConfigurations = defaults.ipConfigurations;
this.macAddress = defaults.macAddress;
this.networkInterfaceName = defaults.networkInterfaceName;
this.vmSwitchType = defaults.vmSwitchType;
}
@CustomType.Setter
public Builder ipConfigurations(@Nullable List ipConfigurations) {
this.ipConfigurations = ipConfigurations;
return this;
}
public Builder ipConfigurations(NetworkInterfaceIPConfigurationResponse... ipConfigurations) {
return ipConfigurations(List.of(ipConfigurations));
}
@CustomType.Setter
public Builder macAddress(@Nullable String macAddress) {
this.macAddress = macAddress;
return this;
}
@CustomType.Setter
public Builder networkInterfaceName(@Nullable String networkInterfaceName) {
this.networkInterfaceName = networkInterfaceName;
return this;
}
@CustomType.Setter
public Builder vmSwitchType(@Nullable String vmSwitchType) {
this.vmSwitchType = vmSwitchType;
return this;
}
public NetworkInterfaceResponse build() {
final var _resultValue = new NetworkInterfaceResponse();
_resultValue.ipConfigurations = ipConfigurations;
_resultValue.macAddress = macAddress;
_resultValue.networkInterfaceName = networkInterfaceName;
_resultValue.vmSwitchType = vmSwitchType;
return _resultValue;
}
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy