
com.pulumi.azurenative.iotoperationsmq.outputs.AuthorizationConfigResponse 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.iotoperationsmq.outputs;
import com.pulumi.azurenative.iotoperationsmq.outputs.AuthorizationBasicRuleResponse;
import com.pulumi.core.annotations.CustomType;
import java.lang.Boolean;
import java.util.List;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;
@CustomType
public final class AuthorizationConfigResponse {
/**
* @return Enable caching of the authorization rules.
*
*/
private @Nullable Boolean enableCache;
/**
* @return Authorization Rules to be used. If no rule is set, but Authorization Resource is used that would mean DenyAll.
*
*/
private @Nullable List rules;
private AuthorizationConfigResponse() {}
/**
* @return Enable caching of the authorization rules.
*
*/
public Optional enableCache() {
return Optional.ofNullable(this.enableCache);
}
/**
* @return Authorization Rules to be used. If no rule is set, but Authorization Resource is used that would mean DenyAll.
*
*/
public List rules() {
return this.rules == null ? List.of() : this.rules;
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(AuthorizationConfigResponse defaults) {
return new Builder(defaults);
}
@CustomType.Builder
public static final class Builder {
private @Nullable Boolean enableCache;
private @Nullable List rules;
public Builder() {}
public Builder(AuthorizationConfigResponse defaults) {
Objects.requireNonNull(defaults);
this.enableCache = defaults.enableCache;
this.rules = defaults.rules;
}
@CustomType.Setter
public Builder enableCache(@Nullable Boolean enableCache) {
this.enableCache = enableCache;
return this;
}
@CustomType.Setter
public Builder rules(@Nullable List rules) {
this.rules = rules;
return this;
}
public Builder rules(AuthorizationBasicRuleResponse... rules) {
return rules(List.of(rules));
}
public AuthorizationConfigResponse build() {
final var _resultValue = new AuthorizationConfigResponse();
_resultValue.enableCache = enableCache;
_resultValue.rules = rules;
return _resultValue;
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy