
com.pulumi.azurenative.scheduler.outputs.BasicAuthenticationResponse Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of azure-native Show documentation
Show all versions of azure-native Show documentation
A native Pulumi package for creating and managing Azure 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.azurenative.scheduler.outputs;
import com.pulumi.core.annotations.CustomType;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.String;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;
@CustomType
public final class BasicAuthenticationResponse {
/**
* @return Gets or sets the password, return value will always be empty.
*
*/
private @Nullable String password;
/**
* @return Gets or sets the HTTP authentication type.
* Expected value is 'Basic'.
*
*/
private String type;
/**
* @return Gets or sets the username.
*
*/
private @Nullable String username;
private BasicAuthenticationResponse() {}
/**
* @return Gets or sets the password, return value will always be empty.
*
*/
public Optional password() {
return Optional.ofNullable(this.password);
}
/**
* @return Gets or sets the HTTP authentication type.
* Expected value is 'Basic'.
*
*/
public String type() {
return this.type;
}
/**
* @return Gets or sets the username.
*
*/
public Optional username() {
return Optional.ofNullable(this.username);
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(BasicAuthenticationResponse defaults) {
return new Builder(defaults);
}
@CustomType.Builder
public static final class Builder {
private @Nullable String password;
private String type;
private @Nullable String username;
public Builder() {}
public Builder(BasicAuthenticationResponse defaults) {
Objects.requireNonNull(defaults);
this.password = defaults.password;
this.type = defaults.type;
this.username = defaults.username;
}
@CustomType.Setter
public Builder password(@Nullable String password) {
this.password = password;
return this;
}
@CustomType.Setter
public Builder type(String type) {
if (type == null) {
throw new MissingRequiredPropertyException("BasicAuthenticationResponse", "type");
}
this.type = type;
return this;
}
@CustomType.Setter
public Builder username(@Nullable String username) {
this.username = username;
return this;
}
public BasicAuthenticationResponse build() {
final var _resultValue = new BasicAuthenticationResponse();
_resultValue.password = password;
_resultValue.type = type;
_resultValue.username = username;
return _resultValue;
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy