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