com.pulumi.azurenative.networkcloud.outputs.VirtualMachinePlacementHintResponse 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.networkcloud.outputs;
import com.pulumi.core.annotations.CustomType;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.String;
import java.util.Objects;
@CustomType
public final class VirtualMachinePlacementHintResponse {
/**
* @return The specification of whether this hint supports affinity or anti-affinity with the referenced resources.
*
*/
private String hintType;
/**
* @return The resource ID of the target object that the placement hints will be checked against, e.g., the bare metal node to host the virtual machine.
*
*/
private String resourceId;
/**
* @return The indicator of whether the hint is a hard or soft requirement during scheduling.
*
*/
private String schedulingExecution;
/**
* @return The scope for the virtual machine affinity or anti-affinity placement hint. It should always be "Machine" in the case of node affinity.
*
*/
private String scope;
private VirtualMachinePlacementHintResponse() {}
/**
* @return The specification of whether this hint supports affinity or anti-affinity with the referenced resources.
*
*/
public String hintType() {
return this.hintType;
}
/**
* @return The resource ID of the target object that the placement hints will be checked against, e.g., the bare metal node to host the virtual machine.
*
*/
public String resourceId() {
return this.resourceId;
}
/**
* @return The indicator of whether the hint is a hard or soft requirement during scheduling.
*
*/
public String schedulingExecution() {
return this.schedulingExecution;
}
/**
* @return The scope for the virtual machine affinity or anti-affinity placement hint. It should always be "Machine" in the case of node affinity.
*
*/
public String scope() {
return this.scope;
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(VirtualMachinePlacementHintResponse defaults) {
return new Builder(defaults);
}
@CustomType.Builder
public static final class Builder {
private String hintType;
private String resourceId;
private String schedulingExecution;
private String scope;
public Builder() {}
public Builder(VirtualMachinePlacementHintResponse defaults) {
Objects.requireNonNull(defaults);
this.hintType = defaults.hintType;
this.resourceId = defaults.resourceId;
this.schedulingExecution = defaults.schedulingExecution;
this.scope = defaults.scope;
}
@CustomType.Setter
public Builder hintType(String hintType) {
if (hintType == null) {
throw new MissingRequiredPropertyException("VirtualMachinePlacementHintResponse", "hintType");
}
this.hintType = hintType;
return this;
}
@CustomType.Setter
public Builder resourceId(String resourceId) {
if (resourceId == null) {
throw new MissingRequiredPropertyException("VirtualMachinePlacementHintResponse", "resourceId");
}
this.resourceId = resourceId;
return this;
}
@CustomType.Setter
public Builder schedulingExecution(String schedulingExecution) {
if (schedulingExecution == null) {
throw new MissingRequiredPropertyException("VirtualMachinePlacementHintResponse", "schedulingExecution");
}
this.schedulingExecution = schedulingExecution;
return this;
}
@CustomType.Setter
public Builder scope(String scope) {
if (scope == null) {
throw new MissingRequiredPropertyException("VirtualMachinePlacementHintResponse", "scope");
}
this.scope = scope;
return this;
}
public VirtualMachinePlacementHintResponse build() {
final var _resultValue = new VirtualMachinePlacementHintResponse();
_resultValue.hintType = hintType;
_resultValue.resourceId = resourceId;
_resultValue.schedulingExecution = schedulingExecution;
_resultValue.scope = scope;
return _resultValue;
}
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy