
com.pulumi.azurenative.documentdb.outputs.IncludedPathResponse 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.documentdb.outputs;
import com.pulumi.azurenative.documentdb.outputs.IndexesResponse;
import com.pulumi.core.annotations.CustomType;
import java.lang.String;
import java.util.List;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;
@CustomType
public final class IncludedPathResponse {
/**
* @return List of indexes for this path
*
*/
private @Nullable List indexes;
/**
* @return The path for which the indexing behavior applies to. Index paths typically start with root and end with wildcard (/path/*)
*
*/
private @Nullable String path;
private IncludedPathResponse() {}
/**
* @return List of indexes for this path
*
*/
public List indexes() {
return this.indexes == null ? List.of() : this.indexes;
}
/**
* @return The path for which the indexing behavior applies to. Index paths typically start with root and end with wildcard (/path/*)
*
*/
public Optional path() {
return Optional.ofNullable(this.path);
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(IncludedPathResponse defaults) {
return new Builder(defaults);
}
@CustomType.Builder
public static final class Builder {
private @Nullable List indexes;
private @Nullable String path;
public Builder() {}
public Builder(IncludedPathResponse defaults) {
Objects.requireNonNull(defaults);
this.indexes = defaults.indexes;
this.path = defaults.path;
}
@CustomType.Setter
public Builder indexes(@Nullable List indexes) {
this.indexes = indexes;
return this;
}
public Builder indexes(IndexesResponse... indexes) {
return indexes(List.of(indexes));
}
@CustomType.Setter
public Builder path(@Nullable String path) {
this.path = path;
return this;
}
public IncludedPathResponse build() {
final var _resultValue = new IncludedPathResponse();
_resultValue.indexes = indexes;
_resultValue.path = path;
return _resultValue;
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy