com.pulumi.meraki.networks.outputs.AppliancePrefixesDelegatedStaticsOrigin 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 AppliancePrefixesDelegatedStaticsOrigin {
/**
* @return Uplink provided or independent
*
*/
private @Nullable List interfaces;
/**
* @return Origin type
*
*/
private @Nullable String type;
private AppliancePrefixesDelegatedStaticsOrigin() {}
/**
* @return Uplink provided or independent
*
*/
public List interfaces() {
return this.interfaces == null ? List.of() : this.interfaces;
}
/**
* @return Origin type
*
*/
public Optional type() {
return Optional.ofNullable(this.type);
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(AppliancePrefixesDelegatedStaticsOrigin defaults) {
return new Builder(defaults);
}
@CustomType.Builder
public static final class Builder {
private @Nullable List interfaces;
private @Nullable String type;
public Builder() {}
public Builder(AppliancePrefixesDelegatedStaticsOrigin 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 AppliancePrefixesDelegatedStaticsOrigin build() {
final var _resultValue = new AppliancePrefixesDelegatedStaticsOrigin();
_resultValue.interfaces = interfaces;
_resultValue.type = type;
return _resultValue;
}
}
}