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

com.pulumi.azurenative.media.outputs.ContentKeyPolicyFairPlayOfflineRentalConfigurationResponse Maven / Gradle / Ivy

There is a newer version: 2.72.0
Show 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.outputs;

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

@CustomType
public final class ContentKeyPolicyFairPlayOfflineRentalConfigurationResponse {
    /**
     * @return Playback duration
     * 
     */
    private Double playbackDurationSeconds;
    /**
     * @return Storage duration
     * 
     */
    private Double storageDurationSeconds;

    private ContentKeyPolicyFairPlayOfflineRentalConfigurationResponse() {}
    /**
     * @return Playback duration
     * 
     */
    public Double playbackDurationSeconds() {
        return this.playbackDurationSeconds;
    }
    /**
     * @return Storage duration
     * 
     */
    public Double storageDurationSeconds() {
        return this.storageDurationSeconds;
    }

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

    public static Builder builder(ContentKeyPolicyFairPlayOfflineRentalConfigurationResponse defaults) {
        return new Builder(defaults);
    }
    @CustomType.Builder
    public static final class Builder {
        private Double playbackDurationSeconds;
        private Double storageDurationSeconds;
        public Builder() {}
        public Builder(ContentKeyPolicyFairPlayOfflineRentalConfigurationResponse defaults) {
    	      Objects.requireNonNull(defaults);
    	      this.playbackDurationSeconds = defaults.playbackDurationSeconds;
    	      this.storageDurationSeconds = defaults.storageDurationSeconds;
        }

        @CustomType.Setter
        public Builder playbackDurationSeconds(Double playbackDurationSeconds) {
            if (playbackDurationSeconds == null) {
              throw new MissingRequiredPropertyException("ContentKeyPolicyFairPlayOfflineRentalConfigurationResponse", "playbackDurationSeconds");
            }
            this.playbackDurationSeconds = playbackDurationSeconds;
            return this;
        }
        @CustomType.Setter
        public Builder storageDurationSeconds(Double storageDurationSeconds) {
            if (storageDurationSeconds == null) {
              throw new MissingRequiredPropertyException("ContentKeyPolicyFairPlayOfflineRentalConfigurationResponse", "storageDurationSeconds");
            }
            this.storageDurationSeconds = storageDurationSeconds;
            return this;
        }
        public ContentKeyPolicyFairPlayOfflineRentalConfigurationResponse build() {
            final var _resultValue = new ContentKeyPolicyFairPlayOfflineRentalConfigurationResponse();
            _resultValue.playbackDurationSeconds = playbackDurationSeconds;
            _resultValue.storageDurationSeconds = storageDurationSeconds;
            return _resultValue;
        }
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy