![JAR search and dependency download from the Maven repository](/logo.png)
com.pulumi.azure.pim.outputs.RoleManagementPolicyActiveAssignmentRules Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of azure Show documentation
Show all versions of azure Show documentation
A Pulumi package for creating and managing Microsoft Azure cloud resources, based on the Terraform azurerm provider. We recommend using the [Azure Native provider](https://github.com/pulumi/pulumi-azure-native) to provision Azure infrastructure. Azure Native provides complete coverage of Azure resources and same-day access to new resources and resource updates.
// *** 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.azure.pim.outputs;
import com.pulumi.core.annotations.CustomType;
import java.lang.Boolean;
import java.lang.String;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;
@CustomType
public final class RoleManagementPolicyActiveAssignmentRules {
/**
* @return Must an assignment have an expiry date. `false` allows permanent assignment.
*
*/
private @Nullable Boolean expirationRequired;
/**
* @return The maximum length of time an assignment can be valid, as an ISO8601 duration. Permitted values: `P15D`, `P30D`, `P90D`, `P180D`, or `P365D`.
*
*/
private @Nullable String expireAfter;
/**
* @return Is a justification required to create new assignments.
*
*/
private @Nullable Boolean requireJustification;
/**
* @return Is multi-factor authentication required to create new assignments.
*
*/
private @Nullable Boolean requireMultifactorAuthentication;
/**
* @return Is ticket information required to create new assignments.
*
* One of `expiration_required` or `expire_after` must be provided.
*
*/
private @Nullable Boolean requireTicketInfo;
private RoleManagementPolicyActiveAssignmentRules() {}
/**
* @return Must an assignment have an expiry date. `false` allows permanent assignment.
*
*/
public Optional expirationRequired() {
return Optional.ofNullable(this.expirationRequired);
}
/**
* @return The maximum length of time an assignment can be valid, as an ISO8601 duration. Permitted values: `P15D`, `P30D`, `P90D`, `P180D`, or `P365D`.
*
*/
public Optional expireAfter() {
return Optional.ofNullable(this.expireAfter);
}
/**
* @return Is a justification required to create new assignments.
*
*/
public Optional requireJustification() {
return Optional.ofNullable(this.requireJustification);
}
/**
* @return Is multi-factor authentication required to create new assignments.
*
*/
public Optional requireMultifactorAuthentication() {
return Optional.ofNullable(this.requireMultifactorAuthentication);
}
/**
* @return Is ticket information required to create new assignments.
*
* One of `expiration_required` or `expire_after` must be provided.
*
*/
public Optional requireTicketInfo() {
return Optional.ofNullable(this.requireTicketInfo);
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(RoleManagementPolicyActiveAssignmentRules defaults) {
return new Builder(defaults);
}
@CustomType.Builder
public static final class Builder {
private @Nullable Boolean expirationRequired;
private @Nullable String expireAfter;
private @Nullable Boolean requireJustification;
private @Nullable Boolean requireMultifactorAuthentication;
private @Nullable Boolean requireTicketInfo;
public Builder() {}
public Builder(RoleManagementPolicyActiveAssignmentRules defaults) {
Objects.requireNonNull(defaults);
this.expirationRequired = defaults.expirationRequired;
this.expireAfter = defaults.expireAfter;
this.requireJustification = defaults.requireJustification;
this.requireMultifactorAuthentication = defaults.requireMultifactorAuthentication;
this.requireTicketInfo = defaults.requireTicketInfo;
}
@CustomType.Setter
public Builder expirationRequired(@Nullable Boolean expirationRequired) {
this.expirationRequired = expirationRequired;
return this;
}
@CustomType.Setter
public Builder expireAfter(@Nullable String expireAfter) {
this.expireAfter = expireAfter;
return this;
}
@CustomType.Setter
public Builder requireJustification(@Nullable Boolean requireJustification) {
this.requireJustification = requireJustification;
return this;
}
@CustomType.Setter
public Builder requireMultifactorAuthentication(@Nullable Boolean requireMultifactorAuthentication) {
this.requireMultifactorAuthentication = requireMultifactorAuthentication;
return this;
}
@CustomType.Setter
public Builder requireTicketInfo(@Nullable Boolean requireTicketInfo) {
this.requireTicketInfo = requireTicketInfo;
return this;
}
public RoleManagementPolicyActiveAssignmentRules build() {
final var _resultValue = new RoleManagementPolicyActiveAssignmentRules();
_resultValue.expirationRequired = expirationRequired;
_resultValue.expireAfter = expireAfter;
_resultValue.requireJustification = requireJustification;
_resultValue.requireMultifactorAuthentication = requireMultifactorAuthentication;
_resultValue.requireTicketInfo = requireTicketInfo;
return _resultValue;
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy