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

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

import com.pulumi.core.annotations.CustomType;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.String;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;

@CustomType
public final class GetApiIssueResult {
    /**
     * @return A resource identifier for the API the issue was created for.
     * 
     */
    private @Nullable String apiId;
    /**
     * @return Date and time when the issue was created.
     * 
     */
    private @Nullable String createdDate;
    /**
     * @return Text describing the issue.
     * 
     */
    private String description;
    /**
     * @return Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}
     * 
     */
    private String id;
    /**
     * @return The name of the resource
     * 
     */
    private String name;
    /**
     * @return Status of the issue.
     * 
     */
    private @Nullable String state;
    /**
     * @return The issue title.
     * 
     */
    private String title;
    /**
     * @return The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
     * 
     */
    private String type;
    /**
     * @return A resource identifier for the user created the issue.
     * 
     */
    private String userId;

    private GetApiIssueResult() {}
    /**
     * @return A resource identifier for the API the issue was created for.
     * 
     */
    public Optional apiId() {
        return Optional.ofNullable(this.apiId);
    }
    /**
     * @return Date and time when the issue was created.
     * 
     */
    public Optional createdDate() {
        return Optional.ofNullable(this.createdDate);
    }
    /**
     * @return Text describing the issue.
     * 
     */
    public String description() {
        return this.description;
    }
    /**
     * @return Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}
     * 
     */
    public String id() {
        return this.id;
    }
    /**
     * @return The name of the resource
     * 
     */
    public String name() {
        return this.name;
    }
    /**
     * @return Status of the issue.
     * 
     */
    public Optional state() {
        return Optional.ofNullable(this.state);
    }
    /**
     * @return The issue title.
     * 
     */
    public String title() {
        return this.title;
    }
    /**
     * @return The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
     * 
     */
    public String type() {
        return this.type;
    }
    /**
     * @return A resource identifier for the user created the issue.
     * 
     */
    public String userId() {
        return this.userId;
    }

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

    public static Builder builder(GetApiIssueResult defaults) {
        return new Builder(defaults);
    }
    @CustomType.Builder
    public static final class Builder {
        private @Nullable String apiId;
        private @Nullable String createdDate;
        private String description;
        private String id;
        private String name;
        private @Nullable String state;
        private String title;
        private String type;
        private String userId;
        public Builder() {}
        public Builder(GetApiIssueResult defaults) {
    	      Objects.requireNonNull(defaults);
    	      this.apiId = defaults.apiId;
    	      this.createdDate = defaults.createdDate;
    	      this.description = defaults.description;
    	      this.id = defaults.id;
    	      this.name = defaults.name;
    	      this.state = defaults.state;
    	      this.title = defaults.title;
    	      this.type = defaults.type;
    	      this.userId = defaults.userId;
        }

        @CustomType.Setter
        public Builder apiId(@Nullable String apiId) {

            this.apiId = apiId;
            return this;
        }
        @CustomType.Setter
        public Builder createdDate(@Nullable String createdDate) {

            this.createdDate = createdDate;
            return this;
        }
        @CustomType.Setter
        public Builder description(String description) {
            if (description == null) {
              throw new MissingRequiredPropertyException("GetApiIssueResult", "description");
            }
            this.description = description;
            return this;
        }
        @CustomType.Setter
        public Builder id(String id) {
            if (id == null) {
              throw new MissingRequiredPropertyException("GetApiIssueResult", "id");
            }
            this.id = id;
            return this;
        }
        @CustomType.Setter
        public Builder name(String name) {
            if (name == null) {
              throw new MissingRequiredPropertyException("GetApiIssueResult", "name");
            }
            this.name = name;
            return this;
        }
        @CustomType.Setter
        public Builder state(@Nullable String state) {

            this.state = state;
            return this;
        }
        @CustomType.Setter
        public Builder title(String title) {
            if (title == null) {
              throw new MissingRequiredPropertyException("GetApiIssueResult", "title");
            }
            this.title = title;
            return this;
        }
        @CustomType.Setter
        public Builder type(String type) {
            if (type == null) {
              throw new MissingRequiredPropertyException("GetApiIssueResult", "type");
            }
            this.type = type;
            return this;
        }
        @CustomType.Setter
        public Builder userId(String userId) {
            if (userId == null) {
              throw new MissingRequiredPropertyException("GetApiIssueResult", "userId");
            }
            this.userId = userId;
            return this;
        }
        public GetApiIssueResult build() {
            final var _resultValue = new GetApiIssueResult();
            _resultValue.apiId = apiId;
            _resultValue.createdDate = createdDate;
            _resultValue.description = description;
            _resultValue.id = id;
            _resultValue.name = name;
            _resultValue.state = state;
            _resultValue.title = title;
            _resultValue.type = type;
            _resultValue.userId = userId;
            return _resultValue;
        }
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy