
com.pulumi.azurenative.managednetworkfabric.outputs.Layer2ConfigurationResponse 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.managednetworkfabric.outputs;
import com.pulumi.core.annotations.CustomType;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.Integer;
import java.lang.String;
import java.util.List;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;
@CustomType
public final class Layer2ConfigurationResponse {
/**
* @return List of network device interfaces resource IDs.
*
*/
private List interfaces;
/**
* @return MTU of the packets between PE & CE.
*
*/
private Integer mtu;
/**
* @return Number of ports connected between PE/CE. Maximum value depends on FabricSKU.
*
*/
private @Nullable Integer portCount;
private Layer2ConfigurationResponse() {}
/**
* @return List of network device interfaces resource IDs.
*
*/
public List interfaces() {
return this.interfaces;
}
/**
* @return MTU of the packets between PE & CE.
*
*/
public Integer mtu() {
return this.mtu;
}
/**
* @return Number of ports connected between PE/CE. Maximum value depends on FabricSKU.
*
*/
public Optional portCount() {
return Optional.ofNullable(this.portCount);
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(Layer2ConfigurationResponse defaults) {
return new Builder(defaults);
}
@CustomType.Builder
public static final class Builder {
private List interfaces;
private Integer mtu;
private @Nullable Integer portCount;
public Builder() {}
public Builder(Layer2ConfigurationResponse defaults) {
Objects.requireNonNull(defaults);
this.interfaces = defaults.interfaces;
this.mtu = defaults.mtu;
this.portCount = defaults.portCount;
}
@CustomType.Setter
public Builder interfaces(List interfaces) {
if (interfaces == null) {
throw new MissingRequiredPropertyException("Layer2ConfigurationResponse", "interfaces");
}
this.interfaces = interfaces;
return this;
}
public Builder interfaces(String... interfaces) {
return interfaces(List.of(interfaces));
}
@CustomType.Setter
public Builder mtu(Integer mtu) {
if (mtu == null) {
throw new MissingRequiredPropertyException("Layer2ConfigurationResponse", "mtu");
}
this.mtu = mtu;
return this;
}
@CustomType.Setter
public Builder portCount(@Nullable Integer portCount) {
this.portCount = portCount;
return this;
}
public Layer2ConfigurationResponse build() {
final var _resultValue = new Layer2ConfigurationResponse();
_resultValue.interfaces = interfaces;
_resultValue.mtu = mtu;
_resultValue.portCount = portCount;
return _resultValue;
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy