com.pulumi.azurenative.media.outputs.StreamingPolicyContentKeyResponse 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.TrackSelectionResponse;
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 StreamingPolicyContentKeyResponse {
/**
* @return Label can be used to specify Content Key when creating a Streaming Locator
*
*/
private @Nullable String label;
/**
* @return Policy used by Content Key
*
*/
private @Nullable String policyName;
/**
* @return Tracks which use this content key
*
*/
private @Nullable List tracks;
private StreamingPolicyContentKeyResponse() {}
/**
* @return Label can be used to specify Content Key when creating a Streaming Locator
*
*/
public Optional label() {
return Optional.ofNullable(this.label);
}
/**
* @return Policy used by Content Key
*
*/
public Optional policyName() {
return Optional.ofNullable(this.policyName);
}
/**
* @return Tracks which use this content key
*
*/
public List tracks() {
return this.tracks == null ? List.of() : this.tracks;
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(StreamingPolicyContentKeyResponse defaults) {
return new Builder(defaults);
}
@CustomType.Builder
public static final class Builder {
private @Nullable String label;
private @Nullable String policyName;
private @Nullable List tracks;
public Builder() {}
public Builder(StreamingPolicyContentKeyResponse defaults) {
Objects.requireNonNull(defaults);
this.label = defaults.label;
this.policyName = defaults.policyName;
this.tracks = defaults.tracks;
}
@CustomType.Setter
public Builder label(@Nullable String label) {
this.label = label;
return this;
}
@CustomType.Setter
public Builder policyName(@Nullable String policyName) {
this.policyName = policyName;
return this;
}
@CustomType.Setter
public Builder tracks(@Nullable List tracks) {
this.tracks = tracks;
return this;
}
public Builder tracks(TrackSelectionResponse... tracks) {
return tracks(List.of(tracks));
}
public StreamingPolicyContentKeyResponse build() {
final var _resultValue = new StreamingPolicyContentKeyResponse();
_resultValue.label = label;
_resultValue.policyName = policyName;
_resultValue.tracks = tracks;
return _resultValue;
}
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy