
com.pulumi.azurenative.managedservices.outputs.EligibleAuthorizationResponse 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.managedservices.outputs;
import com.pulumi.azurenative.managedservices.outputs.JustInTimeAccessPolicyResponse;
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 EligibleAuthorizationResponse {
/**
* @return The just-in-time access policy setting.
*
*/
private @Nullable JustInTimeAccessPolicyResponse justInTimeAccessPolicy;
/**
* @return The identifier of the Azure Active Directory principal.
*
*/
private String principalId;
/**
* @return The display name of the Azure Active Directory principal.
*
*/
private @Nullable String principalIdDisplayName;
/**
* @return The identifier of the Azure built-in role that defines the permissions that the Azure Active Directory principal will have on the projected scope.
*
*/
private String roleDefinitionId;
private EligibleAuthorizationResponse() {}
/**
* @return The just-in-time access policy setting.
*
*/
public Optional justInTimeAccessPolicy() {
return Optional.ofNullable(this.justInTimeAccessPolicy);
}
/**
* @return The identifier of the Azure Active Directory principal.
*
*/
public String principalId() {
return this.principalId;
}
/**
* @return The display name of the Azure Active Directory principal.
*
*/
public Optional principalIdDisplayName() {
return Optional.ofNullable(this.principalIdDisplayName);
}
/**
* @return The identifier of the Azure built-in role that defines the permissions that the Azure Active Directory principal will have on the projected scope.
*
*/
public String roleDefinitionId() {
return this.roleDefinitionId;
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(EligibleAuthorizationResponse defaults) {
return new Builder(defaults);
}
@CustomType.Builder
public static final class Builder {
private @Nullable JustInTimeAccessPolicyResponse justInTimeAccessPolicy;
private String principalId;
private @Nullable String principalIdDisplayName;
private String roleDefinitionId;
public Builder() {}
public Builder(EligibleAuthorizationResponse defaults) {
Objects.requireNonNull(defaults);
this.justInTimeAccessPolicy = defaults.justInTimeAccessPolicy;
this.principalId = defaults.principalId;
this.principalIdDisplayName = defaults.principalIdDisplayName;
this.roleDefinitionId = defaults.roleDefinitionId;
}
@CustomType.Setter
public Builder justInTimeAccessPolicy(@Nullable JustInTimeAccessPolicyResponse justInTimeAccessPolicy) {
this.justInTimeAccessPolicy = justInTimeAccessPolicy;
return this;
}
@CustomType.Setter
public Builder principalId(String principalId) {
if (principalId == null) {
throw new MissingRequiredPropertyException("EligibleAuthorizationResponse", "principalId");
}
this.principalId = principalId;
return this;
}
@CustomType.Setter
public Builder principalIdDisplayName(@Nullable String principalIdDisplayName) {
this.principalIdDisplayName = principalIdDisplayName;
return this;
}
@CustomType.Setter
public Builder roleDefinitionId(String roleDefinitionId) {
if (roleDefinitionId == null) {
throw new MissingRequiredPropertyException("EligibleAuthorizationResponse", "roleDefinitionId");
}
this.roleDefinitionId = roleDefinitionId;
return this;
}
public EligibleAuthorizationResponse build() {
final var _resultValue = new EligibleAuthorizationResponse();
_resultValue.justInTimeAccessPolicy = justInTimeAccessPolicy;
_resultValue.principalId = principalId;
_resultValue.principalIdDisplayName = principalIdDisplayName;
_resultValue.roleDefinitionId = roleDefinitionId;
return _resultValue;
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy