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

com.pulumi.azurenative.apicenter.inputs.MetadataAssignmentArgs 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.apicenter.inputs;

import com.pulumi.azurenative.apicenter.enums.MetadataAssignmentEntity;
import com.pulumi.core.Either;
import com.pulumi.core.Output;
import com.pulumi.core.annotations.Import;
import java.lang.Boolean;
import java.lang.String;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;


/**
 * Assignment metadata
 * 
 */
public final class MetadataAssignmentArgs extends com.pulumi.resources.ResourceArgs {

    public static final MetadataAssignmentArgs Empty = new MetadataAssignmentArgs();

    /**
     * Deprecated assignment
     * 
     */
    @Import(name="deprecated")
    private @Nullable Output deprecated;

    /**
     * @return Deprecated assignment
     * 
     */
    public Optional> deprecated() {
        return Optional.ofNullable(this.deprecated);
    }

    /**
     * The entities this metadata schema component gets applied to.
     * 
     */
    @Import(name="entity")
    private @Nullable Output> entity;

    /**
     * @return The entities this metadata schema component gets applied to.
     * 
     */
    public Optional>> entity() {
        return Optional.ofNullable(this.entity);
    }

    /**
     * Required assignment
     * 
     */
    @Import(name="required")
    private @Nullable Output required;

    /**
     * @return Required assignment
     * 
     */
    public Optional> required() {
        return Optional.ofNullable(this.required);
    }

    private MetadataAssignmentArgs() {}

    private MetadataAssignmentArgs(MetadataAssignmentArgs $) {
        this.deprecated = $.deprecated;
        this.entity = $.entity;
        this.required = $.required;
    }

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

    public static final class Builder {
        private MetadataAssignmentArgs $;

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

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

        /**
         * @param deprecated Deprecated assignment
         * 
         * @return builder
         * 
         */
        public Builder deprecated(@Nullable Output deprecated) {
            $.deprecated = deprecated;
            return this;
        }

        /**
         * @param deprecated Deprecated assignment
         * 
         * @return builder
         * 
         */
        public Builder deprecated(Boolean deprecated) {
            return deprecated(Output.of(deprecated));
        }

        /**
         * @param entity The entities this metadata schema component gets applied to.
         * 
         * @return builder
         * 
         */
        public Builder entity(@Nullable Output> entity) {
            $.entity = entity;
            return this;
        }

        /**
         * @param entity The entities this metadata schema component gets applied to.
         * 
         * @return builder
         * 
         */
        public Builder entity(Either entity) {
            return entity(Output.of(entity));
        }

        /**
         * @param entity The entities this metadata schema component gets applied to.
         * 
         * @return builder
         * 
         */
        public Builder entity(String entity) {
            return entity(Either.ofLeft(entity));
        }

        /**
         * @param entity The entities this metadata schema component gets applied to.
         * 
         * @return builder
         * 
         */
        public Builder entity(MetadataAssignmentEntity entity) {
            return entity(Either.ofRight(entity));
        }

        /**
         * @param required Required assignment
         * 
         * @return builder
         * 
         */
        public Builder required(@Nullable Output required) {
            $.required = required;
            return this;
        }

        /**
         * @param required Required assignment
         * 
         * @return builder
         * 
         */
        public Builder required(Boolean required) {
            return required(Output.of(required));
        }

        public MetadataAssignmentArgs build() {
            return $;
        }
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy