com.pulumi.scm.outputs.ApplicationDefault Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of scm Show documentation
Show all versions of scm Show documentation
A Pulumi package for managing resources on Strata Cloud Manager.
// *** 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.scm.outputs;
import com.pulumi.core.annotations.CustomType;
import com.pulumi.scm.outputs.ApplicationDefaultIdentByIcmp6Type;
import com.pulumi.scm.outputs.ApplicationDefaultIdentByIcmpType;
import java.lang.String;
import java.util.List;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;
@CustomType
public final class ApplicationDefault {
/**
* @return The IdentByIcmp6Type param. Ensure that only one of the following is specified: `ident_by_icmp6_type`, `ident_by_icmp_type`, `ident_by_ip_protocol`, `port`
*
*/
private @Nullable ApplicationDefaultIdentByIcmp6Type identByIcmp6Type;
/**
* @return The IdentByIcmpType param. Ensure that only one of the following is specified: `ident_by_icmp6_type`, `ident_by_icmp_type`, `ident_by_ip_protocol`, `port`
*
*/
private @Nullable ApplicationDefaultIdentByIcmpType identByIcmpType;
/**
* @return The IdentByIpProtocol param. Ensure that only one of the following is specified: `ident_by_icmp6_type`, `ident_by_icmp_type`, `ident_by_ip_protocol`, `port`
*
*/
private @Nullable String identByIpProtocol;
/**
* @return The Ports param. Individual elements in this list are subject to additional validation. String length must not exceed 63 characters. Ensure that only one of the following is specified: `ident_by_icmp6_type`, `ident_by_icmp_type`, `ident_by_ip_protocol`, `port`
*
*/
private @Nullable List ports;
private ApplicationDefault() {}
/**
* @return The IdentByIcmp6Type param. Ensure that only one of the following is specified: `ident_by_icmp6_type`, `ident_by_icmp_type`, `ident_by_ip_protocol`, `port`
*
*/
public Optional identByIcmp6Type() {
return Optional.ofNullable(this.identByIcmp6Type);
}
/**
* @return The IdentByIcmpType param. Ensure that only one of the following is specified: `ident_by_icmp6_type`, `ident_by_icmp_type`, `ident_by_ip_protocol`, `port`
*
*/
public Optional identByIcmpType() {
return Optional.ofNullable(this.identByIcmpType);
}
/**
* @return The IdentByIpProtocol param. Ensure that only one of the following is specified: `ident_by_icmp6_type`, `ident_by_icmp_type`, `ident_by_ip_protocol`, `port`
*
*/
public Optional identByIpProtocol() {
return Optional.ofNullable(this.identByIpProtocol);
}
/**
* @return The Ports param. Individual elements in this list are subject to additional validation. String length must not exceed 63 characters. Ensure that only one of the following is specified: `ident_by_icmp6_type`, `ident_by_icmp_type`, `ident_by_ip_protocol`, `port`
*
*/
public List ports() {
return this.ports == null ? List.of() : this.ports;
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(ApplicationDefault defaults) {
return new Builder(defaults);
}
@CustomType.Builder
public static final class Builder {
private @Nullable ApplicationDefaultIdentByIcmp6Type identByIcmp6Type;
private @Nullable ApplicationDefaultIdentByIcmpType identByIcmpType;
private @Nullable String identByIpProtocol;
private @Nullable List ports;
public Builder() {}
public Builder(ApplicationDefault defaults) {
Objects.requireNonNull(defaults);
this.identByIcmp6Type = defaults.identByIcmp6Type;
this.identByIcmpType = defaults.identByIcmpType;
this.identByIpProtocol = defaults.identByIpProtocol;
this.ports = defaults.ports;
}
@CustomType.Setter
public Builder identByIcmp6Type(@Nullable ApplicationDefaultIdentByIcmp6Type identByIcmp6Type) {
this.identByIcmp6Type = identByIcmp6Type;
return this;
}
@CustomType.Setter
public Builder identByIcmpType(@Nullable ApplicationDefaultIdentByIcmpType identByIcmpType) {
this.identByIcmpType = identByIcmpType;
return this;
}
@CustomType.Setter
public Builder identByIpProtocol(@Nullable String identByIpProtocol) {
this.identByIpProtocol = identByIpProtocol;
return this;
}
@CustomType.Setter
public Builder ports(@Nullable List ports) {
this.ports = ports;
return this;
}
public Builder ports(String... ports) {
return ports(List.of(ports));
}
public ApplicationDefault build() {
final var _resultValue = new ApplicationDefault();
_resultValue.identByIcmp6Type = identByIcmp6Type;
_resultValue.identByIcmpType = identByIcmpType;
_resultValue.identByIpProtocol = identByIpProtocol;
_resultValue.ports = ports;
return _resultValue;
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy