
com.pulumi.azurenative.recoveryservices.outputs.DistributedNodesInfoResponse 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.recoveryservices.outputs;
import com.pulumi.azurenative.recoveryservices.outputs.ErrorDetailResponse;
import com.pulumi.core.annotations.CustomType;
import java.lang.String;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;
@CustomType
public final class DistributedNodesInfoResponse {
/**
* @return Error Details if the Status is non-success.
*
*/
private @Nullable ErrorDetailResponse errorDetail;
/**
* @return Name of the node under a distributed container.
*
*/
private @Nullable String nodeName;
/**
* @return ARM resource id of the node
*
*/
private @Nullable String sourceResourceId;
/**
* @return Status of this Node.
* Failed | Succeeded
*
*/
private @Nullable String status;
private DistributedNodesInfoResponse() {}
/**
* @return Error Details if the Status is non-success.
*
*/
public Optional errorDetail() {
return Optional.ofNullable(this.errorDetail);
}
/**
* @return Name of the node under a distributed container.
*
*/
public Optional nodeName() {
return Optional.ofNullable(this.nodeName);
}
/**
* @return ARM resource id of the node
*
*/
public Optional sourceResourceId() {
return Optional.ofNullable(this.sourceResourceId);
}
/**
* @return Status of this Node.
* Failed | Succeeded
*
*/
public Optional status() {
return Optional.ofNullable(this.status);
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(DistributedNodesInfoResponse defaults) {
return new Builder(defaults);
}
@CustomType.Builder
public static final class Builder {
private @Nullable ErrorDetailResponse errorDetail;
private @Nullable String nodeName;
private @Nullable String sourceResourceId;
private @Nullable String status;
public Builder() {}
public Builder(DistributedNodesInfoResponse defaults) {
Objects.requireNonNull(defaults);
this.errorDetail = defaults.errorDetail;
this.nodeName = defaults.nodeName;
this.sourceResourceId = defaults.sourceResourceId;
this.status = defaults.status;
}
@CustomType.Setter
public Builder errorDetail(@Nullable ErrorDetailResponse errorDetail) {
this.errorDetail = errorDetail;
return this;
}
@CustomType.Setter
public Builder nodeName(@Nullable String nodeName) {
this.nodeName = nodeName;
return this;
}
@CustomType.Setter
public Builder sourceResourceId(@Nullable String sourceResourceId) {
this.sourceResourceId = sourceResourceId;
return this;
}
@CustomType.Setter
public Builder status(@Nullable String status) {
this.status = status;
return this;
}
public DistributedNodesInfoResponse build() {
final var _resultValue = new DistributedNodesInfoResponse();
_resultValue.errorDetail = errorDetail;
_resultValue.nodeName = nodeName;
_resultValue.sourceResourceId = sourceResourceId;
_resultValue.status = status;
return _resultValue;
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy