
com.pulumi.aws.ec2.ProxyProtocolPolicyArgs 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.ec2;
import com.pulumi.core.Output;
import com.pulumi.core.annotations.Import;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.String;
import java.util.List;
import java.util.Objects;
public final class ProxyProtocolPolicyArgs extends com.pulumi.resources.ResourceArgs {
public static final ProxyProtocolPolicyArgs Empty = new ProxyProtocolPolicyArgs();
/**
* List of instance ports to which the policy
* should be applied. This can be specified if the protocol is SSL or TCP.
*
*/
@Import(name="instancePorts", required=true)
private Output> instancePorts;
/**
* @return List of instance ports to which the policy
* should be applied. This can be specified if the protocol is SSL or TCP.
*
*/
public Output> instancePorts() {
return this.instancePorts;
}
/**
* The load balancer to which the policy
* should be attached.
*
*/
@Import(name="loadBalancer", required=true)
private Output loadBalancer;
/**
* @return The load balancer to which the policy
* should be attached.
*
*/
public Output loadBalancer() {
return this.loadBalancer;
}
private ProxyProtocolPolicyArgs() {}
private ProxyProtocolPolicyArgs(ProxyProtocolPolicyArgs $) {
this.instancePorts = $.instancePorts;
this.loadBalancer = $.loadBalancer;
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(ProxyProtocolPolicyArgs defaults) {
return new Builder(defaults);
}
public static final class Builder {
private ProxyProtocolPolicyArgs $;
public Builder() {
$ = new ProxyProtocolPolicyArgs();
}
public Builder(ProxyProtocolPolicyArgs defaults) {
$ = new ProxyProtocolPolicyArgs(Objects.requireNonNull(defaults));
}
/**
* @param instancePorts List of instance ports to which the policy
* should be applied. This can be specified if the protocol is SSL or TCP.
*
* @return builder
*
*/
public Builder instancePorts(Output> instancePorts) {
$.instancePorts = instancePorts;
return this;
}
/**
* @param instancePorts List of instance ports to which the policy
* should be applied. This can be specified if the protocol is SSL or TCP.
*
* @return builder
*
*/
public Builder instancePorts(List instancePorts) {
return instancePorts(Output.of(instancePorts));
}
/**
* @param instancePorts List of instance ports to which the policy
* should be applied. This can be specified if the protocol is SSL or TCP.
*
* @return builder
*
*/
public Builder instancePorts(String... instancePorts) {
return instancePorts(List.of(instancePorts));
}
/**
* @param loadBalancer The load balancer to which the policy
* should be attached.
*
* @return builder
*
*/
public Builder loadBalancer(Output loadBalancer) {
$.loadBalancer = loadBalancer;
return this;
}
/**
* @param loadBalancer The load balancer to which the policy
* should be attached.
*
* @return builder
*
*/
public Builder loadBalancer(String loadBalancer) {
return loadBalancer(Output.of(loadBalancer));
}
public ProxyProtocolPolicyArgs build() {
if ($.instancePorts == null) {
throw new MissingRequiredPropertyException("ProxyProtocolPolicyArgs", "instancePorts");
}
if ($.loadBalancer == null) {
throw new MissingRequiredPropertyException("ProxyProtocolPolicyArgs", "loadBalancer");
}
return $;
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy