
com.pulumi.azurenative.hybridcompute.outputs.GetMachineResult 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.hybridcompute.outputs;
import com.pulumi.azurenative.hybridcompute.outputs.AgentConfigurationResponse;
import com.pulumi.azurenative.hybridcompute.outputs.AgentUpgradeResponse;
import com.pulumi.azurenative.hybridcompute.outputs.CloudMetadataResponse;
import com.pulumi.azurenative.hybridcompute.outputs.ErrorDetailResponse;
import com.pulumi.azurenative.hybridcompute.outputs.IdentityResponse;
import com.pulumi.azurenative.hybridcompute.outputs.LocationDataResponse;
import com.pulumi.azurenative.hybridcompute.outputs.MachineExtensionInstanceViewResponse;
import com.pulumi.azurenative.hybridcompute.outputs.MachineExtensionResponse;
import com.pulumi.azurenative.hybridcompute.outputs.OSProfileResponse;
import com.pulumi.azurenative.hybridcompute.outputs.ServiceStatusesResponse;
import com.pulumi.azurenative.hybridcompute.outputs.SystemDataResponse;
import com.pulumi.core.annotations.CustomType;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.String;
import java.util.List;
import java.util.Map;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;
@CustomType
public final class GetMachineResult {
/**
* @return Specifies the AD fully qualified display name.
*
*/
private String adFqdn;
/**
* @return Configurable properties that the user can set locally via the azcmagent config command, or remotely via ARM.
*
*/
private AgentConfigurationResponse agentConfiguration;
/**
* @return The info of the machine w.r.t Agent Upgrade
*
*/
private @Nullable AgentUpgradeResponse agentUpgrade;
/**
* @return The hybrid machine agent full version.
*
*/
private String agentVersion;
/**
* @return Public Key that the client provides to be used during initial resource onboarding
*
*/
private @Nullable String clientPublicKey;
/**
* @return The metadata of the cloud environment (Azure/GCP/AWS/OCI...).
*
*/
private @Nullable CloudMetadataResponse cloudMetadata;
/**
* @return Detected properties from the machine.
*
*/
private Map detectedProperties;
/**
* @return Specifies the hybrid machine display name.
*
*/
private String displayName;
/**
* @return Specifies the DNS fully qualified display name.
*
*/
private String dnsFqdn;
/**
* @return Specifies the Windows domain name.
*
*/
private String domainName;
/**
* @return Details about the error state.
*
*/
private List errorDetails;
/**
* @return Machine Extensions information (deprecated field)
*
*/
private @Nullable List extensions;
/**
* @return Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}
*
*/
private String id;
/**
* @return Identity for the resource.
*
*/
private @Nullable IdentityResponse identity;
/**
* @return The time of the last status change.
*
*/
private String lastStatusChange;
/**
* @return The geo-location where the resource lives
*
*/
private String location;
/**
* @return Metadata pertaining to the geographic location of the resource.
*
*/
private @Nullable LocationDataResponse locationData;
/**
* @return Specifies the hybrid machine FQDN.
*
*/
private String machineFqdn;
/**
* @return Specifies whether any MS SQL instance is discovered on the machine.
*
*/
private @Nullable String mssqlDiscovered;
/**
* @return The name of the resource
*
*/
private String name;
/**
* @return The Operating System running on the hybrid machine.
*
*/
private String osName;
/**
* @return Specifies the operating system settings for the hybrid machine.
*
*/
private @Nullable OSProfileResponse osProfile;
/**
* @return Specifies the Operating System product SKU.
*
*/
private String osSku;
/**
* @return The type of Operating System (windows/linux).
*
*/
private @Nullable String osType;
/**
* @return The version of Operating System running on the hybrid machine.
*
*/
private String osVersion;
/**
* @return The resource id of the parent cluster (Azure HCI) this machine is assigned to, if any.
*
*/
private @Nullable String parentClusterResourceId;
/**
* @return The resource id of the private link scope this machine is assigned to, if any.
*
*/
private @Nullable String privateLinkScopeResourceId;
/**
* @return The provisioning state, which only appears in the response.
*
*/
private String provisioningState;
/**
* @return The list of extensions affiliated to the machine
*
*/
private List resources;
/**
* @return Statuses of dependent services that are reported back to ARM.
*
*/
private @Nullable ServiceStatusesResponse serviceStatuses;
/**
* @return The status of the hybrid machine agent.
*
*/
private String status;
/**
* @return Azure Resource Manager metadata containing createdBy and modifiedBy information.
*
*/
private SystemDataResponse systemData;
/**
* @return Resource tags.
*
*/
private @Nullable Map tags;
/**
* @return The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
*
*/
private String type;
/**
* @return Specifies the hybrid machine unique ID.
*
*/
private @Nullable String vmId;
/**
* @return Specifies the Arc Machine's unique SMBIOS ID
*
*/
private String vmUuid;
private GetMachineResult() {}
/**
* @return Specifies the AD fully qualified display name.
*
*/
public String adFqdn() {
return this.adFqdn;
}
/**
* @return Configurable properties that the user can set locally via the azcmagent config command, or remotely via ARM.
*
*/
public AgentConfigurationResponse agentConfiguration() {
return this.agentConfiguration;
}
/**
* @return The info of the machine w.r.t Agent Upgrade
*
*/
public Optional agentUpgrade() {
return Optional.ofNullable(this.agentUpgrade);
}
/**
* @return The hybrid machine agent full version.
*
*/
public String agentVersion() {
return this.agentVersion;
}
/**
* @return Public Key that the client provides to be used during initial resource onboarding
*
*/
public Optional clientPublicKey() {
return Optional.ofNullable(this.clientPublicKey);
}
/**
* @return The metadata of the cloud environment (Azure/GCP/AWS/OCI...).
*
*/
public Optional cloudMetadata() {
return Optional.ofNullable(this.cloudMetadata);
}
/**
* @return Detected properties from the machine.
*
*/
public Map detectedProperties() {
return this.detectedProperties;
}
/**
* @return Specifies the hybrid machine display name.
*
*/
public String displayName() {
return this.displayName;
}
/**
* @return Specifies the DNS fully qualified display name.
*
*/
public String dnsFqdn() {
return this.dnsFqdn;
}
/**
* @return Specifies the Windows domain name.
*
*/
public String domainName() {
return this.domainName;
}
/**
* @return Details about the error state.
*
*/
public List errorDetails() {
return this.errorDetails;
}
/**
* @return Machine Extensions information (deprecated field)
*
*/
public List extensions() {
return this.extensions == null ? List.of() : this.extensions;
}
/**
* @return Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}
*
*/
public String id() {
return this.id;
}
/**
* @return Identity for the resource.
*
*/
public Optional identity() {
return Optional.ofNullable(this.identity);
}
/**
* @return The time of the last status change.
*
*/
public String lastStatusChange() {
return this.lastStatusChange;
}
/**
* @return The geo-location where the resource lives
*
*/
public String location() {
return this.location;
}
/**
* @return Metadata pertaining to the geographic location of the resource.
*
*/
public Optional locationData() {
return Optional.ofNullable(this.locationData);
}
/**
* @return Specifies the hybrid machine FQDN.
*
*/
public String machineFqdn() {
return this.machineFqdn;
}
/**
* @return Specifies whether any MS SQL instance is discovered on the machine.
*
*/
public Optional mssqlDiscovered() {
return Optional.ofNullable(this.mssqlDiscovered);
}
/**
* @return The name of the resource
*
*/
public String name() {
return this.name;
}
/**
* @return The Operating System running on the hybrid machine.
*
*/
public String osName() {
return this.osName;
}
/**
* @return Specifies the operating system settings for the hybrid machine.
*
*/
public Optional osProfile() {
return Optional.ofNullable(this.osProfile);
}
/**
* @return Specifies the Operating System product SKU.
*
*/
public String osSku() {
return this.osSku;
}
/**
* @return The type of Operating System (windows/linux).
*
*/
public Optional osType() {
return Optional.ofNullable(this.osType);
}
/**
* @return The version of Operating System running on the hybrid machine.
*
*/
public String osVersion() {
return this.osVersion;
}
/**
* @return The resource id of the parent cluster (Azure HCI) this machine is assigned to, if any.
*
*/
public Optional parentClusterResourceId() {
return Optional.ofNullable(this.parentClusterResourceId);
}
/**
* @return The resource id of the private link scope this machine is assigned to, if any.
*
*/
public Optional privateLinkScopeResourceId() {
return Optional.ofNullable(this.privateLinkScopeResourceId);
}
/**
* @return The provisioning state, which only appears in the response.
*
*/
public String provisioningState() {
return this.provisioningState;
}
/**
* @return The list of extensions affiliated to the machine
*
*/
public List resources() {
return this.resources;
}
/**
* @return Statuses of dependent services that are reported back to ARM.
*
*/
public Optional serviceStatuses() {
return Optional.ofNullable(this.serviceStatuses);
}
/**
* @return The status of the hybrid machine agent.
*
*/
public String status() {
return this.status;
}
/**
* @return Azure Resource Manager metadata containing createdBy and modifiedBy information.
*
*/
public SystemDataResponse systemData() {
return this.systemData;
}
/**
* @return Resource tags.
*
*/
public Map tags() {
return this.tags == null ? Map.of() : this.tags;
}
/**
* @return The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
*
*/
public String type() {
return this.type;
}
/**
* @return Specifies the hybrid machine unique ID.
*
*/
public Optional vmId() {
return Optional.ofNullable(this.vmId);
}
/**
* @return Specifies the Arc Machine's unique SMBIOS ID
*
*/
public String vmUuid() {
return this.vmUuid;
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(GetMachineResult defaults) {
return new Builder(defaults);
}
@CustomType.Builder
public static final class Builder {
private String adFqdn;
private AgentConfigurationResponse agentConfiguration;
private @Nullable AgentUpgradeResponse agentUpgrade;
private String agentVersion;
private @Nullable String clientPublicKey;
private @Nullable CloudMetadataResponse cloudMetadata;
private Map detectedProperties;
private String displayName;
private String dnsFqdn;
private String domainName;
private List errorDetails;
private @Nullable List extensions;
private String id;
private @Nullable IdentityResponse identity;
private String lastStatusChange;
private String location;
private @Nullable LocationDataResponse locationData;
private String machineFqdn;
private @Nullable String mssqlDiscovered;
private String name;
private String osName;
private @Nullable OSProfileResponse osProfile;
private String osSku;
private @Nullable String osType;
private String osVersion;
private @Nullable String parentClusterResourceId;
private @Nullable String privateLinkScopeResourceId;
private String provisioningState;
private List resources;
private @Nullable ServiceStatusesResponse serviceStatuses;
private String status;
private SystemDataResponse systemData;
private @Nullable Map tags;
private String type;
private @Nullable String vmId;
private String vmUuid;
public Builder() {}
public Builder(GetMachineResult defaults) {
Objects.requireNonNull(defaults);
this.adFqdn = defaults.adFqdn;
this.agentConfiguration = defaults.agentConfiguration;
this.agentUpgrade = defaults.agentUpgrade;
this.agentVersion = defaults.agentVersion;
this.clientPublicKey = defaults.clientPublicKey;
this.cloudMetadata = defaults.cloudMetadata;
this.detectedProperties = defaults.detectedProperties;
this.displayName = defaults.displayName;
this.dnsFqdn = defaults.dnsFqdn;
this.domainName = defaults.domainName;
this.errorDetails = defaults.errorDetails;
this.extensions = defaults.extensions;
this.id = defaults.id;
this.identity = defaults.identity;
this.lastStatusChange = defaults.lastStatusChange;
this.location = defaults.location;
this.locationData = defaults.locationData;
this.machineFqdn = defaults.machineFqdn;
this.mssqlDiscovered = defaults.mssqlDiscovered;
this.name = defaults.name;
this.osName = defaults.osName;
this.osProfile = defaults.osProfile;
this.osSku = defaults.osSku;
this.osType = defaults.osType;
this.osVersion = defaults.osVersion;
this.parentClusterResourceId = defaults.parentClusterResourceId;
this.privateLinkScopeResourceId = defaults.privateLinkScopeResourceId;
this.provisioningState = defaults.provisioningState;
this.resources = defaults.resources;
this.serviceStatuses = defaults.serviceStatuses;
this.status = defaults.status;
this.systemData = defaults.systemData;
this.tags = defaults.tags;
this.type = defaults.type;
this.vmId = defaults.vmId;
this.vmUuid = defaults.vmUuid;
}
@CustomType.Setter
public Builder adFqdn(String adFqdn) {
if (adFqdn == null) {
throw new MissingRequiredPropertyException("GetMachineResult", "adFqdn");
}
this.adFqdn = adFqdn;
return this;
}
@CustomType.Setter
public Builder agentConfiguration(AgentConfigurationResponse agentConfiguration) {
if (agentConfiguration == null) {
throw new MissingRequiredPropertyException("GetMachineResult", "agentConfiguration");
}
this.agentConfiguration = agentConfiguration;
return this;
}
@CustomType.Setter
public Builder agentUpgrade(@Nullable AgentUpgradeResponse agentUpgrade) {
this.agentUpgrade = agentUpgrade;
return this;
}
@CustomType.Setter
public Builder agentVersion(String agentVersion) {
if (agentVersion == null) {
throw new MissingRequiredPropertyException("GetMachineResult", "agentVersion");
}
this.agentVersion = agentVersion;
return this;
}
@CustomType.Setter
public Builder clientPublicKey(@Nullable String clientPublicKey) {
this.clientPublicKey = clientPublicKey;
return this;
}
@CustomType.Setter
public Builder cloudMetadata(@Nullable CloudMetadataResponse cloudMetadata) {
this.cloudMetadata = cloudMetadata;
return this;
}
@CustomType.Setter
public Builder detectedProperties(Map detectedProperties) {
if (detectedProperties == null) {
throw new MissingRequiredPropertyException("GetMachineResult", "detectedProperties");
}
this.detectedProperties = detectedProperties;
return this;
}
@CustomType.Setter
public Builder displayName(String displayName) {
if (displayName == null) {
throw new MissingRequiredPropertyException("GetMachineResult", "displayName");
}
this.displayName = displayName;
return this;
}
@CustomType.Setter
public Builder dnsFqdn(String dnsFqdn) {
if (dnsFqdn == null) {
throw new MissingRequiredPropertyException("GetMachineResult", "dnsFqdn");
}
this.dnsFqdn = dnsFqdn;
return this;
}
@CustomType.Setter
public Builder domainName(String domainName) {
if (domainName == null) {
throw new MissingRequiredPropertyException("GetMachineResult", "domainName");
}
this.domainName = domainName;
return this;
}
@CustomType.Setter
public Builder errorDetails(List errorDetails) {
if (errorDetails == null) {
throw new MissingRequiredPropertyException("GetMachineResult", "errorDetails");
}
this.errorDetails = errorDetails;
return this;
}
public Builder errorDetails(ErrorDetailResponse... errorDetails) {
return errorDetails(List.of(errorDetails));
}
@CustomType.Setter
public Builder extensions(@Nullable List extensions) {
this.extensions = extensions;
return this;
}
public Builder extensions(MachineExtensionInstanceViewResponse... extensions) {
return extensions(List.of(extensions));
}
@CustomType.Setter
public Builder id(String id) {
if (id == null) {
throw new MissingRequiredPropertyException("GetMachineResult", "id");
}
this.id = id;
return this;
}
@CustomType.Setter
public Builder identity(@Nullable IdentityResponse identity) {
this.identity = identity;
return this;
}
@CustomType.Setter
public Builder lastStatusChange(String lastStatusChange) {
if (lastStatusChange == null) {
throw new MissingRequiredPropertyException("GetMachineResult", "lastStatusChange");
}
this.lastStatusChange = lastStatusChange;
return this;
}
@CustomType.Setter
public Builder location(String location) {
if (location == null) {
throw new MissingRequiredPropertyException("GetMachineResult", "location");
}
this.location = location;
return this;
}
@CustomType.Setter
public Builder locationData(@Nullable LocationDataResponse locationData) {
this.locationData = locationData;
return this;
}
@CustomType.Setter
public Builder machineFqdn(String machineFqdn) {
if (machineFqdn == null) {
throw new MissingRequiredPropertyException("GetMachineResult", "machineFqdn");
}
this.machineFqdn = machineFqdn;
return this;
}
@CustomType.Setter
public Builder mssqlDiscovered(@Nullable String mssqlDiscovered) {
this.mssqlDiscovered = mssqlDiscovered;
return this;
}
@CustomType.Setter
public Builder name(String name) {
if (name == null) {
throw new MissingRequiredPropertyException("GetMachineResult", "name");
}
this.name = name;
return this;
}
@CustomType.Setter
public Builder osName(String osName) {
if (osName == null) {
throw new MissingRequiredPropertyException("GetMachineResult", "osName");
}
this.osName = osName;
return this;
}
@CustomType.Setter
public Builder osProfile(@Nullable OSProfileResponse osProfile) {
this.osProfile = osProfile;
return this;
}
@CustomType.Setter
public Builder osSku(String osSku) {
if (osSku == null) {
throw new MissingRequiredPropertyException("GetMachineResult", "osSku");
}
this.osSku = osSku;
return this;
}
@CustomType.Setter
public Builder osType(@Nullable String osType) {
this.osType = osType;
return this;
}
@CustomType.Setter
public Builder osVersion(String osVersion) {
if (osVersion == null) {
throw new MissingRequiredPropertyException("GetMachineResult", "osVersion");
}
this.osVersion = osVersion;
return this;
}
@CustomType.Setter
public Builder parentClusterResourceId(@Nullable String parentClusterResourceId) {
this.parentClusterResourceId = parentClusterResourceId;
return this;
}
@CustomType.Setter
public Builder privateLinkScopeResourceId(@Nullable String privateLinkScopeResourceId) {
this.privateLinkScopeResourceId = privateLinkScopeResourceId;
return this;
}
@CustomType.Setter
public Builder provisioningState(String provisioningState) {
if (provisioningState == null) {
throw new MissingRequiredPropertyException("GetMachineResult", "provisioningState");
}
this.provisioningState = provisioningState;
return this;
}
@CustomType.Setter
public Builder resources(List resources) {
if (resources == null) {
throw new MissingRequiredPropertyException("GetMachineResult", "resources");
}
this.resources = resources;
return this;
}
public Builder resources(MachineExtensionResponse... resources) {
return resources(List.of(resources));
}
@CustomType.Setter
public Builder serviceStatuses(@Nullable ServiceStatusesResponse serviceStatuses) {
this.serviceStatuses = serviceStatuses;
return this;
}
@CustomType.Setter
public Builder status(String status) {
if (status == null) {
throw new MissingRequiredPropertyException("GetMachineResult", "status");
}
this.status = status;
return this;
}
@CustomType.Setter
public Builder systemData(SystemDataResponse systemData) {
if (systemData == null) {
throw new MissingRequiredPropertyException("GetMachineResult", "systemData");
}
this.systemData = systemData;
return this;
}
@CustomType.Setter
public Builder tags(@Nullable Map tags) {
this.tags = tags;
return this;
}
@CustomType.Setter
public Builder type(String type) {
if (type == null) {
throw new MissingRequiredPropertyException("GetMachineResult", "type");
}
this.type = type;
return this;
}
@CustomType.Setter
public Builder vmId(@Nullable String vmId) {
this.vmId = vmId;
return this;
}
@CustomType.Setter
public Builder vmUuid(String vmUuid) {
if (vmUuid == null) {
throw new MissingRequiredPropertyException("GetMachineResult", "vmUuid");
}
this.vmUuid = vmUuid;
return this;
}
public GetMachineResult build() {
final var _resultValue = new GetMachineResult();
_resultValue.adFqdn = adFqdn;
_resultValue.agentConfiguration = agentConfiguration;
_resultValue.agentUpgrade = agentUpgrade;
_resultValue.agentVersion = agentVersion;
_resultValue.clientPublicKey = clientPublicKey;
_resultValue.cloudMetadata = cloudMetadata;
_resultValue.detectedProperties = detectedProperties;
_resultValue.displayName = displayName;
_resultValue.dnsFqdn = dnsFqdn;
_resultValue.domainName = domainName;
_resultValue.errorDetails = errorDetails;
_resultValue.extensions = extensions;
_resultValue.id = id;
_resultValue.identity = identity;
_resultValue.lastStatusChange = lastStatusChange;
_resultValue.location = location;
_resultValue.locationData = locationData;
_resultValue.machineFqdn = machineFqdn;
_resultValue.mssqlDiscovered = mssqlDiscovered;
_resultValue.name = name;
_resultValue.osName = osName;
_resultValue.osProfile = osProfile;
_resultValue.osSku = osSku;
_resultValue.osType = osType;
_resultValue.osVersion = osVersion;
_resultValue.parentClusterResourceId = parentClusterResourceId;
_resultValue.privateLinkScopeResourceId = privateLinkScopeResourceId;
_resultValue.provisioningState = provisioningState;
_resultValue.resources = resources;
_resultValue.serviceStatuses = serviceStatuses;
_resultValue.status = status;
_resultValue.systemData = systemData;
_resultValue.tags = tags;
_resultValue.type = type;
_resultValue.vmId = vmId;
_resultValue.vmUuid = vmUuid;
return _resultValue;
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy