com.pulumi.azurenative.costmanagement.outputs.ReportScheduleResponse 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.costmanagement.outputs;
import com.pulumi.azurenative.costmanagement.outputs.ReportRecurrencePeriodResponse;
import com.pulumi.core.annotations.CustomType;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.String;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;
@CustomType
public final class ReportScheduleResponse {
/**
* @return The schedule recurrence.
*
*/
private String recurrence;
/**
* @return Has start and end date of the recurrence. The start date must be in future. If present, the end date must be greater than start date.
*
*/
private @Nullable ReportRecurrencePeriodResponse recurrencePeriod;
/**
* @return The status of the schedule. Whether active or not. If inactive, the report's scheduled execution is paused.
*
*/
private @Nullable String status;
private ReportScheduleResponse() {}
/**
* @return The schedule recurrence.
*
*/
public String recurrence() {
return this.recurrence;
}
/**
* @return Has start and end date of the recurrence. The start date must be in future. If present, the end date must be greater than start date.
*
*/
public Optional recurrencePeriod() {
return Optional.ofNullable(this.recurrencePeriod);
}
/**
* @return The status of the schedule. Whether active or not. If inactive, the report's scheduled execution is paused.
*
*/
public Optional status() {
return Optional.ofNullable(this.status);
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(ReportScheduleResponse defaults) {
return new Builder(defaults);
}
@CustomType.Builder
public static final class Builder {
private String recurrence;
private @Nullable ReportRecurrencePeriodResponse recurrencePeriod;
private @Nullable String status;
public Builder() {}
public Builder(ReportScheduleResponse defaults) {
Objects.requireNonNull(defaults);
this.recurrence = defaults.recurrence;
this.recurrencePeriod = defaults.recurrencePeriod;
this.status = defaults.status;
}
@CustomType.Setter
public Builder recurrence(String recurrence) {
if (recurrence == null) {
throw new MissingRequiredPropertyException("ReportScheduleResponse", "recurrence");
}
this.recurrence = recurrence;
return this;
}
@CustomType.Setter
public Builder recurrencePeriod(@Nullable ReportRecurrencePeriodResponse recurrencePeriod) {
this.recurrencePeriod = recurrencePeriod;
return this;
}
@CustomType.Setter
public Builder status(@Nullable String status) {
this.status = status;
return this;
}
public ReportScheduleResponse build() {
final var _resultValue = new ReportScheduleResponse();
_resultValue.recurrence = recurrence;
_resultValue.recurrencePeriod = recurrencePeriod;
_resultValue.status = status;
return _resultValue;
}
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy