com.pulumi.azure.core.outputs.GetResourceGroupResult 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.azure.core.outputs;
import com.pulumi.core.annotations.CustomType;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.String;
import java.util.Map;
import java.util.Objects;
@CustomType
public final class GetResourceGroupResult {
/**
* @return The provider-assigned unique ID for this managed resource.
*
*/
private String id;
/**
* @return The Azure Region where the Resource Group exists.
*
*/
private String location;
private String managedBy;
private String name;
/**
* @return A mapping of tags assigned to the Resource Group.
*
*/
private Map tags;
private GetResourceGroupResult() {}
/**
* @return The provider-assigned unique ID for this managed resource.
*
*/
public String id() {
return this.id;
}
/**
* @return The Azure Region where the Resource Group exists.
*
*/
public String location() {
return this.location;
}
public String managedBy() {
return this.managedBy;
}
public String name() {
return this.name;
}
/**
* @return A mapping of tags assigned to the Resource Group.
*
*/
public Map tags() {
return this.tags;
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(GetResourceGroupResult defaults) {
return new Builder(defaults);
}
@CustomType.Builder
public static final class Builder {
private String id;
private String location;
private String managedBy;
private String name;
private Map tags;
public Builder() {}
public Builder(GetResourceGroupResult defaults) {
Objects.requireNonNull(defaults);
this.id = defaults.id;
this.location = defaults.location;
this.managedBy = defaults.managedBy;
this.name = defaults.name;
this.tags = defaults.tags;
}
@CustomType.Setter
public Builder id(String id) {
if (id == null) {
throw new MissingRequiredPropertyException("GetResourceGroupResult", "id");
}
this.id = id;
return this;
}
@CustomType.Setter
public Builder location(String location) {
if (location == null) {
throw new MissingRequiredPropertyException("GetResourceGroupResult", "location");
}
this.location = location;
return this;
}
@CustomType.Setter
public Builder managedBy(String managedBy) {
if (managedBy == null) {
throw new MissingRequiredPropertyException("GetResourceGroupResult", "managedBy");
}
this.managedBy = managedBy;
return this;
}
@CustomType.Setter
public Builder name(String name) {
if (name == null) {
throw new MissingRequiredPropertyException("GetResourceGroupResult", "name");
}
this.name = name;
return this;
}
@CustomType.Setter
public Builder tags(Map tags) {
if (tags == null) {
throw new MissingRequiredPropertyException("GetResourceGroupResult", "tags");
}
this.tags = tags;
return this;
}
public GetResourceGroupResult build() {
final var _resultValue = new GetResourceGroupResult();
_resultValue.id = id;
_resultValue.location = location;
_resultValue.managedBy = managedBy;
_resultValue.name = name;
_resultValue.tags = tags;
return _resultValue;
}
}
}