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

com.pulumi.azurenative.media.MediaServiceArgs 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;

import com.pulumi.azurenative.media.enums.MinimumTlsVersion;
import com.pulumi.azurenative.media.enums.PublicNetworkAccess;
import com.pulumi.azurenative.media.enums.StorageAuthentication;
import com.pulumi.azurenative.media.inputs.AccountEncryptionArgs;
import com.pulumi.azurenative.media.inputs.KeyDeliveryArgs;
import com.pulumi.azurenative.media.inputs.MediaServiceIdentityArgs;
import com.pulumi.azurenative.media.inputs.StorageAccountArgs;
import com.pulumi.core.Either;
import com.pulumi.core.Output;
import com.pulumi.core.annotations.Import;
import com.pulumi.core.internal.Codegen;
import com.pulumi.exceptions.MissingRequiredPropertyException;
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 MediaServiceArgs extends com.pulumi.resources.ResourceArgs {

    public static final MediaServiceArgs Empty = new MediaServiceArgs();

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

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

    /**
     * The account encryption properties.
     * 
     */
    @Import(name="encryption")
    private @Nullable Output encryption;

    /**
     * @return The account encryption properties.
     * 
     */
    public Optional> encryption() {
        return Optional.ofNullable(this.encryption);
    }

    /**
     * The Managed Identity for the Media Services account.
     * 
     */
    @Import(name="identity")
    private @Nullable Output identity;

    /**
     * @return The Managed Identity for the Media Services account.
     * 
     */
    public Optional> identity() {
        return Optional.ofNullable(this.identity);
    }

    /**
     * The Key Delivery properties for Media Services account.
     * 
     */
    @Import(name="keyDelivery")
    private @Nullable Output keyDelivery;

    /**
     * @return The Key Delivery properties for Media Services account.
     * 
     */
    public Optional> keyDelivery() {
        return Optional.ofNullable(this.keyDelivery);
    }

    /**
     * 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);
    }

    /**
     * The minimum TLS version allowed for this account's requests. This is an optional property. If unspecified, a secure default value will be used.
     * 
     */
    @Import(name="minimumTlsVersion")
    private @Nullable Output> minimumTlsVersion;

    /**
     * @return The minimum TLS version allowed for this account's requests. This is an optional property. If unspecified, a secure default value will be used.
     * 
     */
    public Optional>> minimumTlsVersion() {
        return Optional.ofNullable(this.minimumTlsVersion);
    }

    /**
     * Whether or not public network access is allowed for resources under the Media Services account.
     * 
     */
    @Import(name="publicNetworkAccess")
    private @Nullable Output> publicNetworkAccess;

    /**
     * @return Whether or not public network access is allowed for resources under the Media Services account.
     * 
     */
    public Optional>> publicNetworkAccess() {
        return Optional.ofNullable(this.publicNetworkAccess);
    }

    /**
     * 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 storage accounts for this resource.
     * 
     */
    @Import(name="storageAccounts")
    private @Nullable Output> storageAccounts;

    /**
     * @return The storage accounts for this resource.
     * 
     */
    public Optional>> storageAccounts() {
        return Optional.ofNullable(this.storageAccounts);
    }

    @Import(name="storageAuthentication")
    private @Nullable Output> storageAuthentication;

    public Optional>> storageAuthentication() {
        return Optional.ofNullable(this.storageAuthentication);
    }

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

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

    private MediaServiceArgs() {}

    private MediaServiceArgs(MediaServiceArgs $) {
        this.accountName = $.accountName;
        this.encryption = $.encryption;
        this.identity = $.identity;
        this.keyDelivery = $.keyDelivery;
        this.location = $.location;
        this.minimumTlsVersion = $.minimumTlsVersion;
        this.publicNetworkAccess = $.publicNetworkAccess;
        this.resourceGroupName = $.resourceGroupName;
        this.storageAccounts = $.storageAccounts;
        this.storageAuthentication = $.storageAuthentication;
        this.tags = $.tags;
    }

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

    public static final class Builder {
        private MediaServiceArgs $;

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

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

        /**
         * @param accountName The Media Services account name.
         * 
         * @return builder
         * 
         */
        public Builder accountName(@Nullable 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 encryption The account encryption properties.
         * 
         * @return builder
         * 
         */
        public Builder encryption(@Nullable Output encryption) {
            $.encryption = encryption;
            return this;
        }

        /**
         * @param encryption The account encryption properties.
         * 
         * @return builder
         * 
         */
        public Builder encryption(AccountEncryptionArgs encryption) {
            return encryption(Output.of(encryption));
        }

        /**
         * @param identity The Managed Identity for the Media Services account.
         * 
         * @return builder
         * 
         */
        public Builder identity(@Nullable Output identity) {
            $.identity = identity;
            return this;
        }

        /**
         * @param identity The Managed Identity for the Media Services account.
         * 
         * @return builder
         * 
         */
        public Builder identity(MediaServiceIdentityArgs identity) {
            return identity(Output.of(identity));
        }

        /**
         * @param keyDelivery The Key Delivery properties for Media Services account.
         * 
         * @return builder
         * 
         */
        public Builder keyDelivery(@Nullable Output keyDelivery) {
            $.keyDelivery = keyDelivery;
            return this;
        }

        /**
         * @param keyDelivery The Key Delivery properties for Media Services account.
         * 
         * @return builder
         * 
         */
        public Builder keyDelivery(KeyDeliveryArgs keyDelivery) {
            return keyDelivery(Output.of(keyDelivery));
        }

        /**
         * @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 minimumTlsVersion The minimum TLS version allowed for this account's requests. This is an optional property. If unspecified, a secure default value will be used.
         * 
         * @return builder
         * 
         */
        public Builder minimumTlsVersion(@Nullable Output> minimumTlsVersion) {
            $.minimumTlsVersion = minimumTlsVersion;
            return this;
        }

        /**
         * @param minimumTlsVersion The minimum TLS version allowed for this account's requests. This is an optional property. If unspecified, a secure default value will be used.
         * 
         * @return builder
         * 
         */
        public Builder minimumTlsVersion(Either minimumTlsVersion) {
            return minimumTlsVersion(Output.of(minimumTlsVersion));
        }

        /**
         * @param minimumTlsVersion The minimum TLS version allowed for this account's requests. This is an optional property. If unspecified, a secure default value will be used.
         * 
         * @return builder
         * 
         */
        public Builder minimumTlsVersion(String minimumTlsVersion) {
            return minimumTlsVersion(Either.ofLeft(minimumTlsVersion));
        }

        /**
         * @param minimumTlsVersion The minimum TLS version allowed for this account's requests. This is an optional property. If unspecified, a secure default value will be used.
         * 
         * @return builder
         * 
         */
        public Builder minimumTlsVersion(MinimumTlsVersion minimumTlsVersion) {
            return minimumTlsVersion(Either.ofRight(minimumTlsVersion));
        }

        /**
         * @param publicNetworkAccess Whether or not public network access is allowed for resources under the Media Services account.
         * 
         * @return builder
         * 
         */
        public Builder publicNetworkAccess(@Nullable Output> publicNetworkAccess) {
            $.publicNetworkAccess = publicNetworkAccess;
            return this;
        }

        /**
         * @param publicNetworkAccess Whether or not public network access is allowed for resources under the Media Services account.
         * 
         * @return builder
         * 
         */
        public Builder publicNetworkAccess(Either publicNetworkAccess) {
            return publicNetworkAccess(Output.of(publicNetworkAccess));
        }

        /**
         * @param publicNetworkAccess Whether or not public network access is allowed for resources under the Media Services account.
         * 
         * @return builder
         * 
         */
        public Builder publicNetworkAccess(String publicNetworkAccess) {
            return publicNetworkAccess(Either.ofLeft(publicNetworkAccess));
        }

        /**
         * @param publicNetworkAccess Whether or not public network access is allowed for resources under the Media Services account.
         * 
         * @return builder
         * 
         */
        public Builder publicNetworkAccess(PublicNetworkAccess publicNetworkAccess) {
            return publicNetworkAccess(Either.ofRight(publicNetworkAccess));
        }

        /**
         * @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 storageAccounts The storage accounts for this resource.
         * 
         * @return builder
         * 
         */
        public Builder storageAccounts(@Nullable Output> storageAccounts) {
            $.storageAccounts = storageAccounts;
            return this;
        }

        /**
         * @param storageAccounts The storage accounts for this resource.
         * 
         * @return builder
         * 
         */
        public Builder storageAccounts(List storageAccounts) {
            return storageAccounts(Output.of(storageAccounts));
        }

        /**
         * @param storageAccounts The storage accounts for this resource.
         * 
         * @return builder
         * 
         */
        public Builder storageAccounts(StorageAccountArgs... storageAccounts) {
            return storageAccounts(List.of(storageAccounts));
        }

        public Builder storageAuthentication(@Nullable Output> storageAuthentication) {
            $.storageAuthentication = storageAuthentication;
            return this;
        }

        public Builder storageAuthentication(Either storageAuthentication) {
            return storageAuthentication(Output.of(storageAuthentication));
        }

        public Builder storageAuthentication(String storageAuthentication) {
            return storageAuthentication(Either.ofLeft(storageAuthentication));
        }

        public Builder storageAuthentication(StorageAuthentication storageAuthentication) {
            return storageAuthentication(Either.ofRight(storageAuthentication));
        }

        /**
         * @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 MediaServiceArgs build() {
            $.minimumTlsVersion = Codegen.stringProp("minimumTlsVersion").left(MinimumTlsVersion.class).output().arg($.minimumTlsVersion).def("Tls12").getNullable();
            if ($.resourceGroupName == null) {
                throw new MissingRequiredPropertyException("MediaServiceArgs", "resourceGroupName");
            }
            return $;
        }
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy