
com.pulumi.snowflake.outputs.GetViewsResult 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.snowflake.outputs;
import com.pulumi.core.annotations.CustomType;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import com.pulumi.snowflake.outputs.GetViewsIn;
import com.pulumi.snowflake.outputs.GetViewsLimit;
import com.pulumi.snowflake.outputs.GetViewsView;
import java.lang.Boolean;
import java.lang.String;
import java.util.List;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;
@CustomType
public final class GetViewsResult {
/**
* @return The provider-assigned unique ID for this managed resource.
*
*/
private String id;
/**
* @return IN clause to filter the list of views
*
*/
private @Nullable GetViewsIn in;
/**
* @return Filters the output with **case-insensitive** pattern, with support for SQL wildcard characters (`%` and `_`).
*
*/
private @Nullable String like;
/**
* @return Limits the number of rows returned. If the `limit.from` is set, then the limit wll start from the first element matched by the expression. The expression is only used to match with the first element, later on the elements are not matched by the prefix, but you can enforce a certain pattern with `starts_with` or `like`.
*
*/
private @Nullable GetViewsLimit limit;
/**
* @return Filters the output with **case-sensitive** characters indicating the beginning of the object name.
*
*/
private @Nullable String startsWith;
/**
* @return Holds the aggregated output of all views details queries.
*
*/
private List views;
/**
* @return Runs DESC VIEW for each view returned by SHOW VIEWS. The output of describe is saved to the description field. By default this value is set to true.
*
*/
private @Nullable Boolean withDescribe;
private GetViewsResult() {}
/**
* @return The provider-assigned unique ID for this managed resource.
*
*/
public String id() {
return this.id;
}
/**
* @return IN clause to filter the list of views
*
*/
public Optional in() {
return Optional.ofNullable(this.in);
}
/**
* @return Filters the output with **case-insensitive** pattern, with support for SQL wildcard characters (`%` and `_`).
*
*/
public Optional like() {
return Optional.ofNullable(this.like);
}
/**
* @return Limits the number of rows returned. If the `limit.from` is set, then the limit wll start from the first element matched by the expression. The expression is only used to match with the first element, later on the elements are not matched by the prefix, but you can enforce a certain pattern with `starts_with` or `like`.
*
*/
public Optional limit() {
return Optional.ofNullable(this.limit);
}
/**
* @return Filters the output with **case-sensitive** characters indicating the beginning of the object name.
*
*/
public Optional startsWith() {
return Optional.ofNullable(this.startsWith);
}
/**
* @return Holds the aggregated output of all views details queries.
*
*/
public List views() {
return this.views;
}
/**
* @return Runs DESC VIEW for each view returned by SHOW VIEWS. The output of describe is saved to the description field. By default this value is set to true.
*
*/
public Optional withDescribe() {
return Optional.ofNullable(this.withDescribe);
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(GetViewsResult defaults) {
return new Builder(defaults);
}
@CustomType.Builder
public static final class Builder {
private String id;
private @Nullable GetViewsIn in;
private @Nullable String like;
private @Nullable GetViewsLimit limit;
private @Nullable String startsWith;
private List views;
private @Nullable Boolean withDescribe;
public Builder() {}
public Builder(GetViewsResult defaults) {
Objects.requireNonNull(defaults);
this.id = defaults.id;
this.in = defaults.in;
this.like = defaults.like;
this.limit = defaults.limit;
this.startsWith = defaults.startsWith;
this.views = defaults.views;
this.withDescribe = defaults.withDescribe;
}
@CustomType.Setter
public Builder id(String id) {
if (id == null) {
throw new MissingRequiredPropertyException("GetViewsResult", "id");
}
this.id = id;
return this;
}
@CustomType.Setter
public Builder in(@Nullable GetViewsIn in) {
this.in = in;
return this;
}
@CustomType.Setter
public Builder like(@Nullable String like) {
this.like = like;
return this;
}
@CustomType.Setter
public Builder limit(@Nullable GetViewsLimit limit) {
this.limit = limit;
return this;
}
@CustomType.Setter
public Builder startsWith(@Nullable String startsWith) {
this.startsWith = startsWith;
return this;
}
@CustomType.Setter
public Builder views(List views) {
if (views == null) {
throw new MissingRequiredPropertyException("GetViewsResult", "views");
}
this.views = views;
return this;
}
public Builder views(GetViewsView... views) {
return views(List.of(views));
}
@CustomType.Setter
public Builder withDescribe(@Nullable Boolean withDescribe) {
this.withDescribe = withDescribe;
return this;
}
public GetViewsResult build() {
final var _resultValue = new GetViewsResult();
_resultValue.id = id;
_resultValue.in = in;
_resultValue.like = like;
_resultValue.limit = limit;
_resultValue.startsWith = startsWith;
_resultValue.views = views;
_resultValue.withDescribe = withDescribe;
return _resultValue;
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy