
com.pulumi.azurenative.network.outputs.CrossTenantScopesResponse 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.network.outputs;
import com.pulumi.core.annotations.CustomType;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.String;
import java.util.List;
import java.util.Objects;
@CustomType
public final class CrossTenantScopesResponse {
/**
* @return List of management groups.
*
*/
private List managementGroups;
/**
* @return List of subscriptions.
*
*/
private List subscriptions;
/**
* @return Tenant ID.
*
*/
private String tenantId;
private CrossTenantScopesResponse() {}
/**
* @return List of management groups.
*
*/
public List managementGroups() {
return this.managementGroups;
}
/**
* @return List of subscriptions.
*
*/
public List subscriptions() {
return this.subscriptions;
}
/**
* @return Tenant ID.
*
*/
public String tenantId() {
return this.tenantId;
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(CrossTenantScopesResponse defaults) {
return new Builder(defaults);
}
@CustomType.Builder
public static final class Builder {
private List managementGroups;
private List subscriptions;
private String tenantId;
public Builder() {}
public Builder(CrossTenantScopesResponse defaults) {
Objects.requireNonNull(defaults);
this.managementGroups = defaults.managementGroups;
this.subscriptions = defaults.subscriptions;
this.tenantId = defaults.tenantId;
}
@CustomType.Setter
public Builder managementGroups(List managementGroups) {
if (managementGroups == null) {
throw new MissingRequiredPropertyException("CrossTenantScopesResponse", "managementGroups");
}
this.managementGroups = managementGroups;
return this;
}
public Builder managementGroups(String... managementGroups) {
return managementGroups(List.of(managementGroups));
}
@CustomType.Setter
public Builder subscriptions(List subscriptions) {
if (subscriptions == null) {
throw new MissingRequiredPropertyException("CrossTenantScopesResponse", "subscriptions");
}
this.subscriptions = subscriptions;
return this;
}
public Builder subscriptions(String... subscriptions) {
return subscriptions(List.of(subscriptions));
}
@CustomType.Setter
public Builder tenantId(String tenantId) {
if (tenantId == null) {
throw new MissingRequiredPropertyException("CrossTenantScopesResponse", "tenantId");
}
this.tenantId = tenantId;
return this;
}
public CrossTenantScopesResponse build() {
final var _resultValue = new CrossTenantScopesResponse();
_resultValue.managementGroups = managementGroups;
_resultValue.subscriptions = subscriptions;
_resultValue.tenantId = tenantId;
return _resultValue;
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy