com.pulumi.azurenative.dataprotection.inputs.DataStoreInfoBaseArgs 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.dataprotection.inputs;
import com.pulumi.azurenative.dataprotection.enums.DataStoreTypes;
import com.pulumi.core.Either;
import com.pulumi.core.Output;
import com.pulumi.core.annotations.Import;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.String;
import java.util.Objects;
/**
* DataStoreInfo base
*
*/
public final class DataStoreInfoBaseArgs extends com.pulumi.resources.ResourceArgs {
public static final DataStoreInfoBaseArgs Empty = new DataStoreInfoBaseArgs();
/**
* type of datastore; Operational/Vault/Archive
*
*/
@Import(name="dataStoreType", required=true)
private Output> dataStoreType;
/**
* @return type of datastore; Operational/Vault/Archive
*
*/
public Output> dataStoreType() {
return this.dataStoreType;
}
/**
* Type of Datasource object, used to initialize the right inherited type
*
*/
@Import(name="objectType", required=true)
private Output objectType;
/**
* @return Type of Datasource object, used to initialize the right inherited type
*
*/
public Output objectType() {
return this.objectType;
}
private DataStoreInfoBaseArgs() {}
private DataStoreInfoBaseArgs(DataStoreInfoBaseArgs $) {
this.dataStoreType = $.dataStoreType;
this.objectType = $.objectType;
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(DataStoreInfoBaseArgs defaults) {
return new Builder(defaults);
}
public static final class Builder {
private DataStoreInfoBaseArgs $;
public Builder() {
$ = new DataStoreInfoBaseArgs();
}
public Builder(DataStoreInfoBaseArgs defaults) {
$ = new DataStoreInfoBaseArgs(Objects.requireNonNull(defaults));
}
/**
* @param dataStoreType type of datastore; Operational/Vault/Archive
*
* @return builder
*
*/
public Builder dataStoreType(Output> dataStoreType) {
$.dataStoreType = dataStoreType;
return this;
}
/**
* @param dataStoreType type of datastore; Operational/Vault/Archive
*
* @return builder
*
*/
public Builder dataStoreType(Either dataStoreType) {
return dataStoreType(Output.of(dataStoreType));
}
/**
* @param dataStoreType type of datastore; Operational/Vault/Archive
*
* @return builder
*
*/
public Builder dataStoreType(String dataStoreType) {
return dataStoreType(Either.ofLeft(dataStoreType));
}
/**
* @param dataStoreType type of datastore; Operational/Vault/Archive
*
* @return builder
*
*/
public Builder dataStoreType(DataStoreTypes dataStoreType) {
return dataStoreType(Either.ofRight(dataStoreType));
}
/**
* @param objectType Type of Datasource object, used to initialize the right inherited type
*
* @return builder
*
*/
public Builder objectType(Output objectType) {
$.objectType = objectType;
return this;
}
/**
* @param objectType Type of Datasource object, used to initialize the right inherited type
*
* @return builder
*
*/
public Builder objectType(String objectType) {
return objectType(Output.of(objectType));
}
public DataStoreInfoBaseArgs build() {
if ($.dataStoreType == null) {
throw new MissingRequiredPropertyException("DataStoreInfoBaseArgs", "dataStoreType");
}
if ($.objectType == null) {
throw new MissingRequiredPropertyException("DataStoreInfoBaseArgs", "objectType");
}
return $;
}
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy