com.pulumi.azurenative.awsconnector.outputs.OffPeakWindowOptionsResponse Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of azure-native Show documentation
Show all versions of azure-native Show documentation
A native Pulumi package for creating and managing Azure 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.azurenative.awsconnector.outputs;
import com.pulumi.azurenative.awsconnector.outputs.OffPeakWindowResponse;
import com.pulumi.core.annotations.CustomType;
import java.lang.Boolean;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;
@CustomType
public final class OffPeakWindowOptionsResponse {
/**
* @return <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>
*
*/
private @Nullable Boolean enabled;
/**
* @return <p>Off-peak window settings for the domain.</p>
*
*/
private @Nullable OffPeakWindowResponse offPeakWindow;
private OffPeakWindowOptionsResponse() {}
/**
* @return <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>
*
*/
public Optional enabled() {
return Optional.ofNullable(this.enabled);
}
/**
* @return <p>Off-peak window settings for the domain.</p>
*
*/
public Optional offPeakWindow() {
return Optional.ofNullable(this.offPeakWindow);
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(OffPeakWindowOptionsResponse defaults) {
return new Builder(defaults);
}
@CustomType.Builder
public static final class Builder {
private @Nullable Boolean enabled;
private @Nullable OffPeakWindowResponse offPeakWindow;
public Builder() {}
public Builder(OffPeakWindowOptionsResponse defaults) {
Objects.requireNonNull(defaults);
this.enabled = defaults.enabled;
this.offPeakWindow = defaults.offPeakWindow;
}
@CustomType.Setter
public Builder enabled(@Nullable Boolean enabled) {
this.enabled = enabled;
return this;
}
@CustomType.Setter
public Builder offPeakWindow(@Nullable OffPeakWindowResponse offPeakWindow) {
this.offPeakWindow = offPeakWindow;
return this;
}
public OffPeakWindowOptionsResponse build() {
final var _resultValue = new OffPeakWindowOptionsResponse();
_resultValue.enabled = enabled;
_resultValue.offPeakWindow = offPeakWindow;
return _resultValue;
}
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy