com.pulumi.rabbitmq.outputs.GetUserResult Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of rabbitmq Show documentation
Show all versions of rabbitmq Show documentation
A Pulumi package for creating and managing RabbitMQ 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.rabbitmq.outputs;
import com.pulumi.core.annotations.CustomType;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.String;
import java.util.List;
import java.util.Objects;
@CustomType
public final class GetUserResult {
private String id;
private String name;
private List tags;
private GetUserResult() {}
public String id() {
return this.id;
}
public String name() {
return this.name;
}
public List tags() {
return this.tags;
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(GetUserResult defaults) {
return new Builder(defaults);
}
@CustomType.Builder
public static final class Builder {
private String id;
private String name;
private List tags;
public Builder() {}
public Builder(GetUserResult defaults) {
Objects.requireNonNull(defaults);
this.id = defaults.id;
this.name = defaults.name;
this.tags = defaults.tags;
}
@CustomType.Setter
public Builder id(String id) {
if (id == null) {
throw new MissingRequiredPropertyException("GetUserResult", "id");
}
this.id = id;
return this;
}
@CustomType.Setter
public Builder name(String name) {
if (name == null) {
throw new MissingRequiredPropertyException("GetUserResult", "name");
}
this.name = name;
return this;
}
@CustomType.Setter
public Builder tags(List tags) {
if (tags == null) {
throw new MissingRequiredPropertyException("GetUserResult", "tags");
}
this.tags = tags;
return this;
}
public Builder tags(String... tags) {
return tags(List.of(tags));
}
public GetUserResult build() {
final var _resultValue = new GetUserResult();
_resultValue.id = id;
_resultValue.name = name;
_resultValue.tags = tags;
return _resultValue;
}
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy