com.pulumi.meraki.networks.outputs.ApplianceSingleLanIpv6PrefixAssignmentOrigin 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 java.lang.String;
import java.util.List;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;
@CustomType
public final class ApplianceSingleLanIpv6PrefixAssignmentOrigin {
/**
* @return Interfaces associated with the prefix
*
*/
private @Nullable List interfaces;
/**
* @return Type of the origin
*
*/
private @Nullable String type;
private ApplianceSingleLanIpv6PrefixAssignmentOrigin() {}
/**
* @return Interfaces associated with the prefix
*
*/
public List interfaces() {
return this.interfaces == null ? List.of() : this.interfaces;
}
/**
* @return Type of the origin
*
*/
public Optional type() {
return Optional.ofNullable(this.type);
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(ApplianceSingleLanIpv6PrefixAssignmentOrigin defaults) {
return new Builder(defaults);
}
@CustomType.Builder
public static final class Builder {
private @Nullable List interfaces;
private @Nullable String type;
public Builder() {}
public Builder(ApplianceSingleLanIpv6PrefixAssignmentOrigin defaults) {
Objects.requireNonNull(defaults);
this.interfaces = defaults.interfaces;
this.type = defaults.type;
}
@CustomType.Setter
public Builder interfaces(@Nullable List interfaces) {
this.interfaces = interfaces;
return this;
}
public Builder interfaces(String... interfaces) {
return interfaces(List.of(interfaces));
}
@CustomType.Setter
public Builder type(@Nullable String type) {
this.type = type;
return this;
}
public ApplianceSingleLanIpv6PrefixAssignmentOrigin build() {
final var _resultValue = new ApplianceSingleLanIpv6PrefixAssignmentOrigin();
_resultValue.interfaces = interfaces;
_resultValue.type = type;
return _resultValue;
}
}
}