
com.pulumi.azurenative.chaos.outputs.QuerySelectorResponse Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of azure-native Show documentation
Show all versions of azure-native Show documentation
A native Pulumi package for creating and managing Azure resources.
// *** 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.chaos.outputs;
import com.pulumi.azurenative.chaos.outputs.SimpleFilterResponse;
import com.pulumi.core.annotations.CustomType;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.String;
import java.util.List;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;
@CustomType
public final class QuerySelectorResponse {
/**
* @return Model that represents available filter types that can be applied to a targets list.
*
*/
private @Nullable SimpleFilterResponse filter;
/**
* @return String of the selector ID.
*
*/
private String id;
/**
* @return Azure Resource Graph (ARG) Query Language query for target resources.
*
*/
private String queryString;
/**
* @return Subscription id list to scope resource query.
*
*/
private List subscriptionIds;
/**
* @return Enum of the selector type.
* Expected value is 'Query'.
*
*/
private String type;
private QuerySelectorResponse() {}
/**
* @return Model that represents available filter types that can be applied to a targets list.
*
*/
public Optional filter() {
return Optional.ofNullable(this.filter);
}
/**
* @return String of the selector ID.
*
*/
public String id() {
return this.id;
}
/**
* @return Azure Resource Graph (ARG) Query Language query for target resources.
*
*/
public String queryString() {
return this.queryString;
}
/**
* @return Subscription id list to scope resource query.
*
*/
public List subscriptionIds() {
return this.subscriptionIds;
}
/**
* @return Enum of the selector type.
* Expected value is 'Query'.
*
*/
public String type() {
return this.type;
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(QuerySelectorResponse defaults) {
return new Builder(defaults);
}
@CustomType.Builder
public static final class Builder {
private @Nullable SimpleFilterResponse filter;
private String id;
private String queryString;
private List subscriptionIds;
private String type;
public Builder() {}
public Builder(QuerySelectorResponse defaults) {
Objects.requireNonNull(defaults);
this.filter = defaults.filter;
this.id = defaults.id;
this.queryString = defaults.queryString;
this.subscriptionIds = defaults.subscriptionIds;
this.type = defaults.type;
}
@CustomType.Setter
public Builder filter(@Nullable SimpleFilterResponse filter) {
this.filter = filter;
return this;
}
@CustomType.Setter
public Builder id(String id) {
if (id == null) {
throw new MissingRequiredPropertyException("QuerySelectorResponse", "id");
}
this.id = id;
return this;
}
@CustomType.Setter
public Builder queryString(String queryString) {
if (queryString == null) {
throw new MissingRequiredPropertyException("QuerySelectorResponse", "queryString");
}
this.queryString = queryString;
return this;
}
@CustomType.Setter
public Builder subscriptionIds(List subscriptionIds) {
if (subscriptionIds == null) {
throw new MissingRequiredPropertyException("QuerySelectorResponse", "subscriptionIds");
}
this.subscriptionIds = subscriptionIds;
return this;
}
public Builder subscriptionIds(String... subscriptionIds) {
return subscriptionIds(List.of(subscriptionIds));
}
@CustomType.Setter
public Builder type(String type) {
if (type == null) {
throw new MissingRequiredPropertyException("QuerySelectorResponse", "type");
}
this.type = type;
return this;
}
public QuerySelectorResponse build() {
final var _resultValue = new QuerySelectorResponse();
_resultValue.filter = filter;
_resultValue.id = id;
_resultValue.queryString = queryString;
_resultValue.subscriptionIds = subscriptionIds;
_resultValue.type = type;
return _resultValue;
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy