com.pulumi.azurenative.authorization.outputs.RoleManagementPolicyAuthenticationContextRuleResponse 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.RoleManagementPolicyRuleTargetResponse;
import com.pulumi.core.annotations.CustomType;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.Boolean;
import java.lang.String;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;
@CustomType
public final class RoleManagementPolicyAuthenticationContextRuleResponse {
/**
* @return The claim value.
*
*/
private @Nullable String claimValue;
/**
* @return The id of the rule.
*
*/
private @Nullable String id;
/**
* @return The value indicating if rule is enabled.
*
*/
private @Nullable Boolean isEnabled;
/**
* @return The type of rule
* Expected value is 'RoleManagementPolicyAuthenticationContextRule'.
*
*/
private String ruleType;
/**
* @return The target of the current rule.
*
*/
private @Nullable RoleManagementPolicyRuleTargetResponse target;
private RoleManagementPolicyAuthenticationContextRuleResponse() {}
/**
* @return The claim value.
*
*/
public Optional claimValue() {
return Optional.ofNullable(this.claimValue);
}
/**
* @return The id of the rule.
*
*/
public Optional id() {
return Optional.ofNullable(this.id);
}
/**
* @return The value indicating if rule is enabled.
*
*/
public Optional isEnabled() {
return Optional.ofNullable(this.isEnabled);
}
/**
* @return The type of rule
* Expected value is 'RoleManagementPolicyAuthenticationContextRule'.
*
*/
public String ruleType() {
return this.ruleType;
}
/**
* @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(RoleManagementPolicyAuthenticationContextRuleResponse defaults) {
return new Builder(defaults);
}
@CustomType.Builder
public static final class Builder {
private @Nullable String claimValue;
private @Nullable String id;
private @Nullable Boolean isEnabled;
private String ruleType;
private @Nullable RoleManagementPolicyRuleTargetResponse target;
public Builder() {}
public Builder(RoleManagementPolicyAuthenticationContextRuleResponse defaults) {
Objects.requireNonNull(defaults);
this.claimValue = defaults.claimValue;
this.id = defaults.id;
this.isEnabled = defaults.isEnabled;
this.ruleType = defaults.ruleType;
this.target = defaults.target;
}
@CustomType.Setter
public Builder claimValue(@Nullable String claimValue) {
this.claimValue = claimValue;
return this;
}
@CustomType.Setter
public Builder id(@Nullable String id) {
this.id = id;
return this;
}
@CustomType.Setter
public Builder isEnabled(@Nullable Boolean isEnabled) {
this.isEnabled = isEnabled;
return this;
}
@CustomType.Setter
public Builder ruleType(String ruleType) {
if (ruleType == null) {
throw new MissingRequiredPropertyException("RoleManagementPolicyAuthenticationContextRuleResponse", "ruleType");
}
this.ruleType = ruleType;
return this;
}
@CustomType.Setter
public Builder target(@Nullable RoleManagementPolicyRuleTargetResponse target) {
this.target = target;
return this;
}
public RoleManagementPolicyAuthenticationContextRuleResponse build() {
final var _resultValue = new RoleManagementPolicyAuthenticationContextRuleResponse();
_resultValue.claimValue = claimValue;
_resultValue.id = id;
_resultValue.isEnabled = isEnabled;
_resultValue.ruleType = ruleType;
_resultValue.target = target;
return _resultValue;
}
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy