com.pulumi.googlenative.storage.v1.outputs.BucketWebsiteResponse 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.googlenative.storage.v1.outputs;
import com.pulumi.core.annotations.CustomType;
import java.lang.String;
import java.util.Objects;
@CustomType
public final class BucketWebsiteResponse {
/**
* @return If the requested object path is missing, the service will ensure the path has a trailing '/', append this suffix, and attempt to retrieve the resulting object. This allows the creation of index.html objects to represent directory pages.
*
*/
private String mainPageSuffix;
/**
* @return If the requested object path is missing, and any mainPageSuffix object is missing, if applicable, the service will return the named object from this bucket as the content for a 404 Not Found result.
*
*/
private String notFoundPage;
private BucketWebsiteResponse() {}
/**
* @return If the requested object path is missing, the service will ensure the path has a trailing '/', append this suffix, and attempt to retrieve the resulting object. This allows the creation of index.html objects to represent directory pages.
*
*/
public String mainPageSuffix() {
return this.mainPageSuffix;
}
/**
* @return If the requested object path is missing, and any mainPageSuffix object is missing, if applicable, the service will return the named object from this bucket as the content for a 404 Not Found result.
*
*/
public String notFoundPage() {
return this.notFoundPage;
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(BucketWebsiteResponse defaults) {
return new Builder(defaults);
}
@CustomType.Builder
public static final class Builder {
private String mainPageSuffix;
private String notFoundPage;
public Builder() {}
public Builder(BucketWebsiteResponse defaults) {
Objects.requireNonNull(defaults);
this.mainPageSuffix = defaults.mainPageSuffix;
this.notFoundPage = defaults.notFoundPage;
}
@CustomType.Setter
public Builder mainPageSuffix(String mainPageSuffix) {
this.mainPageSuffix = Objects.requireNonNull(mainPageSuffix);
return this;
}
@CustomType.Setter
public Builder notFoundPage(String notFoundPage) {
this.notFoundPage = Objects.requireNonNull(notFoundPage);
return this;
}
public BucketWebsiteResponse build() {
final var o = new BucketWebsiteResponse();
o.mainPageSuffix = mainPageSuffix;
o.notFoundPage = notFoundPage;
return o;
}
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy