com.pulumi.aws.opensearch.inputs.GetDomainOffPeakWindowOptions 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.opensearch.inputs;
import com.pulumi.aws.opensearch.inputs.GetDomainOffPeakWindowOptionsOffPeakWindow;
import com.pulumi.core.annotations.Import;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.Boolean;
import java.util.List;
import java.util.Objects;
public final class GetDomainOffPeakWindowOptions extends com.pulumi.resources.InvokeArgs {
public static final GetDomainOffPeakWindowOptions Empty = new GetDomainOffPeakWindowOptions();
/**
* Enabled disabled toggle for off-peak update window
*
*/
@Import(name="enabled", required=true)
private Boolean enabled;
/**
* @return Enabled disabled toggle for off-peak update window
*
*/
public Boolean enabled() {
return this.enabled;
}
@Import(name="offPeakWindows", required=true)
private List offPeakWindows;
public List offPeakWindows() {
return this.offPeakWindows;
}
private GetDomainOffPeakWindowOptions() {}
private GetDomainOffPeakWindowOptions(GetDomainOffPeakWindowOptions $) {
this.enabled = $.enabled;
this.offPeakWindows = $.offPeakWindows;
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(GetDomainOffPeakWindowOptions defaults) {
return new Builder(defaults);
}
public static final class Builder {
private GetDomainOffPeakWindowOptions $;
public Builder() {
$ = new GetDomainOffPeakWindowOptions();
}
public Builder(GetDomainOffPeakWindowOptions defaults) {
$ = new GetDomainOffPeakWindowOptions(Objects.requireNonNull(defaults));
}
/**
* @param enabled Enabled disabled toggle for off-peak update window
*
* @return builder
*
*/
public Builder enabled(Boolean enabled) {
$.enabled = enabled;
return this;
}
public Builder offPeakWindows(List offPeakWindows) {
$.offPeakWindows = offPeakWindows;
return this;
}
public Builder offPeakWindows(GetDomainOffPeakWindowOptionsOffPeakWindow... offPeakWindows) {
return offPeakWindows(List.of(offPeakWindows));
}
public GetDomainOffPeakWindowOptions build() {
if ($.enabled == null) {
throw new MissingRequiredPropertyException("GetDomainOffPeakWindowOptions", "enabled");
}
if ($.offPeakWindows == null) {
throw new MissingRequiredPropertyException("GetDomainOffPeakWindowOptions", "offPeakWindows");
}
return $;
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy