
com.pulumi.azurenative.containerservice.outputs.TimeInWeekResponse 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.containerservice.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 TimeInWeekResponse {
/**
* @return The day of the week.
*
*/
private @Nullable String day;
/**
* @return Each integer hour represents a time range beginning at 0m after the hour ending at the next hour (non-inclusive). 0 corresponds to 00:00 UTC, 23 corresponds to 23:00 UTC. Specifying [0, 1] means the 00:00 - 02:00 UTC time range.
*
*/
private @Nullable List hourSlots;
private TimeInWeekResponse() {}
/**
* @return The day of the week.
*
*/
public Optional day() {
return Optional.ofNullable(this.day);
}
/**
* @return Each integer hour represents a time range beginning at 0m after the hour ending at the next hour (non-inclusive). 0 corresponds to 00:00 UTC, 23 corresponds to 23:00 UTC. Specifying [0, 1] means the 00:00 - 02:00 UTC time range.
*
*/
public List hourSlots() {
return this.hourSlots == null ? List.of() : this.hourSlots;
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(TimeInWeekResponse defaults) {
return new Builder(defaults);
}
@CustomType.Builder
public static final class Builder {
private @Nullable String day;
private @Nullable List hourSlots;
public Builder() {}
public Builder(TimeInWeekResponse defaults) {
Objects.requireNonNull(defaults);
this.day = defaults.day;
this.hourSlots = defaults.hourSlots;
}
@CustomType.Setter
public Builder day(@Nullable String day) {
this.day = day;
return this;
}
@CustomType.Setter
public Builder hourSlots(@Nullable List hourSlots) {
this.hourSlots = hourSlots;
return this;
}
public Builder hourSlots(Integer... hourSlots) {
return hourSlots(List.of(hourSlots));
}
public TimeInWeekResponse build() {
final var _resultValue = new TimeInWeekResponse();
_resultValue.day = day;
_resultValue.hourSlots = hourSlots;
return _resultValue;
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy