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

com.pulumi.azurenative.resourcegraph.outputs.GetGraphQueryResult Maven / Gradle / Ivy

There is a newer version: 2.72.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.resourcegraph.outputs;

import com.pulumi.azurenative.resourcegraph.outputs.SystemDataResponse;
import com.pulumi.core.annotations.CustomType;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.String;
import java.util.Map;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;

@CustomType
public final class GetGraphQueryResult {
    /**
     * @return The description of a graph query.
     * 
     */
    private @Nullable String description;
    /**
     * @return This will be used to handle Optimistic Concurrency.
     * 
     */
    private @Nullable String etag;
    /**
     * @return Azure resource Id
     * 
     */
    private String id;
    /**
     * @return The location of the resource
     * 
     */
    private String location;
    /**
     * @return Azure resource name. This is GUID value. The display name should be assigned within properties field.
     * 
     */
    private String name;
    /**
     * @return KQL query that will be graph.
     * 
     */
    private String query;
    /**
     * @return Enum indicating a type of graph query.
     * 
     */
    private String resultKind;
    /**
     * @return Metadata pertaining to creation and last modification of the resource.
     * 
     */
    private SystemDataResponse systemData;
    /**
     * @return Resource tags
     * 
     */
    private @Nullable Map tags;
    /**
     * @return Date and time in UTC of the last modification that was made to this graph query definition.
     * 
     */
    private String timeModified;
    /**
     * @return Azure resource type
     * 
     */
    private String type;

    private GetGraphQueryResult() {}
    /**
     * @return The description of a graph query.
     * 
     */
    public Optional description() {
        return Optional.ofNullable(this.description);
    }
    /**
     * @return This will be used to handle Optimistic Concurrency.
     * 
     */
    public Optional etag() {
        return Optional.ofNullable(this.etag);
    }
    /**
     * @return Azure resource Id
     * 
     */
    public String id() {
        return this.id;
    }
    /**
     * @return The location of the resource
     * 
     */
    public String location() {
        return this.location;
    }
    /**
     * @return Azure resource name. This is GUID value. The display name should be assigned within properties field.
     * 
     */
    public String name() {
        return this.name;
    }
    /**
     * @return KQL query that will be graph.
     * 
     */
    public String query() {
        return this.query;
    }
    /**
     * @return Enum indicating a type of graph query.
     * 
     */
    public String resultKind() {
        return this.resultKind;
    }
    /**
     * @return Metadata pertaining to creation and last modification of the resource.
     * 
     */
    public SystemDataResponse systemData() {
        return this.systemData;
    }
    /**
     * @return Resource tags
     * 
     */
    public Map tags() {
        return this.tags == null ? Map.of() : this.tags;
    }
    /**
     * @return Date and time in UTC of the last modification that was made to this graph query definition.
     * 
     */
    public String timeModified() {
        return this.timeModified;
    }
    /**
     * @return Azure resource type
     * 
     */
    public String type() {
        return this.type;
    }

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

    public static Builder builder(GetGraphQueryResult defaults) {
        return new Builder(defaults);
    }
    @CustomType.Builder
    public static final class Builder {
        private @Nullable String description;
        private @Nullable String etag;
        private String id;
        private String location;
        private String name;
        private String query;
        private String resultKind;
        private SystemDataResponse systemData;
        private @Nullable Map tags;
        private String timeModified;
        private String type;
        public Builder() {}
        public Builder(GetGraphQueryResult defaults) {
    	      Objects.requireNonNull(defaults);
    	      this.description = defaults.description;
    	      this.etag = defaults.etag;
    	      this.id = defaults.id;
    	      this.location = defaults.location;
    	      this.name = defaults.name;
    	      this.query = defaults.query;
    	      this.resultKind = defaults.resultKind;
    	      this.systemData = defaults.systemData;
    	      this.tags = defaults.tags;
    	      this.timeModified = defaults.timeModified;
    	      this.type = defaults.type;
        }

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

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

            this.etag = etag;
            return this;
        }
        @CustomType.Setter
        public Builder id(String id) {
            if (id == null) {
              throw new MissingRequiredPropertyException("GetGraphQueryResult", "id");
            }
            this.id = id;
            return this;
        }
        @CustomType.Setter
        public Builder location(String location) {
            if (location == null) {
              throw new MissingRequiredPropertyException("GetGraphQueryResult", "location");
            }
            this.location = location;
            return this;
        }
        @CustomType.Setter
        public Builder name(String name) {
            if (name == null) {
              throw new MissingRequiredPropertyException("GetGraphQueryResult", "name");
            }
            this.name = name;
            return this;
        }
        @CustomType.Setter
        public Builder query(String query) {
            if (query == null) {
              throw new MissingRequiredPropertyException("GetGraphQueryResult", "query");
            }
            this.query = query;
            return this;
        }
        @CustomType.Setter
        public Builder resultKind(String resultKind) {
            if (resultKind == null) {
              throw new MissingRequiredPropertyException("GetGraphQueryResult", "resultKind");
            }
            this.resultKind = resultKind;
            return this;
        }
        @CustomType.Setter
        public Builder systemData(SystemDataResponse systemData) {
            if (systemData == null) {
              throw new MissingRequiredPropertyException("GetGraphQueryResult", "systemData");
            }
            this.systemData = systemData;
            return this;
        }
        @CustomType.Setter
        public Builder tags(@Nullable Map tags) {

            this.tags = tags;
            return this;
        }
        @CustomType.Setter
        public Builder timeModified(String timeModified) {
            if (timeModified == null) {
              throw new MissingRequiredPropertyException("GetGraphQueryResult", "timeModified");
            }
            this.timeModified = timeModified;
            return this;
        }
        @CustomType.Setter
        public Builder type(String type) {
            if (type == null) {
              throw new MissingRequiredPropertyException("GetGraphQueryResult", "type");
            }
            this.type = type;
            return this;
        }
        public GetGraphQueryResult build() {
            final var _resultValue = new GetGraphQueryResult();
            _resultValue.description = description;
            _resultValue.etag = etag;
            _resultValue.id = id;
            _resultValue.location = location;
            _resultValue.name = name;
            _resultValue.query = query;
            _resultValue.resultKind = resultKind;
            _resultValue.systemData = systemData;
            _resultValue.tags = tags;
            _resultValue.timeModified = timeModified;
            _resultValue.type = type;
            return _resultValue;
        }
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy