
com.pulumi.azurenative.authorization.outputs.PolicyDefinitionGroupResponse 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.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 PolicyDefinitionGroupResponse {
/**
* @return A resource ID of a resource that contains additional metadata about the group.
*
*/
private @Nullable String additionalMetadataId;
/**
* @return The group's category.
*
*/
private @Nullable String category;
/**
* @return The group's description.
*
*/
private @Nullable String description;
/**
* @return The group's display name.
*
*/
private @Nullable String displayName;
/**
* @return The name of the group.
*
*/
private String name;
private PolicyDefinitionGroupResponse() {}
/**
* @return A resource ID of a resource that contains additional metadata about the group.
*
*/
public Optional additionalMetadataId() {
return Optional.ofNullable(this.additionalMetadataId);
}
/**
* @return The group's category.
*
*/
public Optional category() {
return Optional.ofNullable(this.category);
}
/**
* @return The group's description.
*
*/
public Optional description() {
return Optional.ofNullable(this.description);
}
/**
* @return The group's display name.
*
*/
public Optional displayName() {
return Optional.ofNullable(this.displayName);
}
/**
* @return The name of the group.
*
*/
public String name() {
return this.name;
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(PolicyDefinitionGroupResponse defaults) {
return new Builder(defaults);
}
@CustomType.Builder
public static final class Builder {
private @Nullable String additionalMetadataId;
private @Nullable String category;
private @Nullable String description;
private @Nullable String displayName;
private String name;
public Builder() {}
public Builder(PolicyDefinitionGroupResponse defaults) {
Objects.requireNonNull(defaults);
this.additionalMetadataId = defaults.additionalMetadataId;
this.category = defaults.category;
this.description = defaults.description;
this.displayName = defaults.displayName;
this.name = defaults.name;
}
@CustomType.Setter
public Builder additionalMetadataId(@Nullable String additionalMetadataId) {
this.additionalMetadataId = additionalMetadataId;
return this;
}
@CustomType.Setter
public Builder category(@Nullable String category) {
this.category = category;
return this;
}
@CustomType.Setter
public Builder description(@Nullable String description) {
this.description = description;
return this;
}
@CustomType.Setter
public Builder displayName(@Nullable String displayName) {
this.displayName = displayName;
return this;
}
@CustomType.Setter
public Builder name(String name) {
if (name == null) {
throw new MissingRequiredPropertyException("PolicyDefinitionGroupResponse", "name");
}
this.name = name;
return this;
}
public PolicyDefinitionGroupResponse build() {
final var _resultValue = new PolicyDefinitionGroupResponse();
_resultValue.additionalMetadataId = additionalMetadataId;
_resultValue.category = category;
_resultValue.description = description;
_resultValue.displayName = displayName;
_resultValue.name = name;
return _resultValue;
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy