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

com.pulumi.azurenative.apimanagement.ApiIssueArgs 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.apimanagement;

import com.pulumi.azurenative.apimanagement.enums.State;
import com.pulumi.core.Either;
import com.pulumi.core.Output;
import com.pulumi.core.annotations.Import;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.String;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;


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

    public static final ApiIssueArgs Empty = new ApiIssueArgs();

    /**
     * A resource identifier for the API the issue was created for.
     * 
     */
    @Import(name="apiId", required=true)
    private Output apiId;

    /**
     * @return A resource identifier for the API the issue was created for.
     * 
     */
    public Output apiId() {
        return this.apiId;
    }

    /**
     * Date and time when the issue was created.
     * 
     */
    @Import(name="createdDate")
    private @Nullable Output createdDate;

    /**
     * @return Date and time when the issue was created.
     * 
     */
    public Optional> createdDate() {
        return Optional.ofNullable(this.createdDate);
    }

    /**
     * Text describing the issue.
     * 
     */
    @Import(name="description", required=true)
    private Output description;

    /**
     * @return Text describing the issue.
     * 
     */
    public Output description() {
        return this.description;
    }

    /**
     * Issue identifier. Must be unique in the current API Management service instance.
     * 
     */
    @Import(name="issueId")
    private @Nullable Output issueId;

    /**
     * @return Issue identifier. Must be unique in the current API Management service instance.
     * 
     */
    public Optional> issueId() {
        return Optional.ofNullable(this.issueId);
    }

    /**
     * The name of the resource group. The name is case insensitive.
     * 
     */
    @Import(name="resourceGroupName", required=true)
    private Output resourceGroupName;

    /**
     * @return The name of the resource group. The name is case insensitive.
     * 
     */
    public Output resourceGroupName() {
        return this.resourceGroupName;
    }

    /**
     * The name of the API Management service.
     * 
     */
    @Import(name="serviceName", required=true)
    private Output serviceName;

    /**
     * @return The name of the API Management service.
     * 
     */
    public Output serviceName() {
        return this.serviceName;
    }

    /**
     * Status of the issue.
     * 
     */
    @Import(name="state")
    private @Nullable Output> state;

    /**
     * @return Status of the issue.
     * 
     */
    public Optional>> state() {
        return Optional.ofNullable(this.state);
    }

    /**
     * The issue title.
     * 
     */
    @Import(name="title", required=true)
    private Output title;

    /**
     * @return The issue title.
     * 
     */
    public Output title() {
        return this.title;
    }

    /**
     * A resource identifier for the user created the issue.
     * 
     */
    @Import(name="userId", required=true)
    private Output userId;

    /**
     * @return A resource identifier for the user created the issue.
     * 
     */
    public Output userId() {
        return this.userId;
    }

    private ApiIssueArgs() {}

    private ApiIssueArgs(ApiIssueArgs $) {
        this.apiId = $.apiId;
        this.createdDate = $.createdDate;
        this.description = $.description;
        this.issueId = $.issueId;
        this.resourceGroupName = $.resourceGroupName;
        this.serviceName = $.serviceName;
        this.state = $.state;
        this.title = $.title;
        this.userId = $.userId;
    }

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

    public static final class Builder {
        private ApiIssueArgs $;

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

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

        /**
         * @param apiId A resource identifier for the API the issue was created for.
         * 
         * @return builder
         * 
         */
        public Builder apiId(Output apiId) {
            $.apiId = apiId;
            return this;
        }

        /**
         * @param apiId A resource identifier for the API the issue was created for.
         * 
         * @return builder
         * 
         */
        public Builder apiId(String apiId) {
            return apiId(Output.of(apiId));
        }

        /**
         * @param createdDate Date and time when the issue was created.
         * 
         * @return builder
         * 
         */
        public Builder createdDate(@Nullable Output createdDate) {
            $.createdDate = createdDate;
            return this;
        }

        /**
         * @param createdDate Date and time when the issue was created.
         * 
         * @return builder
         * 
         */
        public Builder createdDate(String createdDate) {
            return createdDate(Output.of(createdDate));
        }

        /**
         * @param description Text describing the issue.
         * 
         * @return builder
         * 
         */
        public Builder description(Output description) {
            $.description = description;
            return this;
        }

        /**
         * @param description Text describing the issue.
         * 
         * @return builder
         * 
         */
        public Builder description(String description) {
            return description(Output.of(description));
        }

        /**
         * @param issueId Issue identifier. Must be unique in the current API Management service instance.
         * 
         * @return builder
         * 
         */
        public Builder issueId(@Nullable Output issueId) {
            $.issueId = issueId;
            return this;
        }

        /**
         * @param issueId Issue identifier. Must be unique in the current API Management service instance.
         * 
         * @return builder
         * 
         */
        public Builder issueId(String issueId) {
            return issueId(Output.of(issueId));
        }

        /**
         * @param resourceGroupName The name of the resource group. The name is case insensitive.
         * 
         * @return builder
         * 
         */
        public Builder resourceGroupName(Output resourceGroupName) {
            $.resourceGroupName = resourceGroupName;
            return this;
        }

        /**
         * @param resourceGroupName The name of the resource group. The name is case insensitive.
         * 
         * @return builder
         * 
         */
        public Builder resourceGroupName(String resourceGroupName) {
            return resourceGroupName(Output.of(resourceGroupName));
        }

        /**
         * @param serviceName The name of the API Management service.
         * 
         * @return builder
         * 
         */
        public Builder serviceName(Output serviceName) {
            $.serviceName = serviceName;
            return this;
        }

        /**
         * @param serviceName The name of the API Management service.
         * 
         * @return builder
         * 
         */
        public Builder serviceName(String serviceName) {
            return serviceName(Output.of(serviceName));
        }

        /**
         * @param state Status of the issue.
         * 
         * @return builder
         * 
         */
        public Builder state(@Nullable Output> state) {
            $.state = state;
            return this;
        }

        /**
         * @param state Status of the issue.
         * 
         * @return builder
         * 
         */
        public Builder state(Either state) {
            return state(Output.of(state));
        }

        /**
         * @param state Status of the issue.
         * 
         * @return builder
         * 
         */
        public Builder state(String state) {
            return state(Either.ofLeft(state));
        }

        /**
         * @param state Status of the issue.
         * 
         * @return builder
         * 
         */
        public Builder state(State state) {
            return state(Either.ofRight(state));
        }

        /**
         * @param title The issue title.
         * 
         * @return builder
         * 
         */
        public Builder title(Output title) {
            $.title = title;
            return this;
        }

        /**
         * @param title The issue title.
         * 
         * @return builder
         * 
         */
        public Builder title(String title) {
            return title(Output.of(title));
        }

        /**
         * @param userId A resource identifier for the user created the issue.
         * 
         * @return builder
         * 
         */
        public Builder userId(Output userId) {
            $.userId = userId;
            return this;
        }

        /**
         * @param userId A resource identifier for the user created the issue.
         * 
         * @return builder
         * 
         */
        public Builder userId(String userId) {
            return userId(Output.of(userId));
        }

        public ApiIssueArgs build() {
            if ($.apiId == null) {
                throw new MissingRequiredPropertyException("ApiIssueArgs", "apiId");
            }
            if ($.description == null) {
                throw new MissingRequiredPropertyException("ApiIssueArgs", "description");
            }
            if ($.resourceGroupName == null) {
                throw new MissingRequiredPropertyException("ApiIssueArgs", "resourceGroupName");
            }
            if ($.serviceName == null) {
                throw new MissingRequiredPropertyException("ApiIssueArgs", "serviceName");
            }
            if ($.title == null) {
                throw new MissingRequiredPropertyException("ApiIssueArgs", "title");
            }
            if ($.userId == null) {
                throw new MissingRequiredPropertyException("ApiIssueArgs", "userId");
            }
            return $;
        }
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy