
com.pulumi.azurenative.migrate.outputs.CollectorAgentPropertiesResponse 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.migrate.outputs;
import com.pulumi.azurenative.migrate.outputs.CollectorBodyAgentSpnPropertiesResponse;
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 CollectorAgentPropertiesResponse {
private String id;
private String lastHeartbeatUtc;
private @Nullable CollectorBodyAgentSpnPropertiesResponse spnDetails;
private String version;
private CollectorAgentPropertiesResponse() {}
public String id() {
return this.id;
}
public String lastHeartbeatUtc() {
return this.lastHeartbeatUtc;
}
public Optional spnDetails() {
return Optional.ofNullable(this.spnDetails);
}
public String version() {
return this.version;
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(CollectorAgentPropertiesResponse defaults) {
return new Builder(defaults);
}
@CustomType.Builder
public static final class Builder {
private String id;
private String lastHeartbeatUtc;
private @Nullable CollectorBodyAgentSpnPropertiesResponse spnDetails;
private String version;
public Builder() {}
public Builder(CollectorAgentPropertiesResponse defaults) {
Objects.requireNonNull(defaults);
this.id = defaults.id;
this.lastHeartbeatUtc = defaults.lastHeartbeatUtc;
this.spnDetails = defaults.spnDetails;
this.version = defaults.version;
}
@CustomType.Setter
public Builder id(String id) {
if (id == null) {
throw new MissingRequiredPropertyException("CollectorAgentPropertiesResponse", "id");
}
this.id = id;
return this;
}
@CustomType.Setter
public Builder lastHeartbeatUtc(String lastHeartbeatUtc) {
if (lastHeartbeatUtc == null) {
throw new MissingRequiredPropertyException("CollectorAgentPropertiesResponse", "lastHeartbeatUtc");
}
this.lastHeartbeatUtc = lastHeartbeatUtc;
return this;
}
@CustomType.Setter
public Builder spnDetails(@Nullable CollectorBodyAgentSpnPropertiesResponse spnDetails) {
this.spnDetails = spnDetails;
return this;
}
@CustomType.Setter
public Builder version(String version) {
if (version == null) {
throw new MissingRequiredPropertyException("CollectorAgentPropertiesResponse", "version");
}
this.version = version;
return this;
}
public CollectorAgentPropertiesResponse build() {
final var _resultValue = new CollectorAgentPropertiesResponse();
_resultValue.id = id;
_resultValue.lastHeartbeatUtc = lastHeartbeatUtc;
_resultValue.spnDetails = spnDetails;
_resultValue.version = version;
return _resultValue;
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy