
com.pulumi.azurenative.scheduler.outputs.OAuthAuthenticationResponse 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 OAuthAuthenticationResponse {
/**
* @return Gets or sets the audience.
*
*/
private @Nullable String audience;
/**
* @return Gets or sets the client identifier.
*
*/
private @Nullable String clientId;
/**
* @return Gets or sets the secret, return value will always be empty.
*
*/
private @Nullable String secret;
/**
* @return Gets or sets the tenant.
*
*/
private @Nullable String tenant;
/**
* @return Gets or sets the HTTP authentication type.
* Expected value is 'ActiveDirectoryOAuth'.
*
*/
private String type;
private OAuthAuthenticationResponse() {}
/**
* @return Gets or sets the audience.
*
*/
public Optional audience() {
return Optional.ofNullable(this.audience);
}
/**
* @return Gets or sets the client identifier.
*
*/
public Optional clientId() {
return Optional.ofNullable(this.clientId);
}
/**
* @return Gets or sets the secret, return value will always be empty.
*
*/
public Optional secret() {
return Optional.ofNullable(this.secret);
}
/**
* @return Gets or sets the tenant.
*
*/
public Optional tenant() {
return Optional.ofNullable(this.tenant);
}
/**
* @return Gets or sets the HTTP authentication type.
* Expected value is 'ActiveDirectoryOAuth'.
*
*/
public String type() {
return this.type;
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(OAuthAuthenticationResponse defaults) {
return new Builder(defaults);
}
@CustomType.Builder
public static final class Builder {
private @Nullable String audience;
private @Nullable String clientId;
private @Nullable String secret;
private @Nullable String tenant;
private String type;
public Builder() {}
public Builder(OAuthAuthenticationResponse defaults) {
Objects.requireNonNull(defaults);
this.audience = defaults.audience;
this.clientId = defaults.clientId;
this.secret = defaults.secret;
this.tenant = defaults.tenant;
this.type = defaults.type;
}
@CustomType.Setter
public Builder audience(@Nullable String audience) {
this.audience = audience;
return this;
}
@CustomType.Setter
public Builder clientId(@Nullable String clientId) {
this.clientId = clientId;
return this;
}
@CustomType.Setter
public Builder secret(@Nullable String secret) {
this.secret = secret;
return this;
}
@CustomType.Setter
public Builder tenant(@Nullable String tenant) {
this.tenant = tenant;
return this;
}
@CustomType.Setter
public Builder type(String type) {
if (type == null) {
throw new MissingRequiredPropertyException("OAuthAuthenticationResponse", "type");
}
this.type = type;
return this;
}
public OAuthAuthenticationResponse build() {
final var _resultValue = new OAuthAuthenticationResponse();
_resultValue.audience = audience;
_resultValue.clientId = clientId;
_resultValue.secret = secret;
_resultValue.tenant = tenant;
_resultValue.type = type;
return _resultValue;
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy