com.pulumi.azurenative.hybridcompute.outputs.AgentUpgradeResponse 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.hybridcompute.outputs;
import com.pulumi.core.annotations.CustomType;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.Boolean;
import java.lang.String;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;
@CustomType
public final class AgentUpgradeResponse {
/**
* @return The correlation ID passed in from RSM per upgrade.
*
*/
private @Nullable String correlationId;
/**
* @return Specifies the version info w.r.t AgentUpgrade for the machine.
*
*/
private @Nullable String desiredVersion;
/**
* @return Specifies if RSM should try to upgrade this machine
*
*/
private @Nullable Boolean enableAutomaticUpgrade;
/**
* @return Failure message of last upgrade attempt if any.
*
*/
private String lastAttemptMessage;
/**
* @return Specifies the status of Agent Upgrade.
*
*/
private String lastAttemptStatus;
/**
* @return Timestamp of last upgrade attempt
*
*/
private String lastAttemptTimestamp;
private AgentUpgradeResponse() {}
/**
* @return The correlation ID passed in from RSM per upgrade.
*
*/
public Optional correlationId() {
return Optional.ofNullable(this.correlationId);
}
/**
* @return Specifies the version info w.r.t AgentUpgrade for the machine.
*
*/
public Optional desiredVersion() {
return Optional.ofNullable(this.desiredVersion);
}
/**
* @return Specifies if RSM should try to upgrade this machine
*
*/
public Optional enableAutomaticUpgrade() {
return Optional.ofNullable(this.enableAutomaticUpgrade);
}
/**
* @return Failure message of last upgrade attempt if any.
*
*/
public String lastAttemptMessage() {
return this.lastAttemptMessage;
}
/**
* @return Specifies the status of Agent Upgrade.
*
*/
public String lastAttemptStatus() {
return this.lastAttemptStatus;
}
/**
* @return Timestamp of last upgrade attempt
*
*/
public String lastAttemptTimestamp() {
return this.lastAttemptTimestamp;
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(AgentUpgradeResponse defaults) {
return new Builder(defaults);
}
@CustomType.Builder
public static final class Builder {
private @Nullable String correlationId;
private @Nullable String desiredVersion;
private @Nullable Boolean enableAutomaticUpgrade;
private String lastAttemptMessage;
private String lastAttemptStatus;
private String lastAttemptTimestamp;
public Builder() {}
public Builder(AgentUpgradeResponse defaults) {
Objects.requireNonNull(defaults);
this.correlationId = defaults.correlationId;
this.desiredVersion = defaults.desiredVersion;
this.enableAutomaticUpgrade = defaults.enableAutomaticUpgrade;
this.lastAttemptMessage = defaults.lastAttemptMessage;
this.lastAttemptStatus = defaults.lastAttemptStatus;
this.lastAttemptTimestamp = defaults.lastAttemptTimestamp;
}
@CustomType.Setter
public Builder correlationId(@Nullable String correlationId) {
this.correlationId = correlationId;
return this;
}
@CustomType.Setter
public Builder desiredVersion(@Nullable String desiredVersion) {
this.desiredVersion = desiredVersion;
return this;
}
@CustomType.Setter
public Builder enableAutomaticUpgrade(@Nullable Boolean enableAutomaticUpgrade) {
this.enableAutomaticUpgrade = enableAutomaticUpgrade;
return this;
}
@CustomType.Setter
public Builder lastAttemptMessage(String lastAttemptMessage) {
if (lastAttemptMessage == null) {
throw new MissingRequiredPropertyException("AgentUpgradeResponse", "lastAttemptMessage");
}
this.lastAttemptMessage = lastAttemptMessage;
return this;
}
@CustomType.Setter
public Builder lastAttemptStatus(String lastAttemptStatus) {
if (lastAttemptStatus == null) {
throw new MissingRequiredPropertyException("AgentUpgradeResponse", "lastAttemptStatus");
}
this.lastAttemptStatus = lastAttemptStatus;
return this;
}
@CustomType.Setter
public Builder lastAttemptTimestamp(String lastAttemptTimestamp) {
if (lastAttemptTimestamp == null) {
throw new MissingRequiredPropertyException("AgentUpgradeResponse", "lastAttemptTimestamp");
}
this.lastAttemptTimestamp = lastAttemptTimestamp;
return this;
}
public AgentUpgradeResponse build() {
final var _resultValue = new AgentUpgradeResponse();
_resultValue.correlationId = correlationId;
_resultValue.desiredVersion = desiredVersion;
_resultValue.enableAutomaticUpgrade = enableAutomaticUpgrade;
_resultValue.lastAttemptMessage = lastAttemptMessage;
_resultValue.lastAttemptStatus = lastAttemptStatus;
_resultValue.lastAttemptTimestamp = lastAttemptTimestamp;
return _resultValue;
}
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy