com.pulumi.meraki.devices.outputs.GetSwitchPortsStatusesItemSpanningTree 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.devices.outputs;
import com.pulumi.core.annotations.CustomType;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.String;
import java.util.List;
import java.util.Objects;
@CustomType
public final class GetSwitchPortsStatusesItemSpanningTree {
/**
* @return The current Spanning Tree Protocol statuses of the port.
*
*/
private List statuses;
private GetSwitchPortsStatusesItemSpanningTree() {}
/**
* @return The current Spanning Tree Protocol statuses of the port.
*
*/
public List statuses() {
return this.statuses;
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(GetSwitchPortsStatusesItemSpanningTree defaults) {
return new Builder(defaults);
}
@CustomType.Builder
public static final class Builder {
private List statuses;
public Builder() {}
public Builder(GetSwitchPortsStatusesItemSpanningTree defaults) {
Objects.requireNonNull(defaults);
this.statuses = defaults.statuses;
}
@CustomType.Setter
public Builder statuses(List statuses) {
if (statuses == null) {
throw new MissingRequiredPropertyException("GetSwitchPortsStatusesItemSpanningTree", "statuses");
}
this.statuses = statuses;
return this;
}
public Builder statuses(String... statuses) {
return statuses(List.of(statuses));
}
public GetSwitchPortsStatusesItemSpanningTree build() {
final var _resultValue = new GetSwitchPortsStatusesItemSpanningTree();
_resultValue.statuses = statuses;
return _resultValue;
}
}
}