com.pulumi.azurenative.managedservices.outputs.JustInTimeAccessPolicyResponse 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.managedservices.outputs;
import com.pulumi.azurenative.managedservices.outputs.EligibleApproverResponse;
import com.pulumi.core.annotations.CustomType;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.String;
import java.util.List;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;
@CustomType
public final class JustInTimeAccessPolicyResponse {
/**
* @return The list of managedByTenant approvers for the eligible authorization.
*
*/
private @Nullable List managedByTenantApprovers;
/**
* @return The maximum access duration in ISO 8601 format for just-in-time access requests.
*
*/
private @Nullable String maximumActivationDuration;
/**
* @return The multi-factor authorization provider to be used for just-in-time access requests.
*
*/
private String multiFactorAuthProvider;
private JustInTimeAccessPolicyResponse() {}
/**
* @return The list of managedByTenant approvers for the eligible authorization.
*
*/
public List managedByTenantApprovers() {
return this.managedByTenantApprovers == null ? List.of() : this.managedByTenantApprovers;
}
/**
* @return The maximum access duration in ISO 8601 format for just-in-time access requests.
*
*/
public Optional maximumActivationDuration() {
return Optional.ofNullable(this.maximumActivationDuration);
}
/**
* @return The multi-factor authorization provider to be used for just-in-time access requests.
*
*/
public String multiFactorAuthProvider() {
return this.multiFactorAuthProvider;
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(JustInTimeAccessPolicyResponse defaults) {
return new Builder(defaults);
}
@CustomType.Builder
public static final class Builder {
private @Nullable List managedByTenantApprovers;
private @Nullable String maximumActivationDuration;
private String multiFactorAuthProvider;
public Builder() {}
public Builder(JustInTimeAccessPolicyResponse defaults) {
Objects.requireNonNull(defaults);
this.managedByTenantApprovers = defaults.managedByTenantApprovers;
this.maximumActivationDuration = defaults.maximumActivationDuration;
this.multiFactorAuthProvider = defaults.multiFactorAuthProvider;
}
@CustomType.Setter
public Builder managedByTenantApprovers(@Nullable List managedByTenantApprovers) {
this.managedByTenantApprovers = managedByTenantApprovers;
return this;
}
public Builder managedByTenantApprovers(EligibleApproverResponse... managedByTenantApprovers) {
return managedByTenantApprovers(List.of(managedByTenantApprovers));
}
@CustomType.Setter
public Builder maximumActivationDuration(@Nullable String maximumActivationDuration) {
this.maximumActivationDuration = maximumActivationDuration;
return this;
}
@CustomType.Setter
public Builder multiFactorAuthProvider(String multiFactorAuthProvider) {
if (multiFactorAuthProvider == null) {
throw new MissingRequiredPropertyException("JustInTimeAccessPolicyResponse", "multiFactorAuthProvider");
}
this.multiFactorAuthProvider = multiFactorAuthProvider;
return this;
}
public JustInTimeAccessPolicyResponse build() {
final var _resultValue = new JustInTimeAccessPolicyResponse();
_resultValue.managedByTenantApprovers = managedByTenantApprovers;
_resultValue.maximumActivationDuration = maximumActivationDuration;
_resultValue.multiFactorAuthProvider = multiFactorAuthProvider;
return _resultValue;
}
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy