
com.pulumi.azurenative.management.outputs.GetEntityResult 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.management.outputs;
import com.pulumi.azurenative.management.outputs.EntityInfoResponse;
import com.pulumi.core.annotations.CustomType;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.Integer;
import java.lang.String;
import java.util.List;
import java.util.Objects;
import javax.annotation.Nullable;
@CustomType
public final class GetEntityResult {
/**
* @return Total count of records that match the filter
*
*/
private Integer count;
/**
* @return The URL to use for getting the next set of results.
*
*/
private String nextLink;
/**
* @return The list of entities.
*
*/
private @Nullable List value;
private GetEntityResult() {}
/**
* @return Total count of records that match the filter
*
*/
public Integer count() {
return this.count;
}
/**
* @return The URL to use for getting the next set of results.
*
*/
public String nextLink() {
return this.nextLink;
}
/**
* @return The list of entities.
*
*/
public List value() {
return this.value == null ? List.of() : this.value;
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(GetEntityResult defaults) {
return new Builder(defaults);
}
@CustomType.Builder
public static final class Builder {
private Integer count;
private String nextLink;
private @Nullable List value;
public Builder() {}
public Builder(GetEntityResult defaults) {
Objects.requireNonNull(defaults);
this.count = defaults.count;
this.nextLink = defaults.nextLink;
this.value = defaults.value;
}
@CustomType.Setter
public Builder count(Integer count) {
if (count == null) {
throw new MissingRequiredPropertyException("GetEntityResult", "count");
}
this.count = count;
return this;
}
@CustomType.Setter
public Builder nextLink(String nextLink) {
if (nextLink == null) {
throw new MissingRequiredPropertyException("GetEntityResult", "nextLink");
}
this.nextLink = nextLink;
return this;
}
@CustomType.Setter
public Builder value(@Nullable List value) {
this.value = value;
return this;
}
public Builder value(EntityInfoResponse... value) {
return value(List.of(value));
}
public GetEntityResult build() {
final var _resultValue = new GetEntityResult();
_resultValue.count = count;
_resultValue.nextLink = nextLink;
_resultValue.value = value;
return _resultValue;
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy