
com.pulumi.azurenative.awsconnector.outputs.OriginGroupFailoverCriteriaResponse 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.azurenative.awsconnector.outputs;
import com.pulumi.azurenative.awsconnector.outputs.StatusCodesResponse;
import com.pulumi.core.annotations.CustomType;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;
@CustomType
public final class OriginGroupFailoverCriteriaResponse {
/**
* @return The status codes that, when returned from the primary origin, will trigger CloudFront to failover to the second origin. A complex data type for the status codes that you specify that, when returned by a primary origin, trigger CloudFront to failover to a second origin.
*
*/
private @Nullable StatusCodesResponse statusCodes;
private OriginGroupFailoverCriteriaResponse() {}
/**
* @return The status codes that, when returned from the primary origin, will trigger CloudFront to failover to the second origin. A complex data type for the status codes that you specify that, when returned by a primary origin, trigger CloudFront to failover to a second origin.
*
*/
public Optional statusCodes() {
return Optional.ofNullable(this.statusCodes);
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(OriginGroupFailoverCriteriaResponse defaults) {
return new Builder(defaults);
}
@CustomType.Builder
public static final class Builder {
private @Nullable StatusCodesResponse statusCodes;
public Builder() {}
public Builder(OriginGroupFailoverCriteriaResponse defaults) {
Objects.requireNonNull(defaults);
this.statusCodes = defaults.statusCodes;
}
@CustomType.Setter
public Builder statusCodes(@Nullable StatusCodesResponse statusCodes) {
this.statusCodes = statusCodes;
return this;
}
public OriginGroupFailoverCriteriaResponse build() {
final var _resultValue = new OriginGroupFailoverCriteriaResponse();
_resultValue.statusCodes = statusCodes;
return _resultValue;
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy