com.pulumi.azurenative.authorization.outputs.ResourceSelectorResponse 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.authorization.outputs;
import com.pulumi.azurenative.authorization.outputs.SelectorResponse;
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 ResourceSelectorResponse {
/**
* @return The name of the resource selector.
*
*/
private @Nullable String name;
/**
* @return The list of the selector expressions.
*
*/
private @Nullable List selectors;
private ResourceSelectorResponse() {}
/**
* @return The name of the resource selector.
*
*/
public Optional name() {
return Optional.ofNullable(this.name);
}
/**
* @return The list of the selector expressions.
*
*/
public List selectors() {
return this.selectors == null ? List.of() : this.selectors;
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(ResourceSelectorResponse defaults) {
return new Builder(defaults);
}
@CustomType.Builder
public static final class Builder {
private @Nullable String name;
private @Nullable List selectors;
public Builder() {}
public Builder(ResourceSelectorResponse defaults) {
Objects.requireNonNull(defaults);
this.name = defaults.name;
this.selectors = defaults.selectors;
}
@CustomType.Setter
public Builder name(@Nullable String name) {
this.name = name;
return this;
}
@CustomType.Setter
public Builder selectors(@Nullable List selectors) {
this.selectors = selectors;
return this;
}
public Builder selectors(SelectorResponse... selectors) {
return selectors(List.of(selectors));
}
public ResourceSelectorResponse build() {
final var _resultValue = new ResourceSelectorResponse();
_resultValue.name = name;
_resultValue.selectors = selectors;
return _resultValue;
}
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy