com.pulumi.azurenative.compute.outputs.VirtualMachinePatchStatusResponse 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.compute.outputs;
import com.pulumi.azurenative.compute.outputs.AvailablePatchSummaryResponse;
import com.pulumi.azurenative.compute.outputs.InstanceViewStatusResponse;
import com.pulumi.azurenative.compute.outputs.LastPatchInstallationSummaryResponse;
import com.pulumi.core.annotations.CustomType;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.util.List;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;
@CustomType
public final class VirtualMachinePatchStatusResponse {
/**
* @return The available patch summary of the latest assessment operation for the virtual machine.
*
*/
private @Nullable AvailablePatchSummaryResponse availablePatchSummary;
/**
* @return The enablement status of the specified patchMode
*
*/
private List configurationStatuses;
/**
* @return The installation summary of the latest installation operation for the virtual machine.
*
*/
private @Nullable LastPatchInstallationSummaryResponse lastPatchInstallationSummary;
private VirtualMachinePatchStatusResponse() {}
/**
* @return The available patch summary of the latest assessment operation for the virtual machine.
*
*/
public Optional availablePatchSummary() {
return Optional.ofNullable(this.availablePatchSummary);
}
/**
* @return The enablement status of the specified patchMode
*
*/
public List configurationStatuses() {
return this.configurationStatuses;
}
/**
* @return The installation summary of the latest installation operation for the virtual machine.
*
*/
public Optional lastPatchInstallationSummary() {
return Optional.ofNullable(this.lastPatchInstallationSummary);
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(VirtualMachinePatchStatusResponse defaults) {
return new Builder(defaults);
}
@CustomType.Builder
public static final class Builder {
private @Nullable AvailablePatchSummaryResponse availablePatchSummary;
private List configurationStatuses;
private @Nullable LastPatchInstallationSummaryResponse lastPatchInstallationSummary;
public Builder() {}
public Builder(VirtualMachinePatchStatusResponse defaults) {
Objects.requireNonNull(defaults);
this.availablePatchSummary = defaults.availablePatchSummary;
this.configurationStatuses = defaults.configurationStatuses;
this.lastPatchInstallationSummary = defaults.lastPatchInstallationSummary;
}
@CustomType.Setter
public Builder availablePatchSummary(@Nullable AvailablePatchSummaryResponse availablePatchSummary) {
this.availablePatchSummary = availablePatchSummary;
return this;
}
@CustomType.Setter
public Builder configurationStatuses(List configurationStatuses) {
if (configurationStatuses == null) {
throw new MissingRequiredPropertyException("VirtualMachinePatchStatusResponse", "configurationStatuses");
}
this.configurationStatuses = configurationStatuses;
return this;
}
public Builder configurationStatuses(InstanceViewStatusResponse... configurationStatuses) {
return configurationStatuses(List.of(configurationStatuses));
}
@CustomType.Setter
public Builder lastPatchInstallationSummary(@Nullable LastPatchInstallationSummaryResponse lastPatchInstallationSummary) {
this.lastPatchInstallationSummary = lastPatchInstallationSummary;
return this;
}
public VirtualMachinePatchStatusResponse build() {
final var _resultValue = new VirtualMachinePatchStatusResponse();
_resultValue.availablePatchSummary = availablePatchSummary;
_resultValue.configurationStatuses = configurationStatuses;
_resultValue.lastPatchInstallationSummary = lastPatchInstallationSummary;
return _resultValue;
}
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy