
com.pulumi.azurenative.migrate.outputs.WorkloadInstanceModelPropertiesResponse 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.azurenative.migrate.outputs;
import com.pulumi.azurenative.migrate.outputs.ApacheTomcatWorkloadInstanceModelCustomPropertiesResponse;
import com.pulumi.azurenative.migrate.outputs.HealthErrorModelResponse;
import com.pulumi.azurenative.migrate.outputs.IISWorkloadInstanceModelCustomPropertiesResponse;
import com.pulumi.azurenative.migrate.outputs.WorkloadInstanceModelPropertiesResponseCurrentJob;
import com.pulumi.core.Either;
import com.pulumi.core.annotations.CustomType;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.String;
import java.util.List;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;
@CustomType
public final class WorkloadInstanceModelPropertiesResponse {
/**
* @return Gets or sets the allowed scenarios on the workload instance.
*
*/
private List allowedOperations;
private WorkloadInstanceModelPropertiesResponseCurrentJob currentJob;
/**
* @return Workload instance model custom properties.
*
*/
private @Nullable Either customProperties;
/**
* @return Gets or sets the display name.
*
*/
private @Nullable String displayName;
/**
* @return Gets or sets the list of health errors.
*
*/
private List healthErrors;
/**
* @return Gets or sets the Last successful replication cycle time.
*
*/
private String lastSuccessfulReplicationCycleTime;
/**
* @return Gets or Sets the master site name.
*
*/
private @Nullable String masterSiteName;
/**
* @return Gets or sets the migrate agent id associated with the workload instance.
*
*/
private @Nullable String migrateAgentId;
/**
* @return Gets or sets the workload instance name.
*
*/
private @Nullable String name;
/**
* @return Gets or sets the provisioning state of the workload instance.
*
*/
private String provisioningState;
/**
* @return Gets or sets the replication health of the workload instance.
*
*/
private String replicationHealth;
/**
* @return Gets or sets the replication state of the workload instance.
*
*/
private String replicationStatus;
/**
* @return Gets or sets the workload replication state description.
*
*/
private String replicationStatusDescription;
/**
* @return Gets or sets the source name.
*
*/
private @Nullable String sourceName;
/**
* @return Gets or sets the source platform.
*
*/
private @Nullable String sourcePlatform;
private WorkloadInstanceModelPropertiesResponse() {}
/**
* @return Gets or sets the allowed scenarios on the workload instance.
*
*/
public List allowedOperations() {
return this.allowedOperations;
}
public WorkloadInstanceModelPropertiesResponseCurrentJob currentJob() {
return this.currentJob;
}
/**
* @return Workload instance model custom properties.
*
*/
public Optional> customProperties() {
return Optional.ofNullable(this.customProperties);
}
/**
* @return Gets or sets the display name.
*
*/
public Optional displayName() {
return Optional.ofNullable(this.displayName);
}
/**
* @return Gets or sets the list of health errors.
*
*/
public List healthErrors() {
return this.healthErrors;
}
/**
* @return Gets or sets the Last successful replication cycle time.
*
*/
public String lastSuccessfulReplicationCycleTime() {
return this.lastSuccessfulReplicationCycleTime;
}
/**
* @return Gets or Sets the master site name.
*
*/
public Optional masterSiteName() {
return Optional.ofNullable(this.masterSiteName);
}
/**
* @return Gets or sets the migrate agent id associated with the workload instance.
*
*/
public Optional migrateAgentId() {
return Optional.ofNullable(this.migrateAgentId);
}
/**
* @return Gets or sets the workload instance name.
*
*/
public Optional name() {
return Optional.ofNullable(this.name);
}
/**
* @return Gets or sets the provisioning state of the workload instance.
*
*/
public String provisioningState() {
return this.provisioningState;
}
/**
* @return Gets or sets the replication health of the workload instance.
*
*/
public String replicationHealth() {
return this.replicationHealth;
}
/**
* @return Gets or sets the replication state of the workload instance.
*
*/
public String replicationStatus() {
return this.replicationStatus;
}
/**
* @return Gets or sets the workload replication state description.
*
*/
public String replicationStatusDescription() {
return this.replicationStatusDescription;
}
/**
* @return Gets or sets the source name.
*
*/
public Optional sourceName() {
return Optional.ofNullable(this.sourceName);
}
/**
* @return Gets or sets the source platform.
*
*/
public Optional sourcePlatform() {
return Optional.ofNullable(this.sourcePlatform);
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(WorkloadInstanceModelPropertiesResponse defaults) {
return new Builder(defaults);
}
@CustomType.Builder
public static final class Builder {
private List allowedOperations;
private WorkloadInstanceModelPropertiesResponseCurrentJob currentJob;
private @Nullable Either customProperties;
private @Nullable String displayName;
private List healthErrors;
private String lastSuccessfulReplicationCycleTime;
private @Nullable String masterSiteName;
private @Nullable String migrateAgentId;
private @Nullable String name;
private String provisioningState;
private String replicationHealth;
private String replicationStatus;
private String replicationStatusDescription;
private @Nullable String sourceName;
private @Nullable String sourcePlatform;
public Builder() {}
public Builder(WorkloadInstanceModelPropertiesResponse defaults) {
Objects.requireNonNull(defaults);
this.allowedOperations = defaults.allowedOperations;
this.currentJob = defaults.currentJob;
this.customProperties = defaults.customProperties;
this.displayName = defaults.displayName;
this.healthErrors = defaults.healthErrors;
this.lastSuccessfulReplicationCycleTime = defaults.lastSuccessfulReplicationCycleTime;
this.masterSiteName = defaults.masterSiteName;
this.migrateAgentId = defaults.migrateAgentId;
this.name = defaults.name;
this.provisioningState = defaults.provisioningState;
this.replicationHealth = defaults.replicationHealth;
this.replicationStatus = defaults.replicationStatus;
this.replicationStatusDescription = defaults.replicationStatusDescription;
this.sourceName = defaults.sourceName;
this.sourcePlatform = defaults.sourcePlatform;
}
@CustomType.Setter
public Builder allowedOperations(List allowedOperations) {
if (allowedOperations == null) {
throw new MissingRequiredPropertyException("WorkloadInstanceModelPropertiesResponse", "allowedOperations");
}
this.allowedOperations = allowedOperations;
return this;
}
public Builder allowedOperations(String... allowedOperations) {
return allowedOperations(List.of(allowedOperations));
}
@CustomType.Setter
public Builder currentJob(WorkloadInstanceModelPropertiesResponseCurrentJob currentJob) {
if (currentJob == null) {
throw new MissingRequiredPropertyException("WorkloadInstanceModelPropertiesResponse", "currentJob");
}
this.currentJob = currentJob;
return this;
}
@CustomType.Setter
public Builder customProperties(@Nullable Either customProperties) {
this.customProperties = customProperties;
return this;
}
@CustomType.Setter
public Builder displayName(@Nullable String displayName) {
this.displayName = displayName;
return this;
}
@CustomType.Setter
public Builder healthErrors(List healthErrors) {
if (healthErrors == null) {
throw new MissingRequiredPropertyException("WorkloadInstanceModelPropertiesResponse", "healthErrors");
}
this.healthErrors = healthErrors;
return this;
}
public Builder healthErrors(HealthErrorModelResponse... healthErrors) {
return healthErrors(List.of(healthErrors));
}
@CustomType.Setter
public Builder lastSuccessfulReplicationCycleTime(String lastSuccessfulReplicationCycleTime) {
if (lastSuccessfulReplicationCycleTime == null) {
throw new MissingRequiredPropertyException("WorkloadInstanceModelPropertiesResponse", "lastSuccessfulReplicationCycleTime");
}
this.lastSuccessfulReplicationCycleTime = lastSuccessfulReplicationCycleTime;
return this;
}
@CustomType.Setter
public Builder masterSiteName(@Nullable String masterSiteName) {
this.masterSiteName = masterSiteName;
return this;
}
@CustomType.Setter
public Builder migrateAgentId(@Nullable String migrateAgentId) {
this.migrateAgentId = migrateAgentId;
return this;
}
@CustomType.Setter
public Builder name(@Nullable String name) {
this.name = name;
return this;
}
@CustomType.Setter
public Builder provisioningState(String provisioningState) {
if (provisioningState == null) {
throw new MissingRequiredPropertyException("WorkloadInstanceModelPropertiesResponse", "provisioningState");
}
this.provisioningState = provisioningState;
return this;
}
@CustomType.Setter
public Builder replicationHealth(String replicationHealth) {
if (replicationHealth == null) {
throw new MissingRequiredPropertyException("WorkloadInstanceModelPropertiesResponse", "replicationHealth");
}
this.replicationHealth = replicationHealth;
return this;
}
@CustomType.Setter
public Builder replicationStatus(String replicationStatus) {
if (replicationStatus == null) {
throw new MissingRequiredPropertyException("WorkloadInstanceModelPropertiesResponse", "replicationStatus");
}
this.replicationStatus = replicationStatus;
return this;
}
@CustomType.Setter
public Builder replicationStatusDescription(String replicationStatusDescription) {
if (replicationStatusDescription == null) {
throw new MissingRequiredPropertyException("WorkloadInstanceModelPropertiesResponse", "replicationStatusDescription");
}
this.replicationStatusDescription = replicationStatusDescription;
return this;
}
@CustomType.Setter
public Builder sourceName(@Nullable String sourceName) {
this.sourceName = sourceName;
return this;
}
@CustomType.Setter
public Builder sourcePlatform(@Nullable String sourcePlatform) {
this.sourcePlatform = sourcePlatform;
return this;
}
public WorkloadInstanceModelPropertiesResponse build() {
final var _resultValue = new WorkloadInstanceModelPropertiesResponse();
_resultValue.allowedOperations = allowedOperations;
_resultValue.currentJob = currentJob;
_resultValue.customProperties = customProperties;
_resultValue.displayName = displayName;
_resultValue.healthErrors = healthErrors;
_resultValue.lastSuccessfulReplicationCycleTime = lastSuccessfulReplicationCycleTime;
_resultValue.masterSiteName = masterSiteName;
_resultValue.migrateAgentId = migrateAgentId;
_resultValue.name = name;
_resultValue.provisioningState = provisioningState;
_resultValue.replicationHealth = replicationHealth;
_resultValue.replicationStatus = replicationStatus;
_resultValue.replicationStatusDescription = replicationStatusDescription;
_resultValue.sourceName = sourceName;
_resultValue.sourcePlatform = sourcePlatform;
return _resultValue;
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy