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

com.pulumi.azurenative.security.inputs.DevOpsPolicyAssignmentPropertiesArgs Maven / Gradle / Ivy

// *** 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.security.inputs;

import com.pulumi.azurenative.security.enums.DescendantBehavior;
import com.pulumi.azurenative.security.inputs.DevOpsPolicyDescriptorArgs;
import com.pulumi.core.Either;
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;


/**
 * Properties of the DevOps policy assignment resource.
 * 
 */
public final class DevOpsPolicyAssignmentPropertiesArgs extends com.pulumi.resources.ResourceArgs {

    public static final DevOpsPolicyAssignmentPropertiesArgs Empty = new DevOpsPolicyAssignmentPropertiesArgs();

    /**
     * Gets or sets time when the assignment was created in UTC.
     * 
     */
    @Import(name="assignedAt")
    private @Nullable Output assignedAt;

    /**
     * @return Gets or sets time when the assignment was created in UTC.
     * 
     */
    public Optional> assignedAt() {
        return Optional.ofNullable(this.assignedAt);
    }

    /**
     * The behavior of a policy on descendant resources.
     * 
     */
    @Import(name="descendantBehavior")
    private @Nullable Output> descendantBehavior;

    /**
     * @return The behavior of a policy on descendant resources.
     * 
     */
    public Optional>> descendantBehavior() {
        return Optional.ofNullable(this.descendantBehavior);
    }

    /**
     * Condensed information to identify a DevOps Policy resource.
     * 
     */
    @Import(name="policy")
    private @Nullable Output policy;

    /**
     * @return Condensed information to identify a DevOps Policy resource.
     * 
     */
    public Optional> policy() {
        return Optional.ofNullable(this.policy);
    }

    /**
     * Gets or sets the Azure resource id.
     * 
     */
    @Import(name="resourceId")
    private @Nullable Output resourceId;

    /**
     * @return Gets or sets the Azure resource id.
     * 
     */
    public Optional> resourceId() {
        return Optional.ofNullable(this.resourceId);
    }

    private DevOpsPolicyAssignmentPropertiesArgs() {}

    private DevOpsPolicyAssignmentPropertiesArgs(DevOpsPolicyAssignmentPropertiesArgs $) {
        this.assignedAt = $.assignedAt;
        this.descendantBehavior = $.descendantBehavior;
        this.policy = $.policy;
        this.resourceId = $.resourceId;
    }

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

    public static final class Builder {
        private DevOpsPolicyAssignmentPropertiesArgs $;

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

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

        /**
         * @param assignedAt Gets or sets time when the assignment was created in UTC.
         * 
         * @return builder
         * 
         */
        public Builder assignedAt(@Nullable Output assignedAt) {
            $.assignedAt = assignedAt;
            return this;
        }

        /**
         * @param assignedAt Gets or sets time when the assignment was created in UTC.
         * 
         * @return builder
         * 
         */
        public Builder assignedAt(String assignedAt) {
            return assignedAt(Output.of(assignedAt));
        }

        /**
         * @param descendantBehavior The behavior of a policy on descendant resources.
         * 
         * @return builder
         * 
         */
        public Builder descendantBehavior(@Nullable Output> descendantBehavior) {
            $.descendantBehavior = descendantBehavior;
            return this;
        }

        /**
         * @param descendantBehavior The behavior of a policy on descendant resources.
         * 
         * @return builder
         * 
         */
        public Builder descendantBehavior(Either descendantBehavior) {
            return descendantBehavior(Output.of(descendantBehavior));
        }

        /**
         * @param descendantBehavior The behavior of a policy on descendant resources.
         * 
         * @return builder
         * 
         */
        public Builder descendantBehavior(String descendantBehavior) {
            return descendantBehavior(Either.ofLeft(descendantBehavior));
        }

        /**
         * @param descendantBehavior The behavior of a policy on descendant resources.
         * 
         * @return builder
         * 
         */
        public Builder descendantBehavior(DescendantBehavior descendantBehavior) {
            return descendantBehavior(Either.ofRight(descendantBehavior));
        }

        /**
         * @param policy Condensed information to identify a DevOps Policy resource.
         * 
         * @return builder
         * 
         */
        public Builder policy(@Nullable Output policy) {
            $.policy = policy;
            return this;
        }

        /**
         * @param policy Condensed information to identify a DevOps Policy resource.
         * 
         * @return builder
         * 
         */
        public Builder policy(DevOpsPolicyDescriptorArgs policy) {
            return policy(Output.of(policy));
        }

        /**
         * @param resourceId Gets or sets the Azure resource id.
         * 
         * @return builder
         * 
         */
        public Builder resourceId(@Nullable Output resourceId) {
            $.resourceId = resourceId;
            return this;
        }

        /**
         * @param resourceId Gets or sets the Azure resource id.
         * 
         * @return builder
         * 
         */
        public Builder resourceId(String resourceId) {
            return resourceId(Output.of(resourceId));
        }

        public DevOpsPolicyAssignmentPropertiesArgs build() {
            return $;
        }
    }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy