com.pulumi.azurenative.datamigration.outputs.MongoDbCollectionSettingsResponse 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.datamigration.outputs;
import com.pulumi.azurenative.datamigration.outputs.MongoDbShardKeySettingResponse;
import com.pulumi.core.annotations.CustomType;
import java.lang.Boolean;
import java.lang.Integer;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;
@CustomType
public final class MongoDbCollectionSettingsResponse {
/**
* @return Whether the migrator is allowed to drop the target collection in the course of performing a migration. The default is true.
*
*/
private @Nullable Boolean canDelete;
/**
* @return Describes a MongoDB shard key
*
*/
private @Nullable MongoDbShardKeySettingResponse shardKey;
/**
* @return The RUs that should be configured on a CosmosDB target, or null to use the default. This has no effect on non-CosmosDB targets.
*
*/
private @Nullable Integer targetRUs;
private MongoDbCollectionSettingsResponse() {}
/**
* @return Whether the migrator is allowed to drop the target collection in the course of performing a migration. The default is true.
*
*/
public Optional canDelete() {
return Optional.ofNullable(this.canDelete);
}
/**
* @return Describes a MongoDB shard key
*
*/
public Optional shardKey() {
return Optional.ofNullable(this.shardKey);
}
/**
* @return The RUs that should be configured on a CosmosDB target, or null to use the default. This has no effect on non-CosmosDB targets.
*
*/
public Optional targetRUs() {
return Optional.ofNullable(this.targetRUs);
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(MongoDbCollectionSettingsResponse defaults) {
return new Builder(defaults);
}
@CustomType.Builder
public static final class Builder {
private @Nullable Boolean canDelete;
private @Nullable MongoDbShardKeySettingResponse shardKey;
private @Nullable Integer targetRUs;
public Builder() {}
public Builder(MongoDbCollectionSettingsResponse defaults) {
Objects.requireNonNull(defaults);
this.canDelete = defaults.canDelete;
this.shardKey = defaults.shardKey;
this.targetRUs = defaults.targetRUs;
}
@CustomType.Setter
public Builder canDelete(@Nullable Boolean canDelete) {
this.canDelete = canDelete;
return this;
}
@CustomType.Setter
public Builder shardKey(@Nullable MongoDbShardKeySettingResponse shardKey) {
this.shardKey = shardKey;
return this;
}
@CustomType.Setter
public Builder targetRUs(@Nullable Integer targetRUs) {
this.targetRUs = targetRUs;
return this;
}
public MongoDbCollectionSettingsResponse build() {
final var _resultValue = new MongoDbCollectionSettingsResponse();
_resultValue.canDelete = canDelete;
_resultValue.shardKey = shardKey;
_resultValue.targetRUs = targetRUs;
return _resultValue;
}
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy