com.pulumi.googlenative.vmmigration.v1.outputs.SchedulingNodeAffinityResponse 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.googlenative.vmmigration.v1.outputs;
import com.pulumi.core.annotations.CustomType;
import java.lang.String;
import java.util.List;
import java.util.Objects;
@CustomType
public final class SchedulingNodeAffinityResponse {
/**
* @return The label key of Node resource to reference.
*
*/
private String key;
/**
* @return The operator to use for the node resources specified in the `values` parameter.
*
*/
private String operator;
/**
* @return Corresponds to the label values of Node resource.
*
*/
private List values;
private SchedulingNodeAffinityResponse() {}
/**
* @return The label key of Node resource to reference.
*
*/
public String key() {
return this.key;
}
/**
* @return The operator to use for the node resources specified in the `values` parameter.
*
*/
public String operator() {
return this.operator;
}
/**
* @return Corresponds to the label values of Node resource.
*
*/
public List values() {
return this.values;
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(SchedulingNodeAffinityResponse defaults) {
return new Builder(defaults);
}
@CustomType.Builder
public static final class Builder {
private String key;
private String operator;
private List values;
public Builder() {}
public Builder(SchedulingNodeAffinityResponse defaults) {
Objects.requireNonNull(defaults);
this.key = defaults.key;
this.operator = defaults.operator;
this.values = defaults.values;
}
@CustomType.Setter
public Builder key(String key) {
this.key = Objects.requireNonNull(key);
return this;
}
@CustomType.Setter
public Builder operator(String operator) {
this.operator = Objects.requireNonNull(operator);
return this;
}
@CustomType.Setter
public Builder values(List values) {
this.values = Objects.requireNonNull(values);
return this;
}
public Builder values(String... values) {
return values(List.of(values));
}
public SchedulingNodeAffinityResponse build() {
final var o = new SchedulingNodeAffinityResponse();
o.key = key;
o.operator = operator;
o.values = values;
return o;
}
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy