All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.pulumi.azurenative.media.inputs.ContentKeyPolicyFairPlayOfflineRentalConfigurationArgs Maven / Gradle / Ivy

The newest version!
// *** 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.inputs;

import com.pulumi.core.Output;
import com.pulumi.core.annotations.Import;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.Double;
import java.util.Objects;


public final class ContentKeyPolicyFairPlayOfflineRentalConfigurationArgs extends com.pulumi.resources.ResourceArgs {

    public static final ContentKeyPolicyFairPlayOfflineRentalConfigurationArgs Empty = new ContentKeyPolicyFairPlayOfflineRentalConfigurationArgs();

    /**
     * Playback duration
     * 
     */
    @Import(name="playbackDurationSeconds", required=true)
    private Output playbackDurationSeconds;

    /**
     * @return Playback duration
     * 
     */
    public Output playbackDurationSeconds() {
        return this.playbackDurationSeconds;
    }

    /**
     * Storage duration
     * 
     */
    @Import(name="storageDurationSeconds", required=true)
    private Output storageDurationSeconds;

    /**
     * @return Storage duration
     * 
     */
    public Output storageDurationSeconds() {
        return this.storageDurationSeconds;
    }

    private ContentKeyPolicyFairPlayOfflineRentalConfigurationArgs() {}

    private ContentKeyPolicyFairPlayOfflineRentalConfigurationArgs(ContentKeyPolicyFairPlayOfflineRentalConfigurationArgs $) {
        this.playbackDurationSeconds = $.playbackDurationSeconds;
        this.storageDurationSeconds = $.storageDurationSeconds;
    }

    public static Builder builder() {
        return new Builder();
    }
    public static Builder builder(ContentKeyPolicyFairPlayOfflineRentalConfigurationArgs defaults) {
        return new Builder(defaults);
    }

    public static final class Builder {
        private ContentKeyPolicyFairPlayOfflineRentalConfigurationArgs $;

        public Builder() {
            $ = new ContentKeyPolicyFairPlayOfflineRentalConfigurationArgs();
        }

        public Builder(ContentKeyPolicyFairPlayOfflineRentalConfigurationArgs defaults) {
            $ = new ContentKeyPolicyFairPlayOfflineRentalConfigurationArgs(Objects.requireNonNull(defaults));
        }

        /**
         * @param playbackDurationSeconds Playback duration
         * 
         * @return builder
         * 
         */
        public Builder playbackDurationSeconds(Output playbackDurationSeconds) {
            $.playbackDurationSeconds = playbackDurationSeconds;
            return this;
        }

        /**
         * @param playbackDurationSeconds Playback duration
         * 
         * @return builder
         * 
         */
        public Builder playbackDurationSeconds(Double playbackDurationSeconds) {
            return playbackDurationSeconds(Output.of(playbackDurationSeconds));
        }

        /**
         * @param storageDurationSeconds Storage duration
         * 
         * @return builder
         * 
         */
        public Builder storageDurationSeconds(Output storageDurationSeconds) {
            $.storageDurationSeconds = storageDurationSeconds;
            return this;
        }

        /**
         * @param storageDurationSeconds Storage duration
         * 
         * @return builder
         * 
         */
        public Builder storageDurationSeconds(Double storageDurationSeconds) {
            return storageDurationSeconds(Output.of(storageDurationSeconds));
        }

        public ContentKeyPolicyFairPlayOfflineRentalConfigurationArgs build() {
            if ($.playbackDurationSeconds == null) {
                throw new MissingRequiredPropertyException("ContentKeyPolicyFairPlayOfflineRentalConfigurationArgs", "playbackDurationSeconds");
            }
            if ($.storageDurationSeconds == null) {
                throw new MissingRequiredPropertyException("ContentKeyPolicyFairPlayOfflineRentalConfigurationArgs", "storageDurationSeconds");
            }
            return $;
        }
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy