com.pulumi.azure.network.outputs.NetworkManagerCrossTenantScope 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.network.outputs;
import com.pulumi.core.annotations.CustomType;
import java.lang.String;
import java.util.List;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;
@CustomType
public final class NetworkManagerCrossTenantScope {
/**
* @return List of management groups.
*
*/
private @Nullable List managementGroups;
/**
* @return List of subscriptions.
*
*/
private @Nullable List subscriptions;
/**
* @return Tenant ID.
*
*/
private @Nullable String tenantId;
private NetworkManagerCrossTenantScope() {}
/**
* @return List of management groups.
*
*/
public List managementGroups() {
return this.managementGroups == null ? List.of() : this.managementGroups;
}
/**
* @return List of subscriptions.
*
*/
public List subscriptions() {
return this.subscriptions == null ? List.of() : this.subscriptions;
}
/**
* @return Tenant ID.
*
*/
public Optional tenantId() {
return Optional.ofNullable(this.tenantId);
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(NetworkManagerCrossTenantScope defaults) {
return new Builder(defaults);
}
@CustomType.Builder
public static final class Builder {
private @Nullable List managementGroups;
private @Nullable List subscriptions;
private @Nullable String tenantId;
public Builder() {}
public Builder(NetworkManagerCrossTenantScope defaults) {
Objects.requireNonNull(defaults);
this.managementGroups = defaults.managementGroups;
this.subscriptions = defaults.subscriptions;
this.tenantId = defaults.tenantId;
}
@CustomType.Setter
public Builder managementGroups(@Nullable List managementGroups) {
this.managementGroups = managementGroups;
return this;
}
public Builder managementGroups(String... managementGroups) {
return managementGroups(List.of(managementGroups));
}
@CustomType.Setter
public Builder subscriptions(@Nullable List subscriptions) {
this.subscriptions = subscriptions;
return this;
}
public Builder subscriptions(String... subscriptions) {
return subscriptions(List.of(subscriptions));
}
@CustomType.Setter
public Builder tenantId(@Nullable String tenantId) {
this.tenantId = tenantId;
return this;
}
public NetworkManagerCrossTenantScope build() {
final var _resultValue = new NetworkManagerCrossTenantScope();
_resultValue.managementGroups = managementGroups;
_resultValue.subscriptions = subscriptions;
_resultValue.tenantId = tenantId;
return _resultValue;
}
}
}