com.pulumi.azurenative.iotoperationsmq.outputs.AuthorizationBasicRuleResponse 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.PrincipalDefinitionResponse;
import com.pulumi.azurenative.iotoperationsmq.outputs.ResourceInfoDefinitionResponse;
import com.pulumi.core.annotations.CustomType;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.util.List;
import java.util.Objects;
@CustomType
public final class AuthorizationBasicRuleResponse {
/**
* @return This subfield defines the broker resources that the Basic Rule is applied on.
*
*/
private List brokerResources;
/**
* @return This subfield defines the identities that represent the clients.
*
*/
private PrincipalDefinitionResponse principals;
private AuthorizationBasicRuleResponse() {}
/**
* @return This subfield defines the broker resources that the Basic Rule is applied on.
*
*/
public List brokerResources() {
return this.brokerResources;
}
/**
* @return This subfield defines the identities that represent the clients.
*
*/
public PrincipalDefinitionResponse principals() {
return this.principals;
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(AuthorizationBasicRuleResponse defaults) {
return new Builder(defaults);
}
@CustomType.Builder
public static final class Builder {
private List brokerResources;
private PrincipalDefinitionResponse principals;
public Builder() {}
public Builder(AuthorizationBasicRuleResponse defaults) {
Objects.requireNonNull(defaults);
this.brokerResources = defaults.brokerResources;
this.principals = defaults.principals;
}
@CustomType.Setter
public Builder brokerResources(List brokerResources) {
if (brokerResources == null) {
throw new MissingRequiredPropertyException("AuthorizationBasicRuleResponse", "brokerResources");
}
this.brokerResources = brokerResources;
return this;
}
public Builder brokerResources(ResourceInfoDefinitionResponse... brokerResources) {
return brokerResources(List.of(brokerResources));
}
@CustomType.Setter
public Builder principals(PrincipalDefinitionResponse principals) {
if (principals == null) {
throw new MissingRequiredPropertyException("AuthorizationBasicRuleResponse", "principals");
}
this.principals = principals;
return this;
}
public AuthorizationBasicRuleResponse build() {
final var _resultValue = new AuthorizationBasicRuleResponse();
_resultValue.brokerResources = brokerResources;
_resultValue.principals = principals;
return _resultValue;
}
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy