
com.pulumi.azurenative.containerservice.outputs.TimeSpanResponse Maven / Gradle / Ivy
// *** 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.String;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;
@CustomType
public final class TimeSpanResponse {
/**
* @return The end of a time span
*
*/
private @Nullable String end;
/**
* @return The start of a time span
*
*/
private @Nullable String start;
private TimeSpanResponse() {}
/**
* @return The end of a time span
*
*/
public Optional end() {
return Optional.ofNullable(this.end);
}
/**
* @return The start of a time span
*
*/
public Optional start() {
return Optional.ofNullable(this.start);
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(TimeSpanResponse defaults) {
return new Builder(defaults);
}
@CustomType.Builder
public static final class Builder {
private @Nullable String end;
private @Nullable String start;
public Builder() {}
public Builder(TimeSpanResponse defaults) {
Objects.requireNonNull(defaults);
this.end = defaults.end;
this.start = defaults.start;
}
@CustomType.Setter
public Builder end(@Nullable String end) {
this.end = end;
return this;
}
@CustomType.Setter
public Builder start(@Nullable String start) {
this.start = start;
return this;
}
public TimeSpanResponse build() {
final var _resultValue = new TimeSpanResponse();
_resultValue.end = end;
_resultValue.start = start;
return _resultValue;
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy