
com.pulumi.azurenative.media.outputs.StreamingPolicyContentKeysResponse 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.DefaultKeyResponse;
import com.pulumi.azurenative.media.outputs.StreamingPolicyContentKeyResponse;
import com.pulumi.core.annotations.CustomType;
import java.util.List;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;
@CustomType
public final class StreamingPolicyContentKeysResponse {
/**
* @return Default content key for an encryption scheme
*
*/
private @Nullable DefaultKeyResponse defaultKey;
/**
* @return Representing tracks needs separate content key
*
*/
private @Nullable List keyToTrackMappings;
private StreamingPolicyContentKeysResponse() {}
/**
* @return Default content key for an encryption scheme
*
*/
public Optional defaultKey() {
return Optional.ofNullable(this.defaultKey);
}
/**
* @return Representing tracks needs separate content key
*
*/
public List keyToTrackMappings() {
return this.keyToTrackMappings == null ? List.of() : this.keyToTrackMappings;
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(StreamingPolicyContentKeysResponse defaults) {
return new Builder(defaults);
}
@CustomType.Builder
public static final class Builder {
private @Nullable DefaultKeyResponse defaultKey;
private @Nullable List keyToTrackMappings;
public Builder() {}
public Builder(StreamingPolicyContentKeysResponse defaults) {
Objects.requireNonNull(defaults);
this.defaultKey = defaults.defaultKey;
this.keyToTrackMappings = defaults.keyToTrackMappings;
}
@CustomType.Setter
public Builder defaultKey(@Nullable DefaultKeyResponse defaultKey) {
this.defaultKey = defaultKey;
return this;
}
@CustomType.Setter
public Builder keyToTrackMappings(@Nullable List keyToTrackMappings) {
this.keyToTrackMappings = keyToTrackMappings;
return this;
}
public Builder keyToTrackMappings(StreamingPolicyContentKeyResponse... keyToTrackMappings) {
return keyToTrackMappings(List.of(keyToTrackMappings));
}
public StreamingPolicyContentKeysResponse build() {
final var _resultValue = new StreamingPolicyContentKeysResponse();
_resultValue.defaultKey = defaultKey;
_resultValue.keyToTrackMappings = keyToTrackMappings;
return _resultValue;
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy