com.pulumi.aws.elasticsearch.outputs.DomainAutoTuneOptionsMaintenanceScheduleDuration 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.
The newest version!
// *** 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.elasticsearch.outputs;
import com.pulumi.core.annotations.CustomType;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.Integer;
import java.lang.String;
import java.util.Objects;
@CustomType
public final class DomainAutoTuneOptionsMaintenanceScheduleDuration {
/**
* @return The unit of time specifying the duration of an Auto-Tune maintenance window. Valid values: `HOURS`.
*
*/
private String unit;
/**
* @return An integer specifying the value of the duration of an Auto-Tune maintenance window.
*
*/
private Integer value;
private DomainAutoTuneOptionsMaintenanceScheduleDuration() {}
/**
* @return The unit of time specifying the duration of an Auto-Tune maintenance window. Valid values: `HOURS`.
*
*/
public String unit() {
return this.unit;
}
/**
* @return An integer specifying the value of the duration of an Auto-Tune maintenance window.
*
*/
public Integer value() {
return this.value;
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(DomainAutoTuneOptionsMaintenanceScheduleDuration defaults) {
return new Builder(defaults);
}
@CustomType.Builder
public static final class Builder {
private String unit;
private Integer value;
public Builder() {}
public Builder(DomainAutoTuneOptionsMaintenanceScheduleDuration defaults) {
Objects.requireNonNull(defaults);
this.unit = defaults.unit;
this.value = defaults.value;
}
@CustomType.Setter
public Builder unit(String unit) {
if (unit == null) {
throw new MissingRequiredPropertyException("DomainAutoTuneOptionsMaintenanceScheduleDuration", "unit");
}
this.unit = unit;
return this;
}
@CustomType.Setter
public Builder value(Integer value) {
if (value == null) {
throw new MissingRequiredPropertyException("DomainAutoTuneOptionsMaintenanceScheduleDuration", "value");
}
this.value = value;
return this;
}
public DomainAutoTuneOptionsMaintenanceScheduleDuration build() {
final var _resultValue = new DomainAutoTuneOptionsMaintenanceScheduleDuration();
_resultValue.unit = unit;
_resultValue.value = value;
return _resultValue;
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy