
com.pulumi.azurenative.media.outputs.StreamingLocatorContentKeyResponse 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.media.outputs;
import com.pulumi.azurenative.media.outputs.TrackSelectionResponse;
import com.pulumi.core.annotations.CustomType;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.String;
import java.util.List;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;
@CustomType
public final class StreamingLocatorContentKeyResponse {
/**
* @return ID of Content Key
*
*/
private String id;
/**
* @return Label of Content Key as specified in the Streaming Policy
*
*/
private @Nullable String labelReferenceInStreamingPolicy;
/**
* @return ContentKeyPolicy used by Content Key
*
*/
private String policyName;
/**
* @return Tracks which use this Content Key
*
*/
private List tracks;
/**
* @return Encryption type of Content Key
*
*/
private String type;
/**
* @return Value of Content Key
*
*/
private @Nullable String value;
private StreamingLocatorContentKeyResponse() {}
/**
* @return ID of Content Key
*
*/
public String id() {
return this.id;
}
/**
* @return Label of Content Key as specified in the Streaming Policy
*
*/
public Optional labelReferenceInStreamingPolicy() {
return Optional.ofNullable(this.labelReferenceInStreamingPolicy);
}
/**
* @return ContentKeyPolicy used by Content Key
*
*/
public String policyName() {
return this.policyName;
}
/**
* @return Tracks which use this Content Key
*
*/
public List tracks() {
return this.tracks;
}
/**
* @return Encryption type of Content Key
*
*/
public String type() {
return this.type;
}
/**
* @return Value of Content Key
*
*/
public Optional value() {
return Optional.ofNullable(this.value);
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(StreamingLocatorContentKeyResponse defaults) {
return new Builder(defaults);
}
@CustomType.Builder
public static final class Builder {
private String id;
private @Nullable String labelReferenceInStreamingPolicy;
private String policyName;
private List tracks;
private String type;
private @Nullable String value;
public Builder() {}
public Builder(StreamingLocatorContentKeyResponse defaults) {
Objects.requireNonNull(defaults);
this.id = defaults.id;
this.labelReferenceInStreamingPolicy = defaults.labelReferenceInStreamingPolicy;
this.policyName = defaults.policyName;
this.tracks = defaults.tracks;
this.type = defaults.type;
this.value = defaults.value;
}
@CustomType.Setter
public Builder id(String id) {
if (id == null) {
throw new MissingRequiredPropertyException("StreamingLocatorContentKeyResponse", "id");
}
this.id = id;
return this;
}
@CustomType.Setter
public Builder labelReferenceInStreamingPolicy(@Nullable String labelReferenceInStreamingPolicy) {
this.labelReferenceInStreamingPolicy = labelReferenceInStreamingPolicy;
return this;
}
@CustomType.Setter
public Builder policyName(String policyName) {
if (policyName == null) {
throw new MissingRequiredPropertyException("StreamingLocatorContentKeyResponse", "policyName");
}
this.policyName = policyName;
return this;
}
@CustomType.Setter
public Builder tracks(List tracks) {
if (tracks == null) {
throw new MissingRequiredPropertyException("StreamingLocatorContentKeyResponse", "tracks");
}
this.tracks = tracks;
return this;
}
public Builder tracks(TrackSelectionResponse... tracks) {
return tracks(List.of(tracks));
}
@CustomType.Setter
public Builder type(String type) {
if (type == null) {
throw new MissingRequiredPropertyException("StreamingLocatorContentKeyResponse", "type");
}
this.type = type;
return this;
}
@CustomType.Setter
public Builder value(@Nullable String value) {
this.value = value;
return this;
}
public StreamingLocatorContentKeyResponse build() {
final var _resultValue = new StreamingLocatorContentKeyResponse();
_resultValue.id = id;
_resultValue.labelReferenceInStreamingPolicy = labelReferenceInStreamingPolicy;
_resultValue.policyName = policyName;
_resultValue.tracks = tracks;
_resultValue.type = type;
_resultValue.value = value;
return _resultValue;
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy