com.pulumi.aws.opensearch.inputs.DomainAutoTuneOptionsMaintenanceScheduleArgs 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.DomainAutoTuneOptionsMaintenanceScheduleDurationArgs;
import com.pulumi.core.Output;
import com.pulumi.core.annotations.Import;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.String;
import java.util.Objects;
public final class DomainAutoTuneOptionsMaintenanceScheduleArgs extends com.pulumi.resources.ResourceArgs {
public static final DomainAutoTuneOptionsMaintenanceScheduleArgs Empty = new DomainAutoTuneOptionsMaintenanceScheduleArgs();
/**
* A cron expression specifying the recurrence pattern for an Auto-Tune maintenance schedule.
*
*/
@Import(name="cronExpressionForRecurrence", required=true)
private Output cronExpressionForRecurrence;
/**
* @return A cron expression specifying the recurrence pattern for an Auto-Tune maintenance schedule.
*
*/
public Output cronExpressionForRecurrence() {
return this.cronExpressionForRecurrence;
}
/**
* Configuration block for the duration of the Auto-Tune maintenance window. Detailed below.
*
*/
@Import(name="duration", required=true)
private Output duration;
/**
* @return Configuration block for the duration of the Auto-Tune maintenance window. Detailed below.
*
*/
public Output duration() {
return this.duration;
}
/**
* Date and time at which to start the Auto-Tune maintenance schedule in [RFC3339 format](https://tools.ietf.org/html/rfc3339#section-5.8).
*
*/
@Import(name="startAt", required=true)
private Output startAt;
/**
* @return Date and time at which to start the Auto-Tune maintenance schedule in [RFC3339 format](https://tools.ietf.org/html/rfc3339#section-5.8).
*
*/
public Output startAt() {
return this.startAt;
}
private DomainAutoTuneOptionsMaintenanceScheduleArgs() {}
private DomainAutoTuneOptionsMaintenanceScheduleArgs(DomainAutoTuneOptionsMaintenanceScheduleArgs $) {
this.cronExpressionForRecurrence = $.cronExpressionForRecurrence;
this.duration = $.duration;
this.startAt = $.startAt;
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(DomainAutoTuneOptionsMaintenanceScheduleArgs defaults) {
return new Builder(defaults);
}
public static final class Builder {
private DomainAutoTuneOptionsMaintenanceScheduleArgs $;
public Builder() {
$ = new DomainAutoTuneOptionsMaintenanceScheduleArgs();
}
public Builder(DomainAutoTuneOptionsMaintenanceScheduleArgs defaults) {
$ = new DomainAutoTuneOptionsMaintenanceScheduleArgs(Objects.requireNonNull(defaults));
}
/**
* @param cronExpressionForRecurrence A cron expression specifying the recurrence pattern for an Auto-Tune maintenance schedule.
*
* @return builder
*
*/
public Builder cronExpressionForRecurrence(Output cronExpressionForRecurrence) {
$.cronExpressionForRecurrence = cronExpressionForRecurrence;
return this;
}
/**
* @param cronExpressionForRecurrence A cron expression specifying the recurrence pattern for an Auto-Tune maintenance schedule.
*
* @return builder
*
*/
public Builder cronExpressionForRecurrence(String cronExpressionForRecurrence) {
return cronExpressionForRecurrence(Output.of(cronExpressionForRecurrence));
}
/**
* @param duration Configuration block for the duration of the Auto-Tune maintenance window. Detailed below.
*
* @return builder
*
*/
public Builder duration(Output duration) {
$.duration = duration;
return this;
}
/**
* @param duration Configuration block for the duration of the Auto-Tune maintenance window. Detailed below.
*
* @return builder
*
*/
public Builder duration(DomainAutoTuneOptionsMaintenanceScheduleDurationArgs duration) {
return duration(Output.of(duration));
}
/**
* @param startAt Date and time at which to start the Auto-Tune maintenance schedule in [RFC3339 format](https://tools.ietf.org/html/rfc3339#section-5.8).
*
* @return builder
*
*/
public Builder startAt(Output startAt) {
$.startAt = startAt;
return this;
}
/**
* @param startAt Date and time at which to start the Auto-Tune maintenance schedule in [RFC3339 format](https://tools.ietf.org/html/rfc3339#section-5.8).
*
* @return builder
*
*/
public Builder startAt(String startAt) {
return startAt(Output.of(startAt));
}
public DomainAutoTuneOptionsMaintenanceScheduleArgs build() {
if ($.cronExpressionForRecurrence == null) {
throw new MissingRequiredPropertyException("DomainAutoTuneOptionsMaintenanceScheduleArgs", "cronExpressionForRecurrence");
}
if ($.duration == null) {
throw new MissingRequiredPropertyException("DomainAutoTuneOptionsMaintenanceScheduleArgs", "duration");
}
if ($.startAt == null) {
throw new MissingRequiredPropertyException("DomainAutoTuneOptionsMaintenanceScheduleArgs", "startAt");
}
return $;
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy