com.pulumi.aws.codedeploy.outputs.DeploymentGroupLoadBalancerInfoTargetGroupPairInfo 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.codedeploy.outputs;
import com.pulumi.aws.codedeploy.outputs.DeploymentGroupLoadBalancerInfoTargetGroupPairInfoProdTrafficRoute;
import com.pulumi.aws.codedeploy.outputs.DeploymentGroupLoadBalancerInfoTargetGroupPairInfoTargetGroup;
import com.pulumi.aws.codedeploy.outputs.DeploymentGroupLoadBalancerInfoTargetGroupPairInfoTestTrafficRoute;
import com.pulumi.core.annotations.CustomType;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.util.List;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;
@CustomType
public final class DeploymentGroupLoadBalancerInfoTargetGroupPairInfo {
/**
* @return Configuration block for the production traffic route (documented below).
*
*/
private DeploymentGroupLoadBalancerInfoTargetGroupPairInfoProdTrafficRoute prodTrafficRoute;
/**
* @return Configuration blocks for a target group within a target group pair (documented below).
*
*/
private List targetGroups;
/**
* @return Configuration block for the test traffic route (documented below).
*
*/
private @Nullable DeploymentGroupLoadBalancerInfoTargetGroupPairInfoTestTrafficRoute testTrafficRoute;
private DeploymentGroupLoadBalancerInfoTargetGroupPairInfo() {}
/**
* @return Configuration block for the production traffic route (documented below).
*
*/
public DeploymentGroupLoadBalancerInfoTargetGroupPairInfoProdTrafficRoute prodTrafficRoute() {
return this.prodTrafficRoute;
}
/**
* @return Configuration blocks for a target group within a target group pair (documented below).
*
*/
public List targetGroups() {
return this.targetGroups;
}
/**
* @return Configuration block for the test traffic route (documented below).
*
*/
public Optional testTrafficRoute() {
return Optional.ofNullable(this.testTrafficRoute);
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(DeploymentGroupLoadBalancerInfoTargetGroupPairInfo defaults) {
return new Builder(defaults);
}
@CustomType.Builder
public static final class Builder {
private DeploymentGroupLoadBalancerInfoTargetGroupPairInfoProdTrafficRoute prodTrafficRoute;
private List targetGroups;
private @Nullable DeploymentGroupLoadBalancerInfoTargetGroupPairInfoTestTrafficRoute testTrafficRoute;
public Builder() {}
public Builder(DeploymentGroupLoadBalancerInfoTargetGroupPairInfo defaults) {
Objects.requireNonNull(defaults);
this.prodTrafficRoute = defaults.prodTrafficRoute;
this.targetGroups = defaults.targetGroups;
this.testTrafficRoute = defaults.testTrafficRoute;
}
@CustomType.Setter
public Builder prodTrafficRoute(DeploymentGroupLoadBalancerInfoTargetGroupPairInfoProdTrafficRoute prodTrafficRoute) {
if (prodTrafficRoute == null) {
throw new MissingRequiredPropertyException("DeploymentGroupLoadBalancerInfoTargetGroupPairInfo", "prodTrafficRoute");
}
this.prodTrafficRoute = prodTrafficRoute;
return this;
}
@CustomType.Setter
public Builder targetGroups(List targetGroups) {
if (targetGroups == null) {
throw new MissingRequiredPropertyException("DeploymentGroupLoadBalancerInfoTargetGroupPairInfo", "targetGroups");
}
this.targetGroups = targetGroups;
return this;
}
public Builder targetGroups(DeploymentGroupLoadBalancerInfoTargetGroupPairInfoTargetGroup... targetGroups) {
return targetGroups(List.of(targetGroups));
}
@CustomType.Setter
public Builder testTrafficRoute(@Nullable DeploymentGroupLoadBalancerInfoTargetGroupPairInfoTestTrafficRoute testTrafficRoute) {
this.testTrafficRoute = testTrafficRoute;
return this;
}
public DeploymentGroupLoadBalancerInfoTargetGroupPairInfo build() {
final var _resultValue = new DeploymentGroupLoadBalancerInfoTargetGroupPairInfo();
_resultValue.prodTrafficRoute = prodTrafficRoute;
_resultValue.targetGroups = targetGroups;
_resultValue.testTrafficRoute = testTrafficRoute;
return _resultValue;
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy