
com.pulumi.azurenative.automation.outputs.GetHybridRunbookWorkerResult 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.automation.outputs;
import com.pulumi.azurenative.automation.outputs.SystemDataResponse;
import com.pulumi.core.annotations.CustomType;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.String;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;
@CustomType
public final class GetHybridRunbookWorkerResult {
/**
* @return Fully qualified resource Id for the resource
*
*/
private String id;
/**
* @return Gets or sets the assigned machine IP address.
*
*/
private @Nullable String ip;
/**
* @return Last Heartbeat from the Worker
*
*/
private @Nullable String lastSeenDateTime;
/**
* @return The name of the resource
*
*/
private String name;
/**
* @return Gets or sets the registration time of the worker machine.
*
*/
private @Nullable String registeredDateTime;
/**
* @return Resource system metadata.
*
*/
private SystemDataResponse systemData;
/**
* @return The type of the resource.
*
*/
private String type;
/**
* @return Azure Resource Manager Id for a virtual machine.
*
*/
private @Nullable String vmResourceId;
/**
* @return Name of the HybridWorker.
*
*/
private @Nullable String workerName;
/**
* @return Type of the HybridWorker.
*
*/
private @Nullable String workerType;
private GetHybridRunbookWorkerResult() {}
/**
* @return Fully qualified resource Id for the resource
*
*/
public String id() {
return this.id;
}
/**
* @return Gets or sets the assigned machine IP address.
*
*/
public Optional ip() {
return Optional.ofNullable(this.ip);
}
/**
* @return Last Heartbeat from the Worker
*
*/
public Optional lastSeenDateTime() {
return Optional.ofNullable(this.lastSeenDateTime);
}
/**
* @return The name of the resource
*
*/
public String name() {
return this.name;
}
/**
* @return Gets or sets the registration time of the worker machine.
*
*/
public Optional registeredDateTime() {
return Optional.ofNullable(this.registeredDateTime);
}
/**
* @return Resource system metadata.
*
*/
public SystemDataResponse systemData() {
return this.systemData;
}
/**
* @return The type of the resource.
*
*/
public String type() {
return this.type;
}
/**
* @return Azure Resource Manager Id for a virtual machine.
*
*/
public Optional vmResourceId() {
return Optional.ofNullable(this.vmResourceId);
}
/**
* @return Name of the HybridWorker.
*
*/
public Optional workerName() {
return Optional.ofNullable(this.workerName);
}
/**
* @return Type of the HybridWorker.
*
*/
public Optional workerType() {
return Optional.ofNullable(this.workerType);
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(GetHybridRunbookWorkerResult defaults) {
return new Builder(defaults);
}
@CustomType.Builder
public static final class Builder {
private String id;
private @Nullable String ip;
private @Nullable String lastSeenDateTime;
private String name;
private @Nullable String registeredDateTime;
private SystemDataResponse systemData;
private String type;
private @Nullable String vmResourceId;
private @Nullable String workerName;
private @Nullable String workerType;
public Builder() {}
public Builder(GetHybridRunbookWorkerResult defaults) {
Objects.requireNonNull(defaults);
this.id = defaults.id;
this.ip = defaults.ip;
this.lastSeenDateTime = defaults.lastSeenDateTime;
this.name = defaults.name;
this.registeredDateTime = defaults.registeredDateTime;
this.systemData = defaults.systemData;
this.type = defaults.type;
this.vmResourceId = defaults.vmResourceId;
this.workerName = defaults.workerName;
this.workerType = defaults.workerType;
}
@CustomType.Setter
public Builder id(String id) {
if (id == null) {
throw new MissingRequiredPropertyException("GetHybridRunbookWorkerResult", "id");
}
this.id = id;
return this;
}
@CustomType.Setter
public Builder ip(@Nullable String ip) {
this.ip = ip;
return this;
}
@CustomType.Setter
public Builder lastSeenDateTime(@Nullable String lastSeenDateTime) {
this.lastSeenDateTime = lastSeenDateTime;
return this;
}
@CustomType.Setter
public Builder name(String name) {
if (name == null) {
throw new MissingRequiredPropertyException("GetHybridRunbookWorkerResult", "name");
}
this.name = name;
return this;
}
@CustomType.Setter
public Builder registeredDateTime(@Nullable String registeredDateTime) {
this.registeredDateTime = registeredDateTime;
return this;
}
@CustomType.Setter
public Builder systemData(SystemDataResponse systemData) {
if (systemData == null) {
throw new MissingRequiredPropertyException("GetHybridRunbookWorkerResult", "systemData");
}
this.systemData = systemData;
return this;
}
@CustomType.Setter
public Builder type(String type) {
if (type == null) {
throw new MissingRequiredPropertyException("GetHybridRunbookWorkerResult", "type");
}
this.type = type;
return this;
}
@CustomType.Setter
public Builder vmResourceId(@Nullable String vmResourceId) {
this.vmResourceId = vmResourceId;
return this;
}
@CustomType.Setter
public Builder workerName(@Nullable String workerName) {
this.workerName = workerName;
return this;
}
@CustomType.Setter
public Builder workerType(@Nullable String workerType) {
this.workerType = workerType;
return this;
}
public GetHybridRunbookWorkerResult build() {
final var _resultValue = new GetHybridRunbookWorkerResult();
_resultValue.id = id;
_resultValue.ip = ip;
_resultValue.lastSeenDateTime = lastSeenDateTime;
_resultValue.name = name;
_resultValue.registeredDateTime = registeredDateTime;
_resultValue.systemData = systemData;
_resultValue.type = type;
_resultValue.vmResourceId = vmResourceId;
_resultValue.workerName = workerName;
_resultValue.workerType = workerType;
return _resultValue;
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy