com.pulumi.azure.mssql.inputs.DatabaseIdentityArgs Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of azure Show documentation
Show all versions of azure Show documentation
A Pulumi package for creating and managing Microsoft Azure cloud resources, based on the Terraform azurerm provider. We recommend using the [Azure Native provider](https://github.com/pulumi/pulumi-azure-native) to provision Azure infrastructure. Azure Native provides complete coverage of Azure resources and same-day access to new resources and resource updates.
// *** 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.mssql.inputs;
import com.pulumi.core.Output;
import com.pulumi.core.annotations.Import;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.String;
import java.util.List;
import java.util.Objects;
public final class DatabaseIdentityArgs extends com.pulumi.resources.ResourceArgs {
public static final DatabaseIdentityArgs Empty = new DatabaseIdentityArgs();
/**
* Specifies a list of User Assigned Managed Identity IDs to be assigned to this SQL Database.
*
*/
@Import(name="identityIds", required=true)
private Output> identityIds;
/**
* @return Specifies a list of User Assigned Managed Identity IDs to be assigned to this SQL Database.
*
*/
public Output> identityIds() {
return this.identityIds;
}
/**
* Specifies the type of Managed Service Identity that should be configured on this SQL Database. Possible value is `UserAssigned`.
*
*/
@Import(name="type", required=true)
private Output type;
/**
* @return Specifies the type of Managed Service Identity that should be configured on this SQL Database. Possible value is `UserAssigned`.
*
*/
public Output type() {
return this.type;
}
private DatabaseIdentityArgs() {}
private DatabaseIdentityArgs(DatabaseIdentityArgs $) {
this.identityIds = $.identityIds;
this.type = $.type;
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(DatabaseIdentityArgs defaults) {
return new Builder(defaults);
}
public static final class Builder {
private DatabaseIdentityArgs $;
public Builder() {
$ = new DatabaseIdentityArgs();
}
public Builder(DatabaseIdentityArgs defaults) {
$ = new DatabaseIdentityArgs(Objects.requireNonNull(defaults));
}
/**
* @param identityIds Specifies a list of User Assigned Managed Identity IDs to be assigned to this SQL Database.
*
* @return builder
*
*/
public Builder identityIds(Output> identityIds) {
$.identityIds = identityIds;
return this;
}
/**
* @param identityIds Specifies a list of User Assigned Managed Identity IDs to be assigned to this SQL Database.
*
* @return builder
*
*/
public Builder identityIds(List identityIds) {
return identityIds(Output.of(identityIds));
}
/**
* @param identityIds Specifies a list of User Assigned Managed Identity IDs to be assigned to this SQL Database.
*
* @return builder
*
*/
public Builder identityIds(String... identityIds) {
return identityIds(List.of(identityIds));
}
/**
* @param type Specifies the type of Managed Service Identity that should be configured on this SQL Database. Possible value is `UserAssigned`.
*
* @return builder
*
*/
public Builder type(Output type) {
$.type = type;
return this;
}
/**
* @param type Specifies the type of Managed Service Identity that should be configured on this SQL Database. Possible value is `UserAssigned`.
*
* @return builder
*
*/
public Builder type(String type) {
return type(Output.of(type));
}
public DatabaseIdentityArgs build() {
if ($.identityIds == null) {
throw new MissingRequiredPropertyException("DatabaseIdentityArgs", "identityIds");
}
if ($.type == null) {
throw new MissingRequiredPropertyException("DatabaseIdentityArgs", "type");
}
return $;
}
}
}