com.pulumi.aws.quicksight.inputs.DataSourceCredentialsCredentialPairArgs Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of aws Show documentation
Show all versions of aws Show documentation
A Pulumi package for creating and managing Amazon Web Services (AWS) cloud resources.
The newest version!
// *** 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.aws.quicksight.inputs;
import com.pulumi.core.Output;
import com.pulumi.core.annotations.Import;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.String;
import java.util.Objects;
public final class DataSourceCredentialsCredentialPairArgs extends com.pulumi.resources.ResourceArgs {
public static final DataSourceCredentialsCredentialPairArgs Empty = new DataSourceCredentialsCredentialPairArgs();
/**
* Password, maximum length of 1024 characters.
*
*/
@Import(name="password", required=true)
private Output password;
/**
* @return Password, maximum length of 1024 characters.
*
*/
public Output password() {
return this.password;
}
/**
* User name, maximum length of 64 characters.
*
*/
@Import(name="username", required=true)
private Output username;
/**
* @return User name, maximum length of 64 characters.
*
*/
public Output username() {
return this.username;
}
private DataSourceCredentialsCredentialPairArgs() {}
private DataSourceCredentialsCredentialPairArgs(DataSourceCredentialsCredentialPairArgs $) {
this.password = $.password;
this.username = $.username;
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(DataSourceCredentialsCredentialPairArgs defaults) {
return new Builder(defaults);
}
public static final class Builder {
private DataSourceCredentialsCredentialPairArgs $;
public Builder() {
$ = new DataSourceCredentialsCredentialPairArgs();
}
public Builder(DataSourceCredentialsCredentialPairArgs defaults) {
$ = new DataSourceCredentialsCredentialPairArgs(Objects.requireNonNull(defaults));
}
/**
* @param password Password, maximum length of 1024 characters.
*
* @return builder
*
*/
public Builder password(Output password) {
$.password = password;
return this;
}
/**
* @param password Password, maximum length of 1024 characters.
*
* @return builder
*
*/
public Builder password(String password) {
return password(Output.of(password));
}
/**
* @param username User name, maximum length of 64 characters.
*
* @return builder
*
*/
public Builder username(Output username) {
$.username = username;
return this;
}
/**
* @param username User name, maximum length of 64 characters.
*
* @return builder
*
*/
public Builder username(String username) {
return username(Output.of(username));
}
public DataSourceCredentialsCredentialPairArgs build() {
if ($.password == null) {
throw new MissingRequiredPropertyException("DataSourceCredentialsCredentialPairArgs", "password");
}
if ($.username == null) {
throw new MissingRequiredPropertyException("DataSourceCredentialsCredentialPairArgs", "username");
}
return $;
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy