
com.pulumi.azurenative.hardwaresecuritymodules.outputs.NetworkProfileResponse Maven / Gradle / Ivy
// *** 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.hardwaresecuritymodules.outputs;
import com.pulumi.azurenative.hardwaresecuritymodules.outputs.ApiEntityReferenceResponse;
import com.pulumi.azurenative.hardwaresecuritymodules.outputs.NetworkInterfaceResponse;
import com.pulumi.core.annotations.CustomType;
import java.util.List;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;
@CustomType
public final class NetworkProfileResponse {
/**
* @return Specifies the list of resource Ids for the network interfaces associated with the dedicated HSM.
*
*/
private @Nullable List networkInterfaces;
/**
* @return Specifies the identifier of the subnet.
*
*/
private @Nullable ApiEntityReferenceResponse subnet;
private NetworkProfileResponse() {}
/**
* @return Specifies the list of resource Ids for the network interfaces associated with the dedicated HSM.
*
*/
public List networkInterfaces() {
return this.networkInterfaces == null ? List.of() : this.networkInterfaces;
}
/**
* @return Specifies the identifier of the subnet.
*
*/
public Optional subnet() {
return Optional.ofNullable(this.subnet);
}
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 List networkInterfaces;
private @Nullable ApiEntityReferenceResponse subnet;
public Builder() {}
public Builder(NetworkProfileResponse defaults) {
Objects.requireNonNull(defaults);
this.networkInterfaces = defaults.networkInterfaces;
this.subnet = defaults.subnet;
}
@CustomType.Setter
public Builder networkInterfaces(@Nullable List networkInterfaces) {
this.networkInterfaces = networkInterfaces;
return this;
}
public Builder networkInterfaces(NetworkInterfaceResponse... networkInterfaces) {
return networkInterfaces(List.of(networkInterfaces));
}
@CustomType.Setter
public Builder subnet(@Nullable ApiEntityReferenceResponse subnet) {
this.subnet = subnet;
return this;
}
public NetworkProfileResponse build() {
final var _resultValue = new NetworkProfileResponse();
_resultValue.networkInterfaces = networkInterfaces;
_resultValue.subnet = subnet;
return _resultValue;
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy