
com.pulumi.azurenative.awsconnector.outputs.WebsiteConfigurationResponse 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.RedirectAllRequestsToResponse;
import com.pulumi.azurenative.awsconnector.outputs.RoutingRuleResponse;
import com.pulumi.core.annotations.CustomType;
import java.lang.String;
import java.util.List;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;
@CustomType
public final class WebsiteConfigurationResponse {
/**
* @return The name of the error document for the website.
*
*/
private @Nullable String errorDocument;
/**
* @return The name of the index document for the website.
*
*/
private @Nullable String indexDocument;
/**
* @return The redirect behavior for every request to this bucket's website endpoint. If you specify this property, you can't specify any other property. Specifies the redirect behavior of all requests to a website endpoint of an Amazon S3 bucket.
*
*/
private @Nullable RedirectAllRequestsToResponse redirectAllRequestsTo;
/**
* @return Rules that define when a redirect is applied and the redirect behavior.
*
*/
private @Nullable List routingRules;
private WebsiteConfigurationResponse() {}
/**
* @return The name of the error document for the website.
*
*/
public Optional errorDocument() {
return Optional.ofNullable(this.errorDocument);
}
/**
* @return The name of the index document for the website.
*
*/
public Optional indexDocument() {
return Optional.ofNullable(this.indexDocument);
}
/**
* @return The redirect behavior for every request to this bucket's website endpoint. If you specify this property, you can't specify any other property. Specifies the redirect behavior of all requests to a website endpoint of an Amazon S3 bucket.
*
*/
public Optional redirectAllRequestsTo() {
return Optional.ofNullable(this.redirectAllRequestsTo);
}
/**
* @return Rules that define when a redirect is applied and the redirect behavior.
*
*/
public List routingRules() {
return this.routingRules == null ? List.of() : this.routingRules;
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(WebsiteConfigurationResponse defaults) {
return new Builder(defaults);
}
@CustomType.Builder
public static final class Builder {
private @Nullable String errorDocument;
private @Nullable String indexDocument;
private @Nullable RedirectAllRequestsToResponse redirectAllRequestsTo;
private @Nullable List routingRules;
public Builder() {}
public Builder(WebsiteConfigurationResponse defaults) {
Objects.requireNonNull(defaults);
this.errorDocument = defaults.errorDocument;
this.indexDocument = defaults.indexDocument;
this.redirectAllRequestsTo = defaults.redirectAllRequestsTo;
this.routingRules = defaults.routingRules;
}
@CustomType.Setter
public Builder errorDocument(@Nullable String errorDocument) {
this.errorDocument = errorDocument;
return this;
}
@CustomType.Setter
public Builder indexDocument(@Nullable String indexDocument) {
this.indexDocument = indexDocument;
return this;
}
@CustomType.Setter
public Builder redirectAllRequestsTo(@Nullable RedirectAllRequestsToResponse redirectAllRequestsTo) {
this.redirectAllRequestsTo = redirectAllRequestsTo;
return this;
}
@CustomType.Setter
public Builder routingRules(@Nullable List routingRules) {
this.routingRules = routingRules;
return this;
}
public Builder routingRules(RoutingRuleResponse... routingRules) {
return routingRules(List.of(routingRules));
}
public WebsiteConfigurationResponse build() {
final var _resultValue = new WebsiteConfigurationResponse();
_resultValue.errorDocument = errorDocument;
_resultValue.indexDocument = indexDocument;
_resultValue.redirectAllRequestsTo = redirectAllRequestsTo;
_resultValue.routingRules = routingRules;
return _resultValue;
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy