public OffPeakWindowOptions withEnabled(Boolean enabled) {
        setEnabled(enabled);
        return this;
    }
<p>
Whether to enable an off-peak window.
</p>
<p>
This option is only available when modifying a domain created prior to February 16, 2023, not when creating a new
domain. All domains created after this date have the off-peak window enabled by default. You can't disable the
off-peak window after it's enabled for a domain.
</p>

@param enabled
       Whether to enable an off-peak window.</p>
       <p>
       This option is only available when modifying a domain created prior to February 16, 2023, not when
       creating a new domain. All domains created after this date have the off-peak window enabled by default.
       You can't disable the off-peak window after it's enabled for a domain.
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-opensearch/src/main/java/com/amazonaws/services/opensearch/model/OffPeakWindowOptions.java