com.pulumi.aws.vpclattice.outputs.TargetGroupAttachmentTarget Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of aws Show documentation
Show all versions of aws Show documentation
A Pulumi package for creating and managing Amazon Web Services (AWS) cloud 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.aws.vpclattice.outputs;
import com.pulumi.core.annotations.CustomType;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.Integer;
import java.lang.String;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;
@CustomType
public final class TargetGroupAttachmentTarget {
/**
* @return The ID of the target. If the target type of the target group is INSTANCE, this is an instance ID. If the target type is IP , this is an IP address. If the target type is LAMBDA, this is the ARN of the Lambda function. If the target type is ALB, this is the ARN of the Application Load Balancer.
*
*/
private String id;
/**
* @return This port is used for routing traffic to the target, and defaults to the target group port. However, you can override the default and specify a custom port.
*
*/
private @Nullable Integer port;
private TargetGroupAttachmentTarget() {}
/**
* @return The ID of the target. If the target type of the target group is INSTANCE, this is an instance ID. If the target type is IP , this is an IP address. If the target type is LAMBDA, this is the ARN of the Lambda function. If the target type is ALB, this is the ARN of the Application Load Balancer.
*
*/
public String id() {
return this.id;
}
/**
* @return This port is used for routing traffic to the target, and defaults to the target group port. However, you can override the default and specify a custom port.
*
*/
public Optional port() {
return Optional.ofNullable(this.port);
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(TargetGroupAttachmentTarget defaults) {
return new Builder(defaults);
}
@CustomType.Builder
public static final class Builder {
private String id;
private @Nullable Integer port;
public Builder() {}
public Builder(TargetGroupAttachmentTarget defaults) {
Objects.requireNonNull(defaults);
this.id = defaults.id;
this.port = defaults.port;
}
@CustomType.Setter
public Builder id(String id) {
if (id == null) {
throw new MissingRequiredPropertyException("TargetGroupAttachmentTarget", "id");
}
this.id = id;
return this;
}
@CustomType.Setter
public Builder port(@Nullable Integer port) {
this.port = port;
return this;
}
public TargetGroupAttachmentTarget build() {
final var _resultValue = new TargetGroupAttachmentTarget();
_resultValue.id = id;
_resultValue.port = port;
return _resultValue;
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy