com.pulumi.azurenative.documentdb.outputs.ConflictResolutionPolicyResponse 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.documentdb.outputs;
import com.pulumi.core.annotations.CustomType;
import java.lang.String;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;
@CustomType
public final class ConflictResolutionPolicyResponse {
/**
* @return The conflict resolution path in the case of LastWriterWins mode.
*
*/
private @Nullable String conflictResolutionPath;
/**
* @return The procedure to resolve conflicts in the case of custom mode.
*
*/
private @Nullable String conflictResolutionProcedure;
/**
* @return Indicates the conflict resolution mode.
*
*/
private @Nullable String mode;
private ConflictResolutionPolicyResponse() {}
/**
* @return The conflict resolution path in the case of LastWriterWins mode.
*
*/
public Optional conflictResolutionPath() {
return Optional.ofNullable(this.conflictResolutionPath);
}
/**
* @return The procedure to resolve conflicts in the case of custom mode.
*
*/
public Optional conflictResolutionProcedure() {
return Optional.ofNullable(this.conflictResolutionProcedure);
}
/**
* @return Indicates the conflict resolution mode.
*
*/
public Optional mode() {
return Optional.ofNullable(this.mode);
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(ConflictResolutionPolicyResponse defaults) {
return new Builder(defaults);
}
@CustomType.Builder
public static final class Builder {
private @Nullable String conflictResolutionPath;
private @Nullable String conflictResolutionProcedure;
private @Nullable String mode;
public Builder() {}
public Builder(ConflictResolutionPolicyResponse defaults) {
Objects.requireNonNull(defaults);
this.conflictResolutionPath = defaults.conflictResolutionPath;
this.conflictResolutionProcedure = defaults.conflictResolutionProcedure;
this.mode = defaults.mode;
}
@CustomType.Setter
public Builder conflictResolutionPath(@Nullable String conflictResolutionPath) {
this.conflictResolutionPath = conflictResolutionPath;
return this;
}
@CustomType.Setter
public Builder conflictResolutionProcedure(@Nullable String conflictResolutionProcedure) {
this.conflictResolutionProcedure = conflictResolutionProcedure;
return this;
}
@CustomType.Setter
public Builder mode(@Nullable String mode) {
this.mode = mode;
return this;
}
public ConflictResolutionPolicyResponse build() {
final var _resultValue = new ConflictResolutionPolicyResponse();
_resultValue.conflictResolutionPath = conflictResolutionPath;
_resultValue.conflictResolutionProcedure = conflictResolutionProcedure;
_resultValue.mode = mode;
return _resultValue;
}
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy