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

com.pulumi.azurenative.securityinsights.inputs.HuntOwnerArgs 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.securityinsights.inputs;

import com.pulumi.azurenative.securityinsights.enums.OwnerType;
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;


/**
 * Describes a user that the hunt is assigned to
 * 
 */
public final class HuntOwnerArgs extends com.pulumi.resources.ResourceArgs {

    public static final HuntOwnerArgs Empty = new HuntOwnerArgs();

    /**
     * The name of the user the hunt is assigned to.
     * 
     */
    @Import(name="assignedTo")
    private @Nullable Output assignedTo;

    /**
     * @return The name of the user the hunt is assigned to.
     * 
     */
    public Optional> assignedTo() {
        return Optional.ofNullable(this.assignedTo);
    }

    /**
     * The email of the user the hunt is assigned to.
     * 
     */
    @Import(name="email")
    private @Nullable Output email;

    /**
     * @return The email of the user the hunt is assigned to.
     * 
     */
    public Optional> email() {
        return Optional.ofNullable(this.email);
    }

    /**
     * The object id of the user the hunt is assigned to.
     * 
     */
    @Import(name="objectId")
    private @Nullable Output objectId;

    /**
     * @return The object id of the user the hunt is assigned to.
     * 
     */
    public Optional> objectId() {
        return Optional.ofNullable(this.objectId);
    }

    /**
     * The type of the owner the hunt is assigned to.
     * 
     */
    @Import(name="ownerType")
    private @Nullable Output> ownerType;

    /**
     * @return The type of the owner the hunt is assigned to.
     * 
     */
    public Optional>> ownerType() {
        return Optional.ofNullable(this.ownerType);
    }

    /**
     * The user principal name of the user the hunt is assigned to.
     * 
     */
    @Import(name="userPrincipalName")
    private @Nullable Output userPrincipalName;

    /**
     * @return The user principal name of the user the hunt is assigned to.
     * 
     */
    public Optional> userPrincipalName() {
        return Optional.ofNullable(this.userPrincipalName);
    }

    private HuntOwnerArgs() {}

    private HuntOwnerArgs(HuntOwnerArgs $) {
        this.assignedTo = $.assignedTo;
        this.email = $.email;
        this.objectId = $.objectId;
        this.ownerType = $.ownerType;
        this.userPrincipalName = $.userPrincipalName;
    }

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

    public static final class Builder {
        private HuntOwnerArgs $;

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

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

        /**
         * @param assignedTo The name of the user the hunt is assigned to.
         * 
         * @return builder
         * 
         */
        public Builder assignedTo(@Nullable Output assignedTo) {
            $.assignedTo = assignedTo;
            return this;
        }

        /**
         * @param assignedTo The name of the user the hunt is assigned to.
         * 
         * @return builder
         * 
         */
        public Builder assignedTo(String assignedTo) {
            return assignedTo(Output.of(assignedTo));
        }

        /**
         * @param email The email of the user the hunt is assigned to.
         * 
         * @return builder
         * 
         */
        public Builder email(@Nullable Output email) {
            $.email = email;
            return this;
        }

        /**
         * @param email The email of the user the hunt is assigned to.
         * 
         * @return builder
         * 
         */
        public Builder email(String email) {
            return email(Output.of(email));
        }

        /**
         * @param objectId The object id of the user the hunt is assigned to.
         * 
         * @return builder
         * 
         */
        public Builder objectId(@Nullable Output objectId) {
            $.objectId = objectId;
            return this;
        }

        /**
         * @param objectId The object id of the user the hunt is assigned to.
         * 
         * @return builder
         * 
         */
        public Builder objectId(String objectId) {
            return objectId(Output.of(objectId));
        }

        /**
         * @param ownerType The type of the owner the hunt is assigned to.
         * 
         * @return builder
         * 
         */
        public Builder ownerType(@Nullable Output> ownerType) {
            $.ownerType = ownerType;
            return this;
        }

        /**
         * @param ownerType The type of the owner the hunt is assigned to.
         * 
         * @return builder
         * 
         */
        public Builder ownerType(Either ownerType) {
            return ownerType(Output.of(ownerType));
        }

        /**
         * @param ownerType The type of the owner the hunt is assigned to.
         * 
         * @return builder
         * 
         */
        public Builder ownerType(String ownerType) {
            return ownerType(Either.ofLeft(ownerType));
        }

        /**
         * @param ownerType The type of the owner the hunt is assigned to.
         * 
         * @return builder
         * 
         */
        public Builder ownerType(OwnerType ownerType) {
            return ownerType(Either.ofRight(ownerType));
        }

        /**
         * @param userPrincipalName The user principal name of the user the hunt is assigned to.
         * 
         * @return builder
         * 
         */
        public Builder userPrincipalName(@Nullable Output userPrincipalName) {
            $.userPrincipalName = userPrincipalName;
            return this;
        }

        /**
         * @param userPrincipalName The user principal name of the user the hunt is assigned to.
         * 
         * @return builder
         * 
         */
        public Builder userPrincipalName(String userPrincipalName) {
            return userPrincipalName(Output.of(userPrincipalName));
        }

        public HuntOwnerArgs build() {
            return $;
        }
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy