com.pulumi.azurenative.compute.outputs.NetworkProfileResponse 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.compute.outputs;
import com.pulumi.azurenative.compute.outputs.NetworkInterfaceReferenceResponse;
import com.pulumi.azurenative.compute.outputs.VirtualMachineNetworkInterfaceConfigurationResponse;
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 NetworkProfileResponse {
/**
* @return specifies the Microsoft.Network API version used when creating networking resources in the Network Interface Configurations
*
*/
private @Nullable String networkApiVersion;
/**
* @return Specifies the networking configurations that will be used to create the virtual machine networking resources.
*
*/
private @Nullable List networkInterfaceConfigurations;
/**
* @return Specifies the list of resource Ids for the network interfaces associated with the virtual machine.
*
*/
private @Nullable List networkInterfaces;
private NetworkProfileResponse() {}
/**
* @return specifies the Microsoft.Network API version used when creating networking resources in the Network Interface Configurations
*
*/
public Optional networkApiVersion() {
return Optional.ofNullable(this.networkApiVersion);
}
/**
* @return Specifies the networking configurations that will be used to create the virtual machine networking resources.
*
*/
public List networkInterfaceConfigurations() {
return this.networkInterfaceConfigurations == null ? List.of() : this.networkInterfaceConfigurations;
}
/**
* @return Specifies the list of resource Ids for the network interfaces associated with the virtual machine.
*
*/
public List networkInterfaces() {
return this.networkInterfaces == null ? List.of() : this.networkInterfaces;
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(NetworkProfileResponse defaults) {
return new Builder(defaults);
}
@CustomType.Builder
public static final class Builder {
private @Nullable String networkApiVersion;
private @Nullable List networkInterfaceConfigurations;
private @Nullable List networkInterfaces;
public Builder() {}
public Builder(NetworkProfileResponse defaults) {
Objects.requireNonNull(defaults);
this.networkApiVersion = defaults.networkApiVersion;
this.networkInterfaceConfigurations = defaults.networkInterfaceConfigurations;
this.networkInterfaces = defaults.networkInterfaces;
}
@CustomType.Setter
public Builder networkApiVersion(@Nullable String networkApiVersion) {
this.networkApiVersion = networkApiVersion;
return this;
}
@CustomType.Setter
public Builder networkInterfaceConfigurations(@Nullable List networkInterfaceConfigurations) {
this.networkInterfaceConfigurations = networkInterfaceConfigurations;
return this;
}
public Builder networkInterfaceConfigurations(VirtualMachineNetworkInterfaceConfigurationResponse... networkInterfaceConfigurations) {
return networkInterfaceConfigurations(List.of(networkInterfaceConfigurations));
}
@CustomType.Setter
public Builder networkInterfaces(@Nullable List networkInterfaces) {
this.networkInterfaces = networkInterfaces;
return this;
}
public Builder networkInterfaces(NetworkInterfaceReferenceResponse... networkInterfaces) {
return networkInterfaces(List.of(networkInterfaces));
}
public NetworkProfileResponse build() {
final var _resultValue = new NetworkProfileResponse();
_resultValue.networkApiVersion = networkApiVersion;
_resultValue.networkInterfaceConfigurations = networkInterfaceConfigurations;
_resultValue.networkInterfaces = networkInterfaces;
return _resultValue;
}
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy