com.pulumi.azurenative.compute.outputs.MaintenanceRedeployStatusResponse 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.core.annotations.CustomType;
import java.lang.Boolean;
import java.lang.String;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;
@CustomType
public final class MaintenanceRedeployStatusResponse {
/**
* @return True, if customer is allowed to perform Maintenance.
*
*/
private @Nullable Boolean isCustomerInitiatedMaintenanceAllowed;
/**
* @return Message returned for the last Maintenance Operation.
*
*/
private @Nullable String lastOperationMessage;
/**
* @return The Last Maintenance Operation Result Code.
*
*/
private @Nullable String lastOperationResultCode;
/**
* @return End Time for the Maintenance Window.
*
*/
private @Nullable String maintenanceWindowEndTime;
/**
* @return Start Time for the Maintenance Window.
*
*/
private @Nullable String maintenanceWindowStartTime;
/**
* @return End Time for the Pre Maintenance Window.
*
*/
private @Nullable String preMaintenanceWindowEndTime;
/**
* @return Start Time for the Pre Maintenance Window.
*
*/
private @Nullable String preMaintenanceWindowStartTime;
private MaintenanceRedeployStatusResponse() {}
/**
* @return True, if customer is allowed to perform Maintenance.
*
*/
public Optional isCustomerInitiatedMaintenanceAllowed() {
return Optional.ofNullable(this.isCustomerInitiatedMaintenanceAllowed);
}
/**
* @return Message returned for the last Maintenance Operation.
*
*/
public Optional lastOperationMessage() {
return Optional.ofNullable(this.lastOperationMessage);
}
/**
* @return The Last Maintenance Operation Result Code.
*
*/
public Optional lastOperationResultCode() {
return Optional.ofNullable(this.lastOperationResultCode);
}
/**
* @return End Time for the Maintenance Window.
*
*/
public Optional maintenanceWindowEndTime() {
return Optional.ofNullable(this.maintenanceWindowEndTime);
}
/**
* @return Start Time for the Maintenance Window.
*
*/
public Optional maintenanceWindowStartTime() {
return Optional.ofNullable(this.maintenanceWindowStartTime);
}
/**
* @return End Time for the Pre Maintenance Window.
*
*/
public Optional preMaintenanceWindowEndTime() {
return Optional.ofNullable(this.preMaintenanceWindowEndTime);
}
/**
* @return Start Time for the Pre Maintenance Window.
*
*/
public Optional preMaintenanceWindowStartTime() {
return Optional.ofNullable(this.preMaintenanceWindowStartTime);
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(MaintenanceRedeployStatusResponse defaults) {
return new Builder(defaults);
}
@CustomType.Builder
public static final class Builder {
private @Nullable Boolean isCustomerInitiatedMaintenanceAllowed;
private @Nullable String lastOperationMessage;
private @Nullable String lastOperationResultCode;
private @Nullable String maintenanceWindowEndTime;
private @Nullable String maintenanceWindowStartTime;
private @Nullable String preMaintenanceWindowEndTime;
private @Nullable String preMaintenanceWindowStartTime;
public Builder() {}
public Builder(MaintenanceRedeployStatusResponse defaults) {
Objects.requireNonNull(defaults);
this.isCustomerInitiatedMaintenanceAllowed = defaults.isCustomerInitiatedMaintenanceAllowed;
this.lastOperationMessage = defaults.lastOperationMessage;
this.lastOperationResultCode = defaults.lastOperationResultCode;
this.maintenanceWindowEndTime = defaults.maintenanceWindowEndTime;
this.maintenanceWindowStartTime = defaults.maintenanceWindowStartTime;
this.preMaintenanceWindowEndTime = defaults.preMaintenanceWindowEndTime;
this.preMaintenanceWindowStartTime = defaults.preMaintenanceWindowStartTime;
}
@CustomType.Setter
public Builder isCustomerInitiatedMaintenanceAllowed(@Nullable Boolean isCustomerInitiatedMaintenanceAllowed) {
this.isCustomerInitiatedMaintenanceAllowed = isCustomerInitiatedMaintenanceAllowed;
return this;
}
@CustomType.Setter
public Builder lastOperationMessage(@Nullable String lastOperationMessage) {
this.lastOperationMessage = lastOperationMessage;
return this;
}
@CustomType.Setter
public Builder lastOperationResultCode(@Nullable String lastOperationResultCode) {
this.lastOperationResultCode = lastOperationResultCode;
return this;
}
@CustomType.Setter
public Builder maintenanceWindowEndTime(@Nullable String maintenanceWindowEndTime) {
this.maintenanceWindowEndTime = maintenanceWindowEndTime;
return this;
}
@CustomType.Setter
public Builder maintenanceWindowStartTime(@Nullable String maintenanceWindowStartTime) {
this.maintenanceWindowStartTime = maintenanceWindowStartTime;
return this;
}
@CustomType.Setter
public Builder preMaintenanceWindowEndTime(@Nullable String preMaintenanceWindowEndTime) {
this.preMaintenanceWindowEndTime = preMaintenanceWindowEndTime;
return this;
}
@CustomType.Setter
public Builder preMaintenanceWindowStartTime(@Nullable String preMaintenanceWindowStartTime) {
this.preMaintenanceWindowStartTime = preMaintenanceWindowStartTime;
return this;
}
public MaintenanceRedeployStatusResponse build() {
final var _resultValue = new MaintenanceRedeployStatusResponse();
_resultValue.isCustomerInitiatedMaintenanceAllowed = isCustomerInitiatedMaintenanceAllowed;
_resultValue.lastOperationMessage = lastOperationMessage;
_resultValue.lastOperationResultCode = lastOperationResultCode;
_resultValue.maintenanceWindowEndTime = maintenanceWindowEndTime;
_resultValue.maintenanceWindowStartTime = maintenanceWindowStartTime;
_resultValue.preMaintenanceWindowEndTime = preMaintenanceWindowEndTime;
_resultValue.preMaintenanceWindowStartTime = preMaintenanceWindowStartTime;
return _resultValue;
}
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy