
com.pulumi.azurenative.dbforpostgresql.inputs.GetMigrationPlainArgs Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of azure-native Show documentation
Show all versions of azure-native Show documentation
A native Pulumi package for creating and managing Azure resources.
// *** 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.dbforpostgresql.inputs;
import com.pulumi.core.annotations.Import;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.String;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;
public final class GetMigrationPlainArgs extends com.pulumi.resources.InvokeArgs {
public static final GetMigrationPlainArgs Empty = new GetMigrationPlainArgs();
/**
* The name of the migration.
*
*/
@Import(name="migrationName", required=true)
private String migrationName;
/**
* @return The name of the migration.
*
*/
public String migrationName() {
return this.migrationName;
}
/**
* The resource group name of the target database server.
*
*/
@Import(name="resourceGroupName", required=true)
private String resourceGroupName;
/**
* @return The resource group name of the target database server.
*
*/
public String resourceGroupName() {
return this.resourceGroupName;
}
/**
* The subscription ID of the target database server.
*
*/
@Import(name="subscriptionId")
private @Nullable String subscriptionId;
/**
* @return The subscription ID of the target database server.
*
*/
public Optional subscriptionId() {
return Optional.ofNullable(this.subscriptionId);
}
/**
* The name of the target database server.
*
*/
@Import(name="targetDbServerName", required=true)
private String targetDbServerName;
/**
* @return The name of the target database server.
*
*/
public String targetDbServerName() {
return this.targetDbServerName;
}
private GetMigrationPlainArgs() {}
private GetMigrationPlainArgs(GetMigrationPlainArgs $) {
this.migrationName = $.migrationName;
this.resourceGroupName = $.resourceGroupName;
this.subscriptionId = $.subscriptionId;
this.targetDbServerName = $.targetDbServerName;
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(GetMigrationPlainArgs defaults) {
return new Builder(defaults);
}
public static final class Builder {
private GetMigrationPlainArgs $;
public Builder() {
$ = new GetMigrationPlainArgs();
}
public Builder(GetMigrationPlainArgs defaults) {
$ = new GetMigrationPlainArgs(Objects.requireNonNull(defaults));
}
/**
* @param migrationName The name of the migration.
*
* @return builder
*
*/
public Builder migrationName(String migrationName) {
$.migrationName = migrationName;
return this;
}
/**
* @param resourceGroupName The resource group name of the target database server.
*
* @return builder
*
*/
public Builder resourceGroupName(String resourceGroupName) {
$.resourceGroupName = resourceGroupName;
return this;
}
/**
* @param subscriptionId The subscription ID of the target database server.
*
* @return builder
*
*/
public Builder subscriptionId(@Nullable String subscriptionId) {
$.subscriptionId = subscriptionId;
return this;
}
/**
* @param targetDbServerName The name of the target database server.
*
* @return builder
*
*/
public Builder targetDbServerName(String targetDbServerName) {
$.targetDbServerName = targetDbServerName;
return this;
}
public GetMigrationPlainArgs build() {
if ($.migrationName == null) {
throw new MissingRequiredPropertyException("GetMigrationPlainArgs", "migrationName");
}
if ($.resourceGroupName == null) {
throw new MissingRequiredPropertyException("GetMigrationPlainArgs", "resourceGroupName");
}
if ($.targetDbServerName == null) {
throw new MissingRequiredPropertyException("GetMigrationPlainArgs", "targetDbServerName");
}
return $;
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy