
com.pulumi.azurenative.operationalinsights.outputs.GetQueryResult Maven / Gradle / Ivy
// *** 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.operationalinsights.outputs;
import com.pulumi.azurenative.operationalinsights.outputs.LogAnalyticsQueryPackQueryPropertiesResponseRelated;
import com.pulumi.azurenative.operationalinsights.outputs.SystemDataResponse;
import com.pulumi.core.annotations.CustomType;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.Object;
import java.lang.String;
import java.util.List;
import java.util.Map;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;
@CustomType
public final class GetQueryResult {
/**
* @return Object Id of user creating the query.
*
*/
private String author;
/**
* @return Body of the query.
*
*/
private String body;
/**
* @return Description of the query.
*
*/
private @Nullable String description;
/**
* @return Unique display name for your query within the Query Pack.
*
*/
private String displayName;
/**
* @return Azure resource Id
*
*/
private String id;
/**
* @return Azure resource name
*
*/
private String name;
/**
* @return Additional properties that can be set for the query.
*
*/
private Object properties;
/**
* @return The related metadata items for the function.
*
*/
private @Nullable LogAnalyticsQueryPackQueryPropertiesResponseRelated related;
/**
* @return Read only system data
*
*/
private SystemDataResponse systemData;
/**
* @return Tags associated with the query.
*
*/
private @Nullable Map> tags;
/**
* @return Creation Date for the Log Analytics Query, in ISO 8601 format.
*
*/
private String timeCreated;
/**
* @return Last modified date of the Log Analytics Query, in ISO 8601 format.
*
*/
private String timeModified;
/**
* @return Azure resource type
*
*/
private String type;
private GetQueryResult() {}
/**
* @return Object Id of user creating the query.
*
*/
public String author() {
return this.author;
}
/**
* @return Body of the query.
*
*/
public String body() {
return this.body;
}
/**
* @return Description of the query.
*
*/
public Optional description() {
return Optional.ofNullable(this.description);
}
/**
* @return Unique display name for your query within the Query Pack.
*
*/
public String displayName() {
return this.displayName;
}
/**
* @return Azure resource Id
*
*/
public String id() {
return this.id;
}
/**
* @return Azure resource name
*
*/
public String name() {
return this.name;
}
/**
* @return Additional properties that can be set for the query.
*
*/
public Object properties() {
return this.properties;
}
/**
* @return The related metadata items for the function.
*
*/
public Optional related() {
return Optional.ofNullable(this.related);
}
/**
* @return Read only system data
*
*/
public SystemDataResponse systemData() {
return this.systemData;
}
/**
* @return Tags associated with the query.
*
*/
public Map> tags() {
return this.tags == null ? Map.of() : this.tags;
}
/**
* @return Creation Date for the Log Analytics Query, in ISO 8601 format.
*
*/
public String timeCreated() {
return this.timeCreated;
}
/**
* @return Last modified date of the Log Analytics Query, in ISO 8601 format.
*
*/
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(GetQueryResult defaults) {
return new Builder(defaults);
}
@CustomType.Builder
public static final class Builder {
private String author;
private String body;
private @Nullable String description;
private String displayName;
private String id;
private String name;
private Object properties;
private @Nullable LogAnalyticsQueryPackQueryPropertiesResponseRelated related;
private SystemDataResponse systemData;
private @Nullable Map> tags;
private String timeCreated;
private String timeModified;
private String type;
public Builder() {}
public Builder(GetQueryResult defaults) {
Objects.requireNonNull(defaults);
this.author = defaults.author;
this.body = defaults.body;
this.description = defaults.description;
this.displayName = defaults.displayName;
this.id = defaults.id;
this.name = defaults.name;
this.properties = defaults.properties;
this.related = defaults.related;
this.systemData = defaults.systemData;
this.tags = defaults.tags;
this.timeCreated = defaults.timeCreated;
this.timeModified = defaults.timeModified;
this.type = defaults.type;
}
@CustomType.Setter
public Builder author(String author) {
if (author == null) {
throw new MissingRequiredPropertyException("GetQueryResult", "author");
}
this.author = author;
return this;
}
@CustomType.Setter
public Builder body(String body) {
if (body == null) {
throw new MissingRequiredPropertyException("GetQueryResult", "body");
}
this.body = body;
return this;
}
@CustomType.Setter
public Builder description(@Nullable String description) {
this.description = description;
return this;
}
@CustomType.Setter
public Builder displayName(String displayName) {
if (displayName == null) {
throw new MissingRequiredPropertyException("GetQueryResult", "displayName");
}
this.displayName = displayName;
return this;
}
@CustomType.Setter
public Builder id(String id) {
if (id == null) {
throw new MissingRequiredPropertyException("GetQueryResult", "id");
}
this.id = id;
return this;
}
@CustomType.Setter
public Builder name(String name) {
if (name == null) {
throw new MissingRequiredPropertyException("GetQueryResult", "name");
}
this.name = name;
return this;
}
@CustomType.Setter
public Builder properties(Object properties) {
if (properties == null) {
throw new MissingRequiredPropertyException("GetQueryResult", "properties");
}
this.properties = properties;
return this;
}
@CustomType.Setter
public Builder related(@Nullable LogAnalyticsQueryPackQueryPropertiesResponseRelated related) {
this.related = related;
return this;
}
@CustomType.Setter
public Builder systemData(SystemDataResponse systemData) {
if (systemData == null) {
throw new MissingRequiredPropertyException("GetQueryResult", "systemData");
}
this.systemData = systemData;
return this;
}
@CustomType.Setter
public Builder tags(@Nullable Map> tags) {
this.tags = tags;
return this;
}
@CustomType.Setter
public Builder timeCreated(String timeCreated) {
if (timeCreated == null) {
throw new MissingRequiredPropertyException("GetQueryResult", "timeCreated");
}
this.timeCreated = timeCreated;
return this;
}
@CustomType.Setter
public Builder timeModified(String timeModified) {
if (timeModified == null) {
throw new MissingRequiredPropertyException("GetQueryResult", "timeModified");
}
this.timeModified = timeModified;
return this;
}
@CustomType.Setter
public Builder type(String type) {
if (type == null) {
throw new MissingRequiredPropertyException("GetQueryResult", "type");
}
this.type = type;
return this;
}
public GetQueryResult build() {
final var _resultValue = new GetQueryResult();
_resultValue.author = author;
_resultValue.body = body;
_resultValue.description = description;
_resultValue.displayName = displayName;
_resultValue.id = id;
_resultValue.name = name;
_resultValue.properties = properties;
_resultValue.related = related;
_resultValue.systemData = systemData;
_resultValue.tags = tags;
_resultValue.timeCreated = timeCreated;
_resultValue.timeModified = timeModified;
_resultValue.type = type;
return _resultValue;
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy