com.pulumi.aws.verifiedaccess.outputs.EndpointNetworkInterfaceOptions Maven / Gradle / Ivy
// *** 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.aws.verifiedaccess.outputs;
import com.pulumi.core.annotations.CustomType;
import java.lang.Integer;
import java.lang.String;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;
@CustomType
public final class EndpointNetworkInterfaceOptions {
private @Nullable String networkInterfaceId;
private @Nullable Integer port;
private @Nullable String protocol;
private EndpointNetworkInterfaceOptions() {}
public Optional networkInterfaceId() {
return Optional.ofNullable(this.networkInterfaceId);
}
public Optional port() {
return Optional.ofNullable(this.port);
}
public Optional protocol() {
return Optional.ofNullable(this.protocol);
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(EndpointNetworkInterfaceOptions defaults) {
return new Builder(defaults);
}
@CustomType.Builder
public static final class Builder {
private @Nullable String networkInterfaceId;
private @Nullable Integer port;
private @Nullable String protocol;
public Builder() {}
public Builder(EndpointNetworkInterfaceOptions defaults) {
Objects.requireNonNull(defaults);
this.networkInterfaceId = defaults.networkInterfaceId;
this.port = defaults.port;
this.protocol = defaults.protocol;
}
@CustomType.Setter
public Builder networkInterfaceId(@Nullable String networkInterfaceId) {
this.networkInterfaceId = networkInterfaceId;
return this;
}
@CustomType.Setter
public Builder port(@Nullable Integer port) {
this.port = port;
return this;
}
@CustomType.Setter
public Builder protocol(@Nullable String protocol) {
this.protocol = protocol;
return this;
}
public EndpointNetworkInterfaceOptions build() {
final var _resultValue = new EndpointNetworkInterfaceOptions();
_resultValue.networkInterfaceId = networkInterfaceId;
_resultValue.port = port;
_resultValue.protocol = protocol;
return _resultValue;
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy