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

com.pulumi.azurenative.storage.inputs.AccessPolicyArgs 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.storage.inputs;

import com.pulumi.core.Output;
import com.pulumi.core.annotations.Import;
import java.lang.String;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;


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

    public static final AccessPolicyArgs Empty = new AccessPolicyArgs();

    /**
     * Expiry time of the access policy
     * 
     */
    @Import(name="expiryTime")
    private @Nullable Output expiryTime;

    /**
     * @return Expiry time of the access policy
     * 
     */
    public Optional> expiryTime() {
        return Optional.ofNullable(this.expiryTime);
    }

    /**
     * List of abbreviated permissions.
     * 
     */
    @Import(name="permission")
    private @Nullable Output permission;

    /**
     * @return List of abbreviated permissions.
     * 
     */
    public Optional> permission() {
        return Optional.ofNullable(this.permission);
    }

    /**
     * Start time of the access policy
     * 
     */
    @Import(name="startTime")
    private @Nullable Output startTime;

    /**
     * @return Start time of the access policy
     * 
     */
    public Optional> startTime() {
        return Optional.ofNullable(this.startTime);
    }

    private AccessPolicyArgs() {}

    private AccessPolicyArgs(AccessPolicyArgs $) {
        this.expiryTime = $.expiryTime;
        this.permission = $.permission;
        this.startTime = $.startTime;
    }

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

    public static final class Builder {
        private AccessPolicyArgs $;

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

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

        /**
         * @param expiryTime Expiry time of the access policy
         * 
         * @return builder
         * 
         */
        public Builder expiryTime(@Nullable Output expiryTime) {
            $.expiryTime = expiryTime;
            return this;
        }

        /**
         * @param expiryTime Expiry time of the access policy
         * 
         * @return builder
         * 
         */
        public Builder expiryTime(String expiryTime) {
            return expiryTime(Output.of(expiryTime));
        }

        /**
         * @param permission List of abbreviated permissions.
         * 
         * @return builder
         * 
         */
        public Builder permission(@Nullable Output permission) {
            $.permission = permission;
            return this;
        }

        /**
         * @param permission List of abbreviated permissions.
         * 
         * @return builder
         * 
         */
        public Builder permission(String permission) {
            return permission(Output.of(permission));
        }

        /**
         * @param startTime Start time of the access policy
         * 
         * @return builder
         * 
         */
        public Builder startTime(@Nullable Output startTime) {
            $.startTime = startTime;
            return this;
        }

        /**
         * @param startTime Start time of the access policy
         * 
         * @return builder
         * 
         */
        public Builder startTime(String startTime) {
            return startTime(Output.of(startTime));
        }

        public AccessPolicyArgs build() {
            return $;
        }
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy