com.pulumi.azurenative.authorization.outputs.RoleManagementPolicyExpirationRuleResponse 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 RoleManagementPolicyExpirationRuleResponse {
/**
* @return The id of the rule.
*
*/
private @Nullable String id;
/**
* @return The value indicating whether expiration is required.
*
*/
private @Nullable Boolean isExpirationRequired;
/**
* @return The maximum duration of expiration in timespan.
*
*/
private @Nullable String maximumDuration;
/**
* @return The type of rule
* Expected value is 'RoleManagementPolicyExpirationRule'.
*
*/
private String ruleType;
/**
* @return The target of the current rule.
*
*/
private @Nullable RoleManagementPolicyRuleTargetResponse target;
private RoleManagementPolicyExpirationRuleResponse() {}
/**
* @return The id of the rule.
*
*/
public Optional id() {
return Optional.ofNullable(this.id);
}
/**
* @return The value indicating whether expiration is required.
*
*/
public Optional isExpirationRequired() {
return Optional.ofNullable(this.isExpirationRequired);
}
/**
* @return The maximum duration of expiration in timespan.
*
*/
public Optional maximumDuration() {
return Optional.ofNullable(this.maximumDuration);
}
/**
* @return The type of rule
* Expected value is 'RoleManagementPolicyExpirationRule'.
*
*/
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(RoleManagementPolicyExpirationRuleResponse defaults) {
return new Builder(defaults);
}
@CustomType.Builder
public static final class Builder {
private @Nullable String id;
private @Nullable Boolean isExpirationRequired;
private @Nullable String maximumDuration;
private String ruleType;
private @Nullable RoleManagementPolicyRuleTargetResponse target;
public Builder() {}
public Builder(RoleManagementPolicyExpirationRuleResponse defaults) {
Objects.requireNonNull(defaults);
this.id = defaults.id;
this.isExpirationRequired = defaults.isExpirationRequired;
this.maximumDuration = defaults.maximumDuration;
this.ruleType = defaults.ruleType;
this.target = defaults.target;
}
@CustomType.Setter
public Builder id(@Nullable String id) {
this.id = id;
return this;
}
@CustomType.Setter
public Builder isExpirationRequired(@Nullable Boolean isExpirationRequired) {
this.isExpirationRequired = isExpirationRequired;
return this;
}
@CustomType.Setter
public Builder maximumDuration(@Nullable String maximumDuration) {
this.maximumDuration = maximumDuration;
return this;
}
@CustomType.Setter
public Builder ruleType(String ruleType) {
if (ruleType == null) {
throw new MissingRequiredPropertyException("RoleManagementPolicyExpirationRuleResponse", "ruleType");
}
this.ruleType = ruleType;
return this;
}
@CustomType.Setter
public Builder target(@Nullable RoleManagementPolicyRuleTargetResponse target) {
this.target = target;
return this;
}
public RoleManagementPolicyExpirationRuleResponse build() {
final var _resultValue = new RoleManagementPolicyExpirationRuleResponse();
_resultValue.id = id;
_resultValue.isExpirationRequired = isExpirationRequired;
_resultValue.maximumDuration = maximumDuration;
_resultValue.ruleType = ruleType;
_resultValue.target = target;
return _resultValue;
}
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy