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

com.pulumi.azurenative.media.StreamingEndpointArgs Maven / Gradle / Ivy

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

import com.pulumi.azurenative.media.inputs.ArmStreamingEndpointCurrentSkuArgs;
import com.pulumi.azurenative.media.inputs.CrossSiteAccessPoliciesArgs;
import com.pulumi.azurenative.media.inputs.StreamingEndpointAccessControlArgs;
import com.pulumi.core.Output;
import com.pulumi.core.annotations.Import;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.Boolean;
import java.lang.Double;
import java.lang.Integer;
import java.lang.String;
import java.util.List;
import java.util.Map;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;


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

    public static final StreamingEndpointArgs Empty = new StreamingEndpointArgs();

    /**
     * The access control definition of the streaming endpoint.
     * 
     */
    @Import(name="accessControl")
    private @Nullable Output accessControl;

    /**
     * @return The access control definition of the streaming endpoint.
     * 
     */
    public Optional> accessControl() {
        return Optional.ofNullable(this.accessControl);
    }

    /**
     * The Media Services account name.
     * 
     */
    @Import(name="accountName", required=true)
    private Output accountName;

    /**
     * @return The Media Services account name.
     * 
     */
    public Output accountName() {
        return this.accountName;
    }

    /**
     * The flag indicates if the resource should be automatically started on creation.
     * 
     */
    @Import(name="autoStart")
    private @Nullable Output autoStart;

    /**
     * @return The flag indicates if the resource should be automatically started on creation.
     * 
     */
    public Optional> autoStart() {
        return Optional.ofNullable(this.autoStart);
    }

    /**
     * This feature is deprecated, do not set a value for this property.
     * 
     */
    @Import(name="availabilitySetName")
    private @Nullable Output availabilitySetName;

    /**
     * @return This feature is deprecated, do not set a value for this property.
     * 
     */
    public Optional> availabilitySetName() {
        return Optional.ofNullable(this.availabilitySetName);
    }

    /**
     * The CDN enabled flag.
     * 
     */
    @Import(name="cdnEnabled")
    private @Nullable Output cdnEnabled;

    /**
     * @return The CDN enabled flag.
     * 
     */
    public Optional> cdnEnabled() {
        return Optional.ofNullable(this.cdnEnabled);
    }

    /**
     * The CDN profile name.
     * 
     */
    @Import(name="cdnProfile")
    private @Nullable Output cdnProfile;

    /**
     * @return The CDN profile name.
     * 
     */
    public Optional> cdnProfile() {
        return Optional.ofNullable(this.cdnProfile);
    }

    /**
     * The CDN provider name.
     * 
     */
    @Import(name="cdnProvider")
    private @Nullable Output cdnProvider;

    /**
     * @return The CDN provider name.
     * 
     */
    public Optional> cdnProvider() {
        return Optional.ofNullable(this.cdnProvider);
    }

    /**
     * The streaming endpoint access policies.
     * 
     */
    @Import(name="crossSiteAccessPolicies")
    private @Nullable Output crossSiteAccessPolicies;

    /**
     * @return The streaming endpoint access policies.
     * 
     */
    public Optional> crossSiteAccessPolicies() {
        return Optional.ofNullable(this.crossSiteAccessPolicies);
    }

    /**
     * The custom host names of the streaming endpoint
     * 
     */
    @Import(name="customHostNames")
    private @Nullable Output> customHostNames;

    /**
     * @return The custom host names of the streaming endpoint
     * 
     */
    public Optional>> customHostNames() {
        return Optional.ofNullable(this.customHostNames);
    }

    /**
     * The streaming endpoint description.
     * 
     */
    @Import(name="description")
    private @Nullable Output description;

    /**
     * @return The streaming endpoint description.
     * 
     */
    public Optional> description() {
        return Optional.ofNullable(this.description);
    }

    /**
     * The geo-location where the resource lives
     * 
     */
    @Import(name="location")
    private @Nullable Output location;

    /**
     * @return The geo-location where the resource lives
     * 
     */
    public Optional> location() {
        return Optional.ofNullable(this.location);
    }

    /**
     * Max cache age
     * 
     */
    @Import(name="maxCacheAge")
    private @Nullable Output maxCacheAge;

    /**
     * @return Max cache age
     * 
     */
    public Optional> maxCacheAge() {
        return Optional.ofNullable(this.maxCacheAge);
    }

    /**
     * The name of the resource group within the Azure subscription.
     * 
     */
    @Import(name="resourceGroupName", required=true)
    private Output resourceGroupName;

    /**
     * @return The name of the resource group within the Azure subscription.
     * 
     */
    public Output resourceGroupName() {
        return this.resourceGroupName;
    }

    /**
     * The number of scale units. Use the Scale operation to adjust this value.
     * 
     */
    @Import(name="scaleUnits", required=true)
    private Output scaleUnits;

    /**
     * @return The number of scale units. Use the Scale operation to adjust this value.
     * 
     */
    public Output scaleUnits() {
        return this.scaleUnits;
    }

    /**
     * The streaming endpoint sku.
     * 
     */
    @Import(name="sku")
    private @Nullable Output sku;

    /**
     * @return The streaming endpoint sku.
     * 
     */
    public Optional> sku() {
        return Optional.ofNullable(this.sku);
    }

    /**
     * The name of the streaming endpoint, maximum length is 24.
     * 
     */
    @Import(name="streamingEndpointName")
    private @Nullable Output streamingEndpointName;

    /**
     * @return The name of the streaming endpoint, maximum length is 24.
     * 
     */
    public Optional> streamingEndpointName() {
        return Optional.ofNullable(this.streamingEndpointName);
    }

    /**
     * Resource tags.
     * 
     */
    @Import(name="tags")
    private @Nullable Output> tags;

    /**
     * @return Resource tags.
     * 
     */
    public Optional>> tags() {
        return Optional.ofNullable(this.tags);
    }

    private StreamingEndpointArgs() {}

    private StreamingEndpointArgs(StreamingEndpointArgs $) {
        this.accessControl = $.accessControl;
        this.accountName = $.accountName;
        this.autoStart = $.autoStart;
        this.availabilitySetName = $.availabilitySetName;
        this.cdnEnabled = $.cdnEnabled;
        this.cdnProfile = $.cdnProfile;
        this.cdnProvider = $.cdnProvider;
        this.crossSiteAccessPolicies = $.crossSiteAccessPolicies;
        this.customHostNames = $.customHostNames;
        this.description = $.description;
        this.location = $.location;
        this.maxCacheAge = $.maxCacheAge;
        this.resourceGroupName = $.resourceGroupName;
        this.scaleUnits = $.scaleUnits;
        this.sku = $.sku;
        this.streamingEndpointName = $.streamingEndpointName;
        this.tags = $.tags;
    }

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

    public static final class Builder {
        private StreamingEndpointArgs $;

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

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

        /**
         * @param accessControl The access control definition of the streaming endpoint.
         * 
         * @return builder
         * 
         */
        public Builder accessControl(@Nullable Output accessControl) {
            $.accessControl = accessControl;
            return this;
        }

        /**
         * @param accessControl The access control definition of the streaming endpoint.
         * 
         * @return builder
         * 
         */
        public Builder accessControl(StreamingEndpointAccessControlArgs accessControl) {
            return accessControl(Output.of(accessControl));
        }

        /**
         * @param accountName The Media Services account name.
         * 
         * @return builder
         * 
         */
        public Builder accountName(Output accountName) {
            $.accountName = accountName;
            return this;
        }

        /**
         * @param accountName The Media Services account name.
         * 
         * @return builder
         * 
         */
        public Builder accountName(String accountName) {
            return accountName(Output.of(accountName));
        }

        /**
         * @param autoStart The flag indicates if the resource should be automatically started on creation.
         * 
         * @return builder
         * 
         */
        public Builder autoStart(@Nullable Output autoStart) {
            $.autoStart = autoStart;
            return this;
        }

        /**
         * @param autoStart The flag indicates if the resource should be automatically started on creation.
         * 
         * @return builder
         * 
         */
        public Builder autoStart(Boolean autoStart) {
            return autoStart(Output.of(autoStart));
        }

        /**
         * @param availabilitySetName This feature is deprecated, do not set a value for this property.
         * 
         * @return builder
         * 
         */
        public Builder availabilitySetName(@Nullable Output availabilitySetName) {
            $.availabilitySetName = availabilitySetName;
            return this;
        }

        /**
         * @param availabilitySetName This feature is deprecated, do not set a value for this property.
         * 
         * @return builder
         * 
         */
        public Builder availabilitySetName(String availabilitySetName) {
            return availabilitySetName(Output.of(availabilitySetName));
        }

        /**
         * @param cdnEnabled The CDN enabled flag.
         * 
         * @return builder
         * 
         */
        public Builder cdnEnabled(@Nullable Output cdnEnabled) {
            $.cdnEnabled = cdnEnabled;
            return this;
        }

        /**
         * @param cdnEnabled The CDN enabled flag.
         * 
         * @return builder
         * 
         */
        public Builder cdnEnabled(Boolean cdnEnabled) {
            return cdnEnabled(Output.of(cdnEnabled));
        }

        /**
         * @param cdnProfile The CDN profile name.
         * 
         * @return builder
         * 
         */
        public Builder cdnProfile(@Nullable Output cdnProfile) {
            $.cdnProfile = cdnProfile;
            return this;
        }

        /**
         * @param cdnProfile The CDN profile name.
         * 
         * @return builder
         * 
         */
        public Builder cdnProfile(String cdnProfile) {
            return cdnProfile(Output.of(cdnProfile));
        }

        /**
         * @param cdnProvider The CDN provider name.
         * 
         * @return builder
         * 
         */
        public Builder cdnProvider(@Nullable Output cdnProvider) {
            $.cdnProvider = cdnProvider;
            return this;
        }

        /**
         * @param cdnProvider The CDN provider name.
         * 
         * @return builder
         * 
         */
        public Builder cdnProvider(String cdnProvider) {
            return cdnProvider(Output.of(cdnProvider));
        }

        /**
         * @param crossSiteAccessPolicies The streaming endpoint access policies.
         * 
         * @return builder
         * 
         */
        public Builder crossSiteAccessPolicies(@Nullable Output crossSiteAccessPolicies) {
            $.crossSiteAccessPolicies = crossSiteAccessPolicies;
            return this;
        }

        /**
         * @param crossSiteAccessPolicies The streaming endpoint access policies.
         * 
         * @return builder
         * 
         */
        public Builder crossSiteAccessPolicies(CrossSiteAccessPoliciesArgs crossSiteAccessPolicies) {
            return crossSiteAccessPolicies(Output.of(crossSiteAccessPolicies));
        }

        /**
         * @param customHostNames The custom host names of the streaming endpoint
         * 
         * @return builder
         * 
         */
        public Builder customHostNames(@Nullable Output> customHostNames) {
            $.customHostNames = customHostNames;
            return this;
        }

        /**
         * @param customHostNames The custom host names of the streaming endpoint
         * 
         * @return builder
         * 
         */
        public Builder customHostNames(List customHostNames) {
            return customHostNames(Output.of(customHostNames));
        }

        /**
         * @param customHostNames The custom host names of the streaming endpoint
         * 
         * @return builder
         * 
         */
        public Builder customHostNames(String... customHostNames) {
            return customHostNames(List.of(customHostNames));
        }

        /**
         * @param description The streaming endpoint description.
         * 
         * @return builder
         * 
         */
        public Builder description(@Nullable Output description) {
            $.description = description;
            return this;
        }

        /**
         * @param description The streaming endpoint description.
         * 
         * @return builder
         * 
         */
        public Builder description(String description) {
            return description(Output.of(description));
        }

        /**
         * @param location The geo-location where the resource lives
         * 
         * @return builder
         * 
         */
        public Builder location(@Nullable Output location) {
            $.location = location;
            return this;
        }

        /**
         * @param location The geo-location where the resource lives
         * 
         * @return builder
         * 
         */
        public Builder location(String location) {
            return location(Output.of(location));
        }

        /**
         * @param maxCacheAge Max cache age
         * 
         * @return builder
         * 
         */
        public Builder maxCacheAge(@Nullable Output maxCacheAge) {
            $.maxCacheAge = maxCacheAge;
            return this;
        }

        /**
         * @param maxCacheAge Max cache age
         * 
         * @return builder
         * 
         */
        public Builder maxCacheAge(Double maxCacheAge) {
            return maxCacheAge(Output.of(maxCacheAge));
        }

        /**
         * @param resourceGroupName The name of the resource group within the Azure subscription.
         * 
         * @return builder
         * 
         */
        public Builder resourceGroupName(Output resourceGroupName) {
            $.resourceGroupName = resourceGroupName;
            return this;
        }

        /**
         * @param resourceGroupName The name of the resource group within the Azure subscription.
         * 
         * @return builder
         * 
         */
        public Builder resourceGroupName(String resourceGroupName) {
            return resourceGroupName(Output.of(resourceGroupName));
        }

        /**
         * @param scaleUnits The number of scale units. Use the Scale operation to adjust this value.
         * 
         * @return builder
         * 
         */
        public Builder scaleUnits(Output scaleUnits) {
            $.scaleUnits = scaleUnits;
            return this;
        }

        /**
         * @param scaleUnits The number of scale units. Use the Scale operation to adjust this value.
         * 
         * @return builder
         * 
         */
        public Builder scaleUnits(Integer scaleUnits) {
            return scaleUnits(Output.of(scaleUnits));
        }

        /**
         * @param sku The streaming endpoint sku.
         * 
         * @return builder
         * 
         */
        public Builder sku(@Nullable Output sku) {
            $.sku = sku;
            return this;
        }

        /**
         * @param sku The streaming endpoint sku.
         * 
         * @return builder
         * 
         */
        public Builder sku(ArmStreamingEndpointCurrentSkuArgs sku) {
            return sku(Output.of(sku));
        }

        /**
         * @param streamingEndpointName The name of the streaming endpoint, maximum length is 24.
         * 
         * @return builder
         * 
         */
        public Builder streamingEndpointName(@Nullable Output streamingEndpointName) {
            $.streamingEndpointName = streamingEndpointName;
            return this;
        }

        /**
         * @param streamingEndpointName The name of the streaming endpoint, maximum length is 24.
         * 
         * @return builder
         * 
         */
        public Builder streamingEndpointName(String streamingEndpointName) {
            return streamingEndpointName(Output.of(streamingEndpointName));
        }

        /**
         * @param tags Resource tags.
         * 
         * @return builder
         * 
         */
        public Builder tags(@Nullable Output> tags) {
            $.tags = tags;
            return this;
        }

        /**
         * @param tags Resource tags.
         * 
         * @return builder
         * 
         */
        public Builder tags(Map tags) {
            return tags(Output.of(tags));
        }

        public StreamingEndpointArgs build() {
            if ($.accountName == null) {
                throw new MissingRequiredPropertyException("StreamingEndpointArgs", "accountName");
            }
            if ($.resourceGroupName == null) {
                throw new MissingRequiredPropertyException("StreamingEndpointArgs", "resourceGroupName");
            }
            if ($.scaleUnits == null) {
                throw new MissingRequiredPropertyException("StreamingEndpointArgs", "scaleUnits");
            }
            return $;
        }
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy