com.pulumi.github.outputs.TeamSettingsReviewRequestDelegation 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.github.outputs;
import com.pulumi.core.annotations.CustomType;
import java.lang.Boolean;
import java.lang.Integer;
import java.lang.String;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;
@CustomType
public final class TeamSettingsReviewRequestDelegation {
/**
* @return The algorithm to use when assigning pull requests to team members. Supported values are `ROUND_ROBIN` and `LOAD_BALANCE`. Default value is `ROUND_ROBIN`
*
*/
private @Nullable String algorithm;
/**
* @return The number of team members to assign to a pull request
*
*/
private @Nullable Integer memberCount;
/**
* @return whether to notify the entire team when at least one member is also assigned to the pull request
*
*/
private @Nullable Boolean notify;
private TeamSettingsReviewRequestDelegation() {}
/**
* @return The algorithm to use when assigning pull requests to team members. Supported values are `ROUND_ROBIN` and `LOAD_BALANCE`. Default value is `ROUND_ROBIN`
*
*/
public Optional algorithm() {
return Optional.ofNullable(this.algorithm);
}
/**
* @return The number of team members to assign to a pull request
*
*/
public Optional memberCount() {
return Optional.ofNullable(this.memberCount);
}
/**
* @return whether to notify the entire team when at least one member is also assigned to the pull request
*
*/
public Optional notify_() {
return Optional.ofNullable(this.notify);
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(TeamSettingsReviewRequestDelegation defaults) {
return new Builder(defaults);
}
@CustomType.Builder
public static final class Builder {
private @Nullable String algorithm;
private @Nullable Integer memberCount;
private @Nullable Boolean notify;
public Builder() {}
public Builder(TeamSettingsReviewRequestDelegation defaults) {
Objects.requireNonNull(defaults);
this.algorithm = defaults.algorithm;
this.memberCount = defaults.memberCount;
this.notify = defaults.notify;
}
@CustomType.Setter
public Builder algorithm(@Nullable String algorithm) {
this.algorithm = algorithm;
return this;
}
@CustomType.Setter
public Builder memberCount(@Nullable Integer memberCount) {
this.memberCount = memberCount;
return this;
}
@CustomType.Setter("notify")
public Builder notify_(@Nullable Boolean notify) {
this.notify = notify;
return this;
}
public TeamSettingsReviewRequestDelegation build() {
final var o = new TeamSettingsReviewRequestDelegation();
o.algorithm = algorithm;
o.memberCount = memberCount;
o.notify = notify;
return o;
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy