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

com.pulumi.azurenative.keyvault.inputs.RotationPolicyArgs 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.keyvault.inputs;

import com.pulumi.azurenative.keyvault.inputs.KeyRotationPolicyAttributesArgs;
import com.pulumi.azurenative.keyvault.inputs.LifetimeActionArgs;
import com.pulumi.core.Output;
import com.pulumi.core.annotations.Import;
import java.util.List;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;


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

    public static final RotationPolicyArgs Empty = new RotationPolicyArgs();

    /**
     * The attributes of key rotation policy.
     * 
     */
    @Import(name="attributes")
    private @Nullable Output attributes;

    /**
     * @return The attributes of key rotation policy.
     * 
     */
    public Optional> attributes() {
        return Optional.ofNullable(this.attributes);
    }

    /**
     * The lifetimeActions for key rotation action.
     * 
     */
    @Import(name="lifetimeActions")
    private @Nullable Output> lifetimeActions;

    /**
     * @return The lifetimeActions for key rotation action.
     * 
     */
    public Optional>> lifetimeActions() {
        return Optional.ofNullable(this.lifetimeActions);
    }

    private RotationPolicyArgs() {}

    private RotationPolicyArgs(RotationPolicyArgs $) {
        this.attributes = $.attributes;
        this.lifetimeActions = $.lifetimeActions;
    }

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

    public static final class Builder {
        private RotationPolicyArgs $;

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

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

        /**
         * @param attributes The attributes of key rotation policy.
         * 
         * @return builder
         * 
         */
        public Builder attributes(@Nullable Output attributes) {
            $.attributes = attributes;
            return this;
        }

        /**
         * @param attributes The attributes of key rotation policy.
         * 
         * @return builder
         * 
         */
        public Builder attributes(KeyRotationPolicyAttributesArgs attributes) {
            return attributes(Output.of(attributes));
        }

        /**
         * @param lifetimeActions The lifetimeActions for key rotation action.
         * 
         * @return builder
         * 
         */
        public Builder lifetimeActions(@Nullable Output> lifetimeActions) {
            $.lifetimeActions = lifetimeActions;
            return this;
        }

        /**
         * @param lifetimeActions The lifetimeActions for key rotation action.
         * 
         * @return builder
         * 
         */
        public Builder lifetimeActions(List lifetimeActions) {
            return lifetimeActions(Output.of(lifetimeActions));
        }

        /**
         * @param lifetimeActions The lifetimeActions for key rotation action.
         * 
         * @return builder
         * 
         */
        public Builder lifetimeActions(LifetimeActionArgs... lifetimeActions) {
            return lifetimeActions(List.of(lifetimeActions));
        }

        public RotationPolicyArgs build() {
            return $;
        }
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy