
com.pulumi.azurenative.authorization.outputs.RoleManagementPolicyApprovalRuleResponse 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.authorization.outputs;
import com.pulumi.azurenative.authorization.outputs.ApprovalSettingsResponse;
import com.pulumi.azurenative.authorization.outputs.RoleManagementPolicyRuleTargetResponse;
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 RoleManagementPolicyApprovalRuleResponse {
/**
* @return The id of the rule.
*
*/
private @Nullable String id;
/**
* @return The type of rule
* Expected value is 'RoleManagementPolicyApprovalRule'.
*
*/
private String ruleType;
/**
* @return The approval setting
*
*/
private @Nullable ApprovalSettingsResponse setting;
/**
* @return The target of the current rule.
*
*/
private @Nullable RoleManagementPolicyRuleTargetResponse target;
private RoleManagementPolicyApprovalRuleResponse() {}
/**
* @return The id of the rule.
*
*/
public Optional id() {
return Optional.ofNullable(this.id);
}
/**
* @return The type of rule
* Expected value is 'RoleManagementPolicyApprovalRule'.
*
*/
public String ruleType() {
return this.ruleType;
}
/**
* @return The approval setting
*
*/
public Optional setting() {
return Optional.ofNullable(this.setting);
}
/**
* @return The target of the current rule.
*
*/
public Optional target() {
return Optional.ofNullable(this.target);
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(RoleManagementPolicyApprovalRuleResponse defaults) {
return new Builder(defaults);
}
@CustomType.Builder
public static final class Builder {
private @Nullable String id;
private String ruleType;
private @Nullable ApprovalSettingsResponse setting;
private @Nullable RoleManagementPolicyRuleTargetResponse target;
public Builder() {}
public Builder(RoleManagementPolicyApprovalRuleResponse defaults) {
Objects.requireNonNull(defaults);
this.id = defaults.id;
this.ruleType = defaults.ruleType;
this.setting = defaults.setting;
this.target = defaults.target;
}
@CustomType.Setter
public Builder id(@Nullable String id) {
this.id = id;
return this;
}
@CustomType.Setter
public Builder ruleType(String ruleType) {
if (ruleType == null) {
throw new MissingRequiredPropertyException("RoleManagementPolicyApprovalRuleResponse", "ruleType");
}
this.ruleType = ruleType;
return this;
}
@CustomType.Setter
public Builder setting(@Nullable ApprovalSettingsResponse setting) {
this.setting = setting;
return this;
}
@CustomType.Setter
public Builder target(@Nullable RoleManagementPolicyRuleTargetResponse target) {
this.target = target;
return this;
}
public RoleManagementPolicyApprovalRuleResponse build() {
final var _resultValue = new RoleManagementPolicyApprovalRuleResponse();
_resultValue.id = id;
_resultValue.ruleType = ruleType;
_resultValue.setting = setting;
_resultValue.target = target;
return _resultValue;
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy