com.pulumi.meraki.networks.outputs.GetTopologyLinkLayerItem Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of meraki Show documentation
Show all versions of meraki Show documentation
A Pulumi package for creating and managing Cisco Meraki 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.meraki.networks.outputs;
import com.pulumi.core.annotations.CustomType;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import com.pulumi.meraki.networks.outputs.GetTopologyLinkLayerItemLink;
import com.pulumi.meraki.networks.outputs.GetTopologyLinkLayerItemNode;
import java.lang.String;
import java.util.List;
import java.util.Objects;
@CustomType
public final class GetTopologyLinkLayerItem {
private List errors;
private List links;
private List nodes;
private GetTopologyLinkLayerItem() {}
public List errors() {
return this.errors;
}
public List links() {
return this.links;
}
public List nodes() {
return this.nodes;
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(GetTopologyLinkLayerItem defaults) {
return new Builder(defaults);
}
@CustomType.Builder
public static final class Builder {
private List errors;
private List links;
private List nodes;
public Builder() {}
public Builder(GetTopologyLinkLayerItem defaults) {
Objects.requireNonNull(defaults);
this.errors = defaults.errors;
this.links = defaults.links;
this.nodes = defaults.nodes;
}
@CustomType.Setter
public Builder errors(List errors) {
if (errors == null) {
throw new MissingRequiredPropertyException("GetTopologyLinkLayerItem", "errors");
}
this.errors = errors;
return this;
}
public Builder errors(String... errors) {
return errors(List.of(errors));
}
@CustomType.Setter
public Builder links(List links) {
if (links == null) {
throw new MissingRequiredPropertyException("GetTopologyLinkLayerItem", "links");
}
this.links = links;
return this;
}
public Builder links(GetTopologyLinkLayerItemLink... links) {
return links(List.of(links));
}
@CustomType.Setter
public Builder nodes(List nodes) {
if (nodes == null) {
throw new MissingRequiredPropertyException("GetTopologyLinkLayerItem", "nodes");
}
this.nodes = nodes;
return this;
}
public Builder nodes(GetTopologyLinkLayerItemNode... nodes) {
return nodes(List.of(nodes));
}
public GetTopologyLinkLayerItem build() {
final var _resultValue = new GetTopologyLinkLayerItem();
_resultValue.errors = errors;
_resultValue.links = links;
_resultValue.nodes = nodes;
return _resultValue;
}
}
}