
com.pulumi.azurenative.media.outputs.LiveEventIngestionResponse 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.media.outputs;
import com.pulumi.azurenative.media.outputs.LiveEventIngestInterruptionResponse;
import com.pulumi.core.annotations.CustomType;
import java.lang.String;
import java.util.List;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;
@CustomType
public final class LiveEventIngestionResponse {
/**
* @return Ingestion begin time in UTC.
*
*/
private @Nullable String begin;
/**
* @return Ingestion end time in UTC. Empty if it's not stopped yet.
*
*/
private @Nullable String end;
/**
* @return Reason why ingestion stops. Empty if it's not stopped yet. E.g) Service Stopped. No Ingestion.
*
*/
private @Nullable String endReason;
/**
* @return IngestInterruption entry list.
*
*/
private @Nullable List ingestInterruptions;
/**
* @return Ingestion stream name.
*
*/
private @Nullable String streamName;
private LiveEventIngestionResponse() {}
/**
* @return Ingestion begin time in UTC.
*
*/
public Optional begin() {
return Optional.ofNullable(this.begin);
}
/**
* @return Ingestion end time in UTC. Empty if it's not stopped yet.
*
*/
public Optional end() {
return Optional.ofNullable(this.end);
}
/**
* @return Reason why ingestion stops. Empty if it's not stopped yet. E.g) Service Stopped. No Ingestion.
*
*/
public Optional endReason() {
return Optional.ofNullable(this.endReason);
}
/**
* @return IngestInterruption entry list.
*
*/
public List ingestInterruptions() {
return this.ingestInterruptions == null ? List.of() : this.ingestInterruptions;
}
/**
* @return Ingestion stream name.
*
*/
public Optional streamName() {
return Optional.ofNullable(this.streamName);
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(LiveEventIngestionResponse defaults) {
return new Builder(defaults);
}
@CustomType.Builder
public static final class Builder {
private @Nullable String begin;
private @Nullable String end;
private @Nullable String endReason;
private @Nullable List ingestInterruptions;
private @Nullable String streamName;
public Builder() {}
public Builder(LiveEventIngestionResponse defaults) {
Objects.requireNonNull(defaults);
this.begin = defaults.begin;
this.end = defaults.end;
this.endReason = defaults.endReason;
this.ingestInterruptions = defaults.ingestInterruptions;
this.streamName = defaults.streamName;
}
@CustomType.Setter
public Builder begin(@Nullable String begin) {
this.begin = begin;
return this;
}
@CustomType.Setter
public Builder end(@Nullable String end) {
this.end = end;
return this;
}
@CustomType.Setter
public Builder endReason(@Nullable String endReason) {
this.endReason = endReason;
return this;
}
@CustomType.Setter
public Builder ingestInterruptions(@Nullable List ingestInterruptions) {
this.ingestInterruptions = ingestInterruptions;
return this;
}
public Builder ingestInterruptions(LiveEventIngestInterruptionResponse... ingestInterruptions) {
return ingestInterruptions(List.of(ingestInterruptions));
}
@CustomType.Setter
public Builder streamName(@Nullable String streamName) {
this.streamName = streamName;
return this;
}
public LiveEventIngestionResponse build() {
final var _resultValue = new LiveEventIngestionResponse();
_resultValue.begin = begin;
_resultValue.end = end;
_resultValue.endReason = endReason;
_resultValue.ingestInterruptions = ingestInterruptions;
_resultValue.streamName = streamName;
return _resultValue;
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy