com.pulumi.aws.lightsail.inputs.ContainerServiceDeploymentVersionPublicEndpointArgs 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.lightsail.inputs;
import com.pulumi.aws.lightsail.inputs.ContainerServiceDeploymentVersionPublicEndpointHealthCheckArgs;
import com.pulumi.core.Output;
import com.pulumi.core.annotations.Import;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.Integer;
import java.lang.String;
import java.util.Objects;
public final class ContainerServiceDeploymentVersionPublicEndpointArgs extends com.pulumi.resources.ResourceArgs {
public static final ContainerServiceDeploymentVersionPublicEndpointArgs Empty = new ContainerServiceDeploymentVersionPublicEndpointArgs();
/**
* The name of the container for the endpoint.
*
*/
@Import(name="containerName", required=true)
private Output containerName;
/**
* @return The name of the container for the endpoint.
*
*/
public Output containerName() {
return this.containerName;
}
/**
* The port of the container to which traffic is forwarded to.
*
*/
@Import(name="containerPort", required=true)
private Output containerPort;
/**
* @return The port of the container to which traffic is forwarded to.
*
*/
public Output containerPort() {
return this.containerPort;
}
/**
* A configuration block that describes the health check configuration of the container. Detailed below.
*
*/
@Import(name="healthCheck", required=true)
private Output healthCheck;
/**
* @return A configuration block that describes the health check configuration of the container. Detailed below.
*
*/
public Output healthCheck() {
return this.healthCheck;
}
private ContainerServiceDeploymentVersionPublicEndpointArgs() {}
private ContainerServiceDeploymentVersionPublicEndpointArgs(ContainerServiceDeploymentVersionPublicEndpointArgs $) {
this.containerName = $.containerName;
this.containerPort = $.containerPort;
this.healthCheck = $.healthCheck;
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(ContainerServiceDeploymentVersionPublicEndpointArgs defaults) {
return new Builder(defaults);
}
public static final class Builder {
private ContainerServiceDeploymentVersionPublicEndpointArgs $;
public Builder() {
$ = new ContainerServiceDeploymentVersionPublicEndpointArgs();
}
public Builder(ContainerServiceDeploymentVersionPublicEndpointArgs defaults) {
$ = new ContainerServiceDeploymentVersionPublicEndpointArgs(Objects.requireNonNull(defaults));
}
/**
* @param containerName The name of the container for the endpoint.
*
* @return builder
*
*/
public Builder containerName(Output containerName) {
$.containerName = containerName;
return this;
}
/**
* @param containerName The name of the container for the endpoint.
*
* @return builder
*
*/
public Builder containerName(String containerName) {
return containerName(Output.of(containerName));
}
/**
* @param containerPort The port of the container to which traffic is forwarded to.
*
* @return builder
*
*/
public Builder containerPort(Output containerPort) {
$.containerPort = containerPort;
return this;
}
/**
* @param containerPort The port of the container to which traffic is forwarded to.
*
* @return builder
*
*/
public Builder containerPort(Integer containerPort) {
return containerPort(Output.of(containerPort));
}
/**
* @param healthCheck A configuration block that describes the health check configuration of the container. Detailed below.
*
* @return builder
*
*/
public Builder healthCheck(Output healthCheck) {
$.healthCheck = healthCheck;
return this;
}
/**
* @param healthCheck A configuration block that describes the health check configuration of the container. Detailed below.
*
* @return builder
*
*/
public Builder healthCheck(ContainerServiceDeploymentVersionPublicEndpointHealthCheckArgs healthCheck) {
return healthCheck(Output.of(healthCheck));
}
public ContainerServiceDeploymentVersionPublicEndpointArgs build() {
if ($.containerName == null) {
throw new MissingRequiredPropertyException("ContainerServiceDeploymentVersionPublicEndpointArgs", "containerName");
}
if ($.containerPort == null) {
throw new MissingRequiredPropertyException("ContainerServiceDeploymentVersionPublicEndpointArgs", "containerPort");
}
if ($.healthCheck == null) {
throw new MissingRequiredPropertyException("ContainerServiceDeploymentVersionPublicEndpointArgs", "healthCheck");
}
return $;
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy