
com.pulumi.azurenative.security.outputs.ServicePrincipalPropertiesResponse 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.security.outputs;
import com.pulumi.core.annotations.CustomType;
import java.lang.String;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;
@CustomType
public final class ServicePrincipalPropertiesResponse {
/**
* @return Application ID of service principal.
*
*/
private @Nullable String applicationId;
/**
* @return A secret string that the application uses to prove its identity, also can be referred to as application password (write only).
*
*/
private @Nullable String secret;
private ServicePrincipalPropertiesResponse() {}
/**
* @return Application ID of service principal.
*
*/
public Optional applicationId() {
return Optional.ofNullable(this.applicationId);
}
/**
* @return A secret string that the application uses to prove its identity, also can be referred to as application password (write only).
*
*/
public Optional secret() {
return Optional.ofNullable(this.secret);
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(ServicePrincipalPropertiesResponse defaults) {
return new Builder(defaults);
}
@CustomType.Builder
public static final class Builder {
private @Nullable String applicationId;
private @Nullable String secret;
public Builder() {}
public Builder(ServicePrincipalPropertiesResponse defaults) {
Objects.requireNonNull(defaults);
this.applicationId = defaults.applicationId;
this.secret = defaults.secret;
}
@CustomType.Setter
public Builder applicationId(@Nullable String applicationId) {
this.applicationId = applicationId;
return this;
}
@CustomType.Setter
public Builder secret(@Nullable String secret) {
this.secret = secret;
return this;
}
public ServicePrincipalPropertiesResponse build() {
final var _resultValue = new ServicePrincipalPropertiesResponse();
_resultValue.applicationId = applicationId;
_resultValue.secret = secret;
return _resultValue;
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy