
com.pulumi.azurenative.deviceregistry.outputs.UsernamePasswordCredentialsResponse 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.deviceregistry.outputs;
import com.pulumi.core.annotations.CustomType;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.String;
import java.util.Objects;
@CustomType
public final class UsernamePasswordCredentialsResponse {
/**
* @return A reference to secret containing the password.
*
*/
private String passwordReference;
/**
* @return A reference to secret containing the username.
*
*/
private String usernameReference;
private UsernamePasswordCredentialsResponse() {}
/**
* @return A reference to secret containing the password.
*
*/
public String passwordReference() {
return this.passwordReference;
}
/**
* @return A reference to secret containing the username.
*
*/
public String usernameReference() {
return this.usernameReference;
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(UsernamePasswordCredentialsResponse defaults) {
return new Builder(defaults);
}
@CustomType.Builder
public static final class Builder {
private String passwordReference;
private String usernameReference;
public Builder() {}
public Builder(UsernamePasswordCredentialsResponse defaults) {
Objects.requireNonNull(defaults);
this.passwordReference = defaults.passwordReference;
this.usernameReference = defaults.usernameReference;
}
@CustomType.Setter
public Builder passwordReference(String passwordReference) {
if (passwordReference == null) {
throw new MissingRequiredPropertyException("UsernamePasswordCredentialsResponse", "passwordReference");
}
this.passwordReference = passwordReference;
return this;
}
@CustomType.Setter
public Builder usernameReference(String usernameReference) {
if (usernameReference == null) {
throw new MissingRequiredPropertyException("UsernamePasswordCredentialsResponse", "usernameReference");
}
this.usernameReference = usernameReference;
return this;
}
public UsernamePasswordCredentialsResponse build() {
final var _resultValue = new UsernamePasswordCredentialsResponse();
_resultValue.passwordReference = passwordReference;
_resultValue.usernameReference = usernameReference;
return _resultValue;
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy