
com.pulumi.aws.route53.outputs.GetTrafficPolicyDocumentRulePrimary 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.route53.outputs;
import com.pulumi.core.annotations.CustomType;
import java.lang.Boolean;
import java.lang.String;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;
@CustomType
public final class GetTrafficPolicyDocumentRulePrimary {
/**
* @return References to an endpoint.
*
*/
private @Nullable String endpointReference;
/**
* @return Indicates whether you want Amazon Route 53 to evaluate the health of the endpoint and route traffic only to healthy endpoints.
*
*/
private @Nullable Boolean evaluateTargetHealth;
/**
* @return If you want to associate a health check with the endpoint or rule.
*
*/
private @Nullable String healthCheck;
/**
* @return References to a rule.
*
*/
private @Nullable String ruleReference;
private GetTrafficPolicyDocumentRulePrimary() {}
/**
* @return References to an endpoint.
*
*/
public Optional endpointReference() {
return Optional.ofNullable(this.endpointReference);
}
/**
* @return Indicates whether you want Amazon Route 53 to evaluate the health of the endpoint and route traffic only to healthy endpoints.
*
*/
public Optional evaluateTargetHealth() {
return Optional.ofNullable(this.evaluateTargetHealth);
}
/**
* @return If you want to associate a health check with the endpoint or rule.
*
*/
public Optional healthCheck() {
return Optional.ofNullable(this.healthCheck);
}
/**
* @return References to a rule.
*
*/
public Optional ruleReference() {
return Optional.ofNullable(this.ruleReference);
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(GetTrafficPolicyDocumentRulePrimary defaults) {
return new Builder(defaults);
}
@CustomType.Builder
public static final class Builder {
private @Nullable String endpointReference;
private @Nullable Boolean evaluateTargetHealth;
private @Nullable String healthCheck;
private @Nullable String ruleReference;
public Builder() {}
public Builder(GetTrafficPolicyDocumentRulePrimary defaults) {
Objects.requireNonNull(defaults);
this.endpointReference = defaults.endpointReference;
this.evaluateTargetHealth = defaults.evaluateTargetHealth;
this.healthCheck = defaults.healthCheck;
this.ruleReference = defaults.ruleReference;
}
@CustomType.Setter
public Builder endpointReference(@Nullable String endpointReference) {
this.endpointReference = endpointReference;
return this;
}
@CustomType.Setter
public Builder evaluateTargetHealth(@Nullable Boolean evaluateTargetHealth) {
this.evaluateTargetHealth = evaluateTargetHealth;
return this;
}
@CustomType.Setter
public Builder healthCheck(@Nullable String healthCheck) {
this.healthCheck = healthCheck;
return this;
}
@CustomType.Setter
public Builder ruleReference(@Nullable String ruleReference) {
this.ruleReference = ruleReference;
return this;
}
public GetTrafficPolicyDocumentRulePrimary build() {
final var _resultValue = new GetTrafficPolicyDocumentRulePrimary();
_resultValue.endpointReference = endpointReference;
_resultValue.evaluateTargetHealth = evaluateTargetHealth;
_resultValue.healthCheck = healthCheck;
_resultValue.ruleReference = ruleReference;
return _resultValue;
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy