com.pulumi.azurenative.alertsmanagement.outputs.SuppressionScheduleResponse 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.alertsmanagement.outputs;
import com.pulumi.core.annotations.CustomType;
import java.lang.Integer;
import java.lang.String;
import java.util.List;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;
@CustomType
public final class SuppressionScheduleResponse {
/**
* @return End date for suppression
*
*/
private @Nullable String endDate;
/**
* @return End date for suppression
*
*/
private @Nullable String endTime;
/**
* @return Specifies the values for recurrence pattern
*
*/
private @Nullable List recurrenceValues;
/**
* @return Start date for suppression
*
*/
private @Nullable String startDate;
/**
* @return Start time for suppression
*
*/
private @Nullable String startTime;
private SuppressionScheduleResponse() {}
/**
* @return End date for suppression
*
*/
public Optional endDate() {
return Optional.ofNullable(this.endDate);
}
/**
* @return End date for suppression
*
*/
public Optional endTime() {
return Optional.ofNullable(this.endTime);
}
/**
* @return Specifies the values for recurrence pattern
*
*/
public List recurrenceValues() {
return this.recurrenceValues == null ? List.of() : this.recurrenceValues;
}
/**
* @return Start date for suppression
*
*/
public Optional startDate() {
return Optional.ofNullable(this.startDate);
}
/**
* @return Start time for suppression
*
*/
public Optional startTime() {
return Optional.ofNullable(this.startTime);
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(SuppressionScheduleResponse defaults) {
return new Builder(defaults);
}
@CustomType.Builder
public static final class Builder {
private @Nullable String endDate;
private @Nullable String endTime;
private @Nullable List recurrenceValues;
private @Nullable String startDate;
private @Nullable String startTime;
public Builder() {}
public Builder(SuppressionScheduleResponse defaults) {
Objects.requireNonNull(defaults);
this.endDate = defaults.endDate;
this.endTime = defaults.endTime;
this.recurrenceValues = defaults.recurrenceValues;
this.startDate = defaults.startDate;
this.startTime = defaults.startTime;
}
@CustomType.Setter
public Builder endDate(@Nullable String endDate) {
this.endDate = endDate;
return this;
}
@CustomType.Setter
public Builder endTime(@Nullable String endTime) {
this.endTime = endTime;
return this;
}
@CustomType.Setter
public Builder recurrenceValues(@Nullable List recurrenceValues) {
this.recurrenceValues = recurrenceValues;
return this;
}
public Builder recurrenceValues(Integer... recurrenceValues) {
return recurrenceValues(List.of(recurrenceValues));
}
@CustomType.Setter
public Builder startDate(@Nullable String startDate) {
this.startDate = startDate;
return this;
}
@CustomType.Setter
public Builder startTime(@Nullable String startTime) {
this.startTime = startTime;
return this;
}
public SuppressionScheduleResponse build() {
final var _resultValue = new SuppressionScheduleResponse();
_resultValue.endDate = endDate;
_resultValue.endTime = endTime;
_resultValue.recurrenceValues = recurrenceValues;
_resultValue.startDate = startDate;
_resultValue.startTime = startTime;
return _resultValue;
}
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy