com.pulumi.azurenative.devtestlab.outputs.UserIdentityResponse 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.
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.azurenative.devtestlab.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 UserIdentityResponse {
/**
* @return Set to the app Id of the client JWT making the request.
*
*/
private @Nullable String appId;
/**
* @return Set to the object Id of the client JWT making the request. Not all users have object Id. For CSP (reseller) scenarios for example, object Id is not available.
*
*/
private @Nullable String objectId;
/**
* @return Set to the principal Id of the client JWT making the request. Service principal will not have the principal Id.
*
*/
private @Nullable String principalId;
/**
* @return Set to the principal name / UPN of the client JWT making the request.
*
*/
private @Nullable String principalName;
/**
* @return Set to the tenant ID of the client JWT making the request.
*
*/
private @Nullable String tenantId;
private UserIdentityResponse() {}
/**
* @return Set to the app Id of the client JWT making the request.
*
*/
public Optional appId() {
return Optional.ofNullable(this.appId);
}
/**
* @return Set to the object Id of the client JWT making the request. Not all users have object Id. For CSP (reseller) scenarios for example, object Id is not available.
*
*/
public Optional objectId() {
return Optional.ofNullable(this.objectId);
}
/**
* @return Set to the principal Id of the client JWT making the request. Service principal will not have the principal Id.
*
*/
public Optional principalId() {
return Optional.ofNullable(this.principalId);
}
/**
* @return Set to the principal name / UPN of the client JWT making the request.
*
*/
public Optional principalName() {
return Optional.ofNullable(this.principalName);
}
/**
* @return Set to the tenant ID of the client JWT making the request.
*
*/
public Optional tenantId() {
return Optional.ofNullable(this.tenantId);
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(UserIdentityResponse defaults) {
return new Builder(defaults);
}
@CustomType.Builder
public static final class Builder {
private @Nullable String appId;
private @Nullable String objectId;
private @Nullable String principalId;
private @Nullable String principalName;
private @Nullable String tenantId;
public Builder() {}
public Builder(UserIdentityResponse defaults) {
Objects.requireNonNull(defaults);
this.appId = defaults.appId;
this.objectId = defaults.objectId;
this.principalId = defaults.principalId;
this.principalName = defaults.principalName;
this.tenantId = defaults.tenantId;
}
@CustomType.Setter
public Builder appId(@Nullable String appId) {
this.appId = appId;
return this;
}
@CustomType.Setter
public Builder objectId(@Nullable String objectId) {
this.objectId = objectId;
return this;
}
@CustomType.Setter
public Builder principalId(@Nullable String principalId) {
this.principalId = principalId;
return this;
}
@CustomType.Setter
public Builder principalName(@Nullable String principalName) {
this.principalName = principalName;
return this;
}
@CustomType.Setter
public Builder tenantId(@Nullable String tenantId) {
this.tenantId = tenantId;
return this;
}
public UserIdentityResponse build() {
final var _resultValue = new UserIdentityResponse();
_resultValue.appId = appId;
_resultValue.objectId = objectId;
_resultValue.principalId = principalId;
_resultValue.principalName = principalName;
_resultValue.tenantId = tenantId;
return _resultValue;
}
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy