com.ovhcloud.pulumi.ovh.CloudProjectDatabase.outputs.GetUsersResult Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of pulumi-ovh Show documentation
Show all versions of pulumi-ovh Show documentation
A Pulumi package for creating and managing OVH 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.ovhcloud.pulumi.ovh.CloudProjectDatabase.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 GetUsersResult {
/**
* @return See Argument Reference above.
*
*/
private String clusterId;
/**
* @return See Argument Reference above.
*
*/
private String engine;
/**
* @return The provider-assigned unique ID for this managed resource.
*
*/
private String id;
/**
* @return See Argument Reference above.
*
*/
private String serviceName;
/**
* @return The list of users ids of the database cluster associated with the project.
*
*/
private List userIds;
private GetUsersResult() {}
/**
* @return See Argument Reference above.
*
*/
public String clusterId() {
return this.clusterId;
}
/**
* @return See Argument Reference above.
*
*/
public String engine() {
return this.engine;
}
/**
* @return The provider-assigned unique ID for this managed resource.
*
*/
public String id() {
return this.id;
}
/**
* @return See Argument Reference above.
*
*/
public String serviceName() {
return this.serviceName;
}
/**
* @return The list of users ids of the database cluster associated with the project.
*
*/
public List userIds() {
return this.userIds;
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(GetUsersResult defaults) {
return new Builder(defaults);
}
@CustomType.Builder
public static final class Builder {
private String clusterId;
private String engine;
private String id;
private String serviceName;
private List userIds;
public Builder() {}
public Builder(GetUsersResult defaults) {
Objects.requireNonNull(defaults);
this.clusterId = defaults.clusterId;
this.engine = defaults.engine;
this.id = defaults.id;
this.serviceName = defaults.serviceName;
this.userIds = defaults.userIds;
}
@CustomType.Setter
public Builder clusterId(String clusterId) {
if (clusterId == null) {
throw new MissingRequiredPropertyException("GetUsersResult", "clusterId");
}
this.clusterId = clusterId;
return this;
}
@CustomType.Setter
public Builder engine(String engine) {
if (engine == null) {
throw new MissingRequiredPropertyException("GetUsersResult", "engine");
}
this.engine = engine;
return this;
}
@CustomType.Setter
public Builder id(String id) {
if (id == null) {
throw new MissingRequiredPropertyException("GetUsersResult", "id");
}
this.id = id;
return this;
}
@CustomType.Setter
public Builder serviceName(String serviceName) {
if (serviceName == null) {
throw new MissingRequiredPropertyException("GetUsersResult", "serviceName");
}
this.serviceName = serviceName;
return this;
}
@CustomType.Setter
public Builder userIds(List userIds) {
if (userIds == null) {
throw new MissingRequiredPropertyException("GetUsersResult", "userIds");
}
this.userIds = userIds;
return this;
}
public Builder userIds(String... userIds) {
return userIds(List.of(userIds));
}
public GetUsersResult build() {
final var _resultValue = new GetUsersResult();
_resultValue.clusterId = clusterId;
_resultValue.engine = engine;
_resultValue.id = id;
_resultValue.serviceName = serviceName;
_resultValue.userIds = userIds;
return _resultValue;
}
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy