
com.pulumi.azurenative.machinelearningservices.outputs.RegistryListCredentialsResultResponse Maven / Gradle / Ivy
// *** 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.machinelearningservices.outputs;
import com.pulumi.azurenative.machinelearningservices.outputs.PasswordResponse;
import com.pulumi.core.annotations.CustomType;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.String;
import java.util.List;
import java.util.Objects;
import javax.annotation.Nullable;
@CustomType
public final class RegistryListCredentialsResultResponse {
private String location;
private @Nullable List passwords;
private String username;
private RegistryListCredentialsResultResponse() {}
public String location() {
return this.location;
}
public List passwords() {
return this.passwords == null ? List.of() : this.passwords;
}
public String username() {
return this.username;
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(RegistryListCredentialsResultResponse defaults) {
return new Builder(defaults);
}
@CustomType.Builder
public static final class Builder {
private String location;
private @Nullable List passwords;
private String username;
public Builder() {}
public Builder(RegistryListCredentialsResultResponse defaults) {
Objects.requireNonNull(defaults);
this.location = defaults.location;
this.passwords = defaults.passwords;
this.username = defaults.username;
}
@CustomType.Setter
public Builder location(String location) {
if (location == null) {
throw new MissingRequiredPropertyException("RegistryListCredentialsResultResponse", "location");
}
this.location = location;
return this;
}
@CustomType.Setter
public Builder passwords(@Nullable List passwords) {
this.passwords = passwords;
return this;
}
public Builder passwords(PasswordResponse... passwords) {
return passwords(List.of(passwords));
}
@CustomType.Setter
public Builder username(String username) {
if (username == null) {
throw new MissingRequiredPropertyException("RegistryListCredentialsResultResponse", "username");
}
this.username = username;
return this;
}
public RegistryListCredentialsResultResponse build() {
final var _resultValue = new RegistryListCredentialsResultResponse();
_resultValue.location = location;
_resultValue.passwords = passwords;
_resultValue.username = username;
return _resultValue;
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy