
com.pulumi.azurenative.machinelearningservices.outputs.RandomSamplingAlgorithmResponse Maven / Gradle / Ivy
// *** 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.machinelearningservices.outputs;
import com.pulumi.core.annotations.CustomType;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.Integer;
import java.lang.String;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;
@CustomType
public final class RandomSamplingAlgorithmResponse {
/**
* @return The specific type of random algorithm
*
*/
private @Nullable String rule;
/**
* @return
* Expected value is 'Random'.
*
*/
private String samplingAlgorithmType;
/**
* @return An optional integer to use as the seed for random number generation
*
*/
private @Nullable Integer seed;
private RandomSamplingAlgorithmResponse() {}
/**
* @return The specific type of random algorithm
*
*/
public Optional rule() {
return Optional.ofNullable(this.rule);
}
/**
* @return
* Expected value is 'Random'.
*
*/
public String samplingAlgorithmType() {
return this.samplingAlgorithmType;
}
/**
* @return An optional integer to use as the seed for random number generation
*
*/
public Optional seed() {
return Optional.ofNullable(this.seed);
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(RandomSamplingAlgorithmResponse defaults) {
return new Builder(defaults);
}
@CustomType.Builder
public static final class Builder {
private @Nullable String rule;
private String samplingAlgorithmType;
private @Nullable Integer seed;
public Builder() {}
public Builder(RandomSamplingAlgorithmResponse defaults) {
Objects.requireNonNull(defaults);
this.rule = defaults.rule;
this.samplingAlgorithmType = defaults.samplingAlgorithmType;
this.seed = defaults.seed;
}
@CustomType.Setter
public Builder rule(@Nullable String rule) {
this.rule = rule;
return this;
}
@CustomType.Setter
public Builder samplingAlgorithmType(String samplingAlgorithmType) {
if (samplingAlgorithmType == null) {
throw new MissingRequiredPropertyException("RandomSamplingAlgorithmResponse", "samplingAlgorithmType");
}
this.samplingAlgorithmType = samplingAlgorithmType;
return this;
}
@CustomType.Setter
public Builder seed(@Nullable Integer seed) {
this.seed = seed;
return this;
}
public RandomSamplingAlgorithmResponse build() {
final var _resultValue = new RandomSamplingAlgorithmResponse();
_resultValue.rule = rule;
_resultValue.samplingAlgorithmType = samplingAlgorithmType;
_resultValue.seed = seed;
return _resultValue;
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy