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

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

import com.pulumi.azurenative.media.outputs.AssetFileEncryptionMetadataResponse;
import com.pulumi.core.annotations.CustomType;
import java.lang.String;
import java.util.List;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;

@CustomType
public final class GetAssetEncryptionKeyResult {
    /**
     * @return Asset File encryption metadata.
     * 
     */
    private @Nullable List assetFileEncryptionMetadata;
    /**
     * @return The Asset File storage encryption key.
     * 
     */
    private @Nullable String key;

    private GetAssetEncryptionKeyResult() {}
    /**
     * @return Asset File encryption metadata.
     * 
     */
    public List assetFileEncryptionMetadata() {
        return this.assetFileEncryptionMetadata == null ? List.of() : this.assetFileEncryptionMetadata;
    }
    /**
     * @return The Asset File storage encryption key.
     * 
     */
    public Optional key() {
        return Optional.ofNullable(this.key);
    }

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

    public static Builder builder(GetAssetEncryptionKeyResult defaults) {
        return new Builder(defaults);
    }
    @CustomType.Builder
    public static final class Builder {
        private @Nullable List assetFileEncryptionMetadata;
        private @Nullable String key;
        public Builder() {}
        public Builder(GetAssetEncryptionKeyResult defaults) {
    	      Objects.requireNonNull(defaults);
    	      this.assetFileEncryptionMetadata = defaults.assetFileEncryptionMetadata;
    	      this.key = defaults.key;
        }

        @CustomType.Setter
        public Builder assetFileEncryptionMetadata(@Nullable List assetFileEncryptionMetadata) {

            this.assetFileEncryptionMetadata = assetFileEncryptionMetadata;
            return this;
        }
        public Builder assetFileEncryptionMetadata(AssetFileEncryptionMetadataResponse... assetFileEncryptionMetadata) {
            return assetFileEncryptionMetadata(List.of(assetFileEncryptionMetadata));
        }
        @CustomType.Setter
        public Builder key(@Nullable String key) {

            this.key = key;
            return this;
        }
        public GetAssetEncryptionKeyResult build() {
            final var _resultValue = new GetAssetEncryptionKeyResult();
            _resultValue.assetFileEncryptionMetadata = assetFileEncryptionMetadata;
            _resultValue.key = key;
            return _resultValue;
        }
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy