
com.pulumi.azurenative.authorization.outputs.ApprovalSettingsResponse 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.authorization.outputs;
import com.pulumi.azurenative.authorization.outputs.ApprovalStageResponse;
import com.pulumi.core.annotations.CustomType;
import java.lang.Boolean;
import java.lang.String;
import java.util.List;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;
@CustomType
public final class ApprovalSettingsResponse {
/**
* @return The type of rule
*
*/
private @Nullable String approvalMode;
/**
* @return The approval stages of the request.
*
*/
private @Nullable List approvalStages;
/**
* @return Determines whether approval is required or not.
*
*/
private @Nullable Boolean isApprovalRequired;
/**
* @return Determines whether approval is required for assignment extension.
*
*/
private @Nullable Boolean isApprovalRequiredForExtension;
/**
* @return Determine whether requestor justification is required.
*
*/
private @Nullable Boolean isRequestorJustificationRequired;
private ApprovalSettingsResponse() {}
/**
* @return The type of rule
*
*/
public Optional approvalMode() {
return Optional.ofNullable(this.approvalMode);
}
/**
* @return The approval stages of the request.
*
*/
public List approvalStages() {
return this.approvalStages == null ? List.of() : this.approvalStages;
}
/**
* @return Determines whether approval is required or not.
*
*/
public Optional isApprovalRequired() {
return Optional.ofNullable(this.isApprovalRequired);
}
/**
* @return Determines whether approval is required for assignment extension.
*
*/
public Optional isApprovalRequiredForExtension() {
return Optional.ofNullable(this.isApprovalRequiredForExtension);
}
/**
* @return Determine whether requestor justification is required.
*
*/
public Optional isRequestorJustificationRequired() {
return Optional.ofNullable(this.isRequestorJustificationRequired);
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(ApprovalSettingsResponse defaults) {
return new Builder(defaults);
}
@CustomType.Builder
public static final class Builder {
private @Nullable String approvalMode;
private @Nullable List approvalStages;
private @Nullable Boolean isApprovalRequired;
private @Nullable Boolean isApprovalRequiredForExtension;
private @Nullable Boolean isRequestorJustificationRequired;
public Builder() {}
public Builder(ApprovalSettingsResponse defaults) {
Objects.requireNonNull(defaults);
this.approvalMode = defaults.approvalMode;
this.approvalStages = defaults.approvalStages;
this.isApprovalRequired = defaults.isApprovalRequired;
this.isApprovalRequiredForExtension = defaults.isApprovalRequiredForExtension;
this.isRequestorJustificationRequired = defaults.isRequestorJustificationRequired;
}
@CustomType.Setter
public Builder approvalMode(@Nullable String approvalMode) {
this.approvalMode = approvalMode;
return this;
}
@CustomType.Setter
public Builder approvalStages(@Nullable List approvalStages) {
this.approvalStages = approvalStages;
return this;
}
public Builder approvalStages(ApprovalStageResponse... approvalStages) {
return approvalStages(List.of(approvalStages));
}
@CustomType.Setter
public Builder isApprovalRequired(@Nullable Boolean isApprovalRequired) {
this.isApprovalRequired = isApprovalRequired;
return this;
}
@CustomType.Setter
public Builder isApprovalRequiredForExtension(@Nullable Boolean isApprovalRequiredForExtension) {
this.isApprovalRequiredForExtension = isApprovalRequiredForExtension;
return this;
}
@CustomType.Setter
public Builder isRequestorJustificationRequired(@Nullable Boolean isRequestorJustificationRequired) {
this.isRequestorJustificationRequired = isRequestorJustificationRequired;
return this;
}
public ApprovalSettingsResponse build() {
final var _resultValue = new ApprovalSettingsResponse();
_resultValue.approvalMode = approvalMode;
_resultValue.approvalStages = approvalStages;
_resultValue.isApprovalRequired = isApprovalRequired;
_resultValue.isApprovalRequiredForExtension = isApprovalRequiredForExtension;
_resultValue.isRequestorJustificationRequired = isRequestorJustificationRequired;
return _resultValue;
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy