com.pulumi.meraki.networks.outputs.GetSwitchStacksRoutingInterfacesResult 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.GetSwitchStacksRoutingInterfacesItem;
import java.lang.String;
import java.util.List;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;
@CustomType
public final class GetSwitchStacksRoutingInterfacesResult {
/**
* @return The provider-assigned unique ID for this managed resource.
*
*/
private String id;
/**
* @return interfaceId path parameter. Interface ID
*
*/
private @Nullable String interfaceId;
private GetSwitchStacksRoutingInterfacesItem item;
/**
* @return Array of ResponseSwitchGetNetworkSwitchStackRoutingInterfaces
*
*/
private List items;
/**
* @return networkId path parameter. Network ID
*
*/
private @Nullable String networkId;
/**
* @return switchStackId path parameter. Switch stack ID
*
*/
private @Nullable String switchStackId;
private GetSwitchStacksRoutingInterfacesResult() {}
/**
* @return The provider-assigned unique ID for this managed resource.
*
*/
public String id() {
return this.id;
}
/**
* @return interfaceId path parameter. Interface ID
*
*/
public Optional interfaceId() {
return Optional.ofNullable(this.interfaceId);
}
public GetSwitchStacksRoutingInterfacesItem item() {
return this.item;
}
/**
* @return Array of ResponseSwitchGetNetworkSwitchStackRoutingInterfaces
*
*/
public List items() {
return this.items;
}
/**
* @return networkId path parameter. Network ID
*
*/
public Optional networkId() {
return Optional.ofNullable(this.networkId);
}
/**
* @return switchStackId path parameter. Switch stack ID
*
*/
public Optional switchStackId() {
return Optional.ofNullable(this.switchStackId);
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(GetSwitchStacksRoutingInterfacesResult defaults) {
return new Builder(defaults);
}
@CustomType.Builder
public static final class Builder {
private String id;
private @Nullable String interfaceId;
private GetSwitchStacksRoutingInterfacesItem item;
private List items;
private @Nullable String networkId;
private @Nullable String switchStackId;
public Builder() {}
public Builder(GetSwitchStacksRoutingInterfacesResult defaults) {
Objects.requireNonNull(defaults);
this.id = defaults.id;
this.interfaceId = defaults.interfaceId;
this.item = defaults.item;
this.items = defaults.items;
this.networkId = defaults.networkId;
this.switchStackId = defaults.switchStackId;
}
@CustomType.Setter
public Builder id(String id) {
if (id == null) {
throw new MissingRequiredPropertyException("GetSwitchStacksRoutingInterfacesResult", "id");
}
this.id = id;
return this;
}
@CustomType.Setter
public Builder interfaceId(@Nullable String interfaceId) {
this.interfaceId = interfaceId;
return this;
}
@CustomType.Setter
public Builder item(GetSwitchStacksRoutingInterfacesItem item) {
if (item == null) {
throw new MissingRequiredPropertyException("GetSwitchStacksRoutingInterfacesResult", "item");
}
this.item = item;
return this;
}
@CustomType.Setter
public Builder items(List items) {
if (items == null) {
throw new MissingRequiredPropertyException("GetSwitchStacksRoutingInterfacesResult", "items");
}
this.items = items;
return this;
}
public Builder items(GetSwitchStacksRoutingInterfacesItem... items) {
return items(List.of(items));
}
@CustomType.Setter
public Builder networkId(@Nullable String networkId) {
this.networkId = networkId;
return this;
}
@CustomType.Setter
public Builder switchStackId(@Nullable String switchStackId) {
this.switchStackId = switchStackId;
return this;
}
public GetSwitchStacksRoutingInterfacesResult build() {
final var _resultValue = new GetSwitchStacksRoutingInterfacesResult();
_resultValue.id = id;
_resultValue.interfaceId = interfaceId;
_resultValue.item = item;
_resultValue.items = items;
_resultValue.networkId = networkId;
_resultValue.switchStackId = switchStackId;
return _resultValue;
}
}
}