
com.pulumi.azurenative.guestconfiguration.outputs.GuestConfigurationAssignmentPropertiesResponse 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.guestconfiguration.outputs;
import com.pulumi.azurenative.guestconfiguration.outputs.AssignmentReportResponse;
import com.pulumi.azurenative.guestconfiguration.outputs.GuestConfigurationNavigationResponse;
import com.pulumi.azurenative.guestconfiguration.outputs.VMSSVMInfoResponse;
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 GuestConfigurationAssignmentPropertiesResponse {
/**
* @return Combined hash of the configuration package and parameters.
*
*/
private String assignmentHash;
/**
* @return A value indicating compliance status of the machine for the assigned guest configuration.
*
*/
private String complianceStatus;
/**
* @return The source which initiated the guest configuration assignment. Ex: Azure Policy
*
*/
private @Nullable String context;
/**
* @return The guest configuration to assign.
*
*/
private @Nullable GuestConfigurationNavigationResponse guestConfiguration;
/**
* @return Date and time when last compliance status was checked.
*
*/
private String lastComplianceStatusChecked;
/**
* @return Last reported guest configuration assignment report.
*
*/
private @Nullable AssignmentReportResponse latestAssignmentReport;
/**
* @return Id of the latest report for the guest configuration assignment.
*
*/
private String latestReportId;
/**
* @return parameter hash for the guest configuration assignment.
*
*/
private String parameterHash;
/**
* @return The provisioning state, which only appears in the response.
*
*/
private String provisioningState;
/**
* @return Type of the resource - VMSS / VM
*
*/
private String resourceType;
/**
* @return VM resource Id.
*
*/
private String targetResourceId;
/**
* @return The list of VM Compliance data for VMSS
*
*/
private @Nullable List vmssVMList;
private GuestConfigurationAssignmentPropertiesResponse() {}
/**
* @return Combined hash of the configuration package and parameters.
*
*/
public String assignmentHash() {
return this.assignmentHash;
}
/**
* @return A value indicating compliance status of the machine for the assigned guest configuration.
*
*/
public String complianceStatus() {
return this.complianceStatus;
}
/**
* @return The source which initiated the guest configuration assignment. Ex: Azure Policy
*
*/
public Optional context() {
return Optional.ofNullable(this.context);
}
/**
* @return The guest configuration to assign.
*
*/
public Optional guestConfiguration() {
return Optional.ofNullable(this.guestConfiguration);
}
/**
* @return Date and time when last compliance status was checked.
*
*/
public String lastComplianceStatusChecked() {
return this.lastComplianceStatusChecked;
}
/**
* @return Last reported guest configuration assignment report.
*
*/
public Optional latestAssignmentReport() {
return Optional.ofNullable(this.latestAssignmentReport);
}
/**
* @return Id of the latest report for the guest configuration assignment.
*
*/
public String latestReportId() {
return this.latestReportId;
}
/**
* @return parameter hash for the guest configuration assignment.
*
*/
public String parameterHash() {
return this.parameterHash;
}
/**
* @return The provisioning state, which only appears in the response.
*
*/
public String provisioningState() {
return this.provisioningState;
}
/**
* @return Type of the resource - VMSS / VM
*
*/
public String resourceType() {
return this.resourceType;
}
/**
* @return VM resource Id.
*
*/
public String targetResourceId() {
return this.targetResourceId;
}
/**
* @return The list of VM Compliance data for VMSS
*
*/
public List vmssVMList() {
return this.vmssVMList == null ? List.of() : this.vmssVMList;
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(GuestConfigurationAssignmentPropertiesResponse defaults) {
return new Builder(defaults);
}
@CustomType.Builder
public static final class Builder {
private String assignmentHash;
private String complianceStatus;
private @Nullable String context;
private @Nullable GuestConfigurationNavigationResponse guestConfiguration;
private String lastComplianceStatusChecked;
private @Nullable AssignmentReportResponse latestAssignmentReport;
private String latestReportId;
private String parameterHash;
private String provisioningState;
private String resourceType;
private String targetResourceId;
private @Nullable List vmssVMList;
public Builder() {}
public Builder(GuestConfigurationAssignmentPropertiesResponse defaults) {
Objects.requireNonNull(defaults);
this.assignmentHash = defaults.assignmentHash;
this.complianceStatus = defaults.complianceStatus;
this.context = defaults.context;
this.guestConfiguration = defaults.guestConfiguration;
this.lastComplianceStatusChecked = defaults.lastComplianceStatusChecked;
this.latestAssignmentReport = defaults.latestAssignmentReport;
this.latestReportId = defaults.latestReportId;
this.parameterHash = defaults.parameterHash;
this.provisioningState = defaults.provisioningState;
this.resourceType = defaults.resourceType;
this.targetResourceId = defaults.targetResourceId;
this.vmssVMList = defaults.vmssVMList;
}
@CustomType.Setter
public Builder assignmentHash(String assignmentHash) {
if (assignmentHash == null) {
throw new MissingRequiredPropertyException("GuestConfigurationAssignmentPropertiesResponse", "assignmentHash");
}
this.assignmentHash = assignmentHash;
return this;
}
@CustomType.Setter
public Builder complianceStatus(String complianceStatus) {
if (complianceStatus == null) {
throw new MissingRequiredPropertyException("GuestConfigurationAssignmentPropertiesResponse", "complianceStatus");
}
this.complianceStatus = complianceStatus;
return this;
}
@CustomType.Setter
public Builder context(@Nullable String context) {
this.context = context;
return this;
}
@CustomType.Setter
public Builder guestConfiguration(@Nullable GuestConfigurationNavigationResponse guestConfiguration) {
this.guestConfiguration = guestConfiguration;
return this;
}
@CustomType.Setter
public Builder lastComplianceStatusChecked(String lastComplianceStatusChecked) {
if (lastComplianceStatusChecked == null) {
throw new MissingRequiredPropertyException("GuestConfigurationAssignmentPropertiesResponse", "lastComplianceStatusChecked");
}
this.lastComplianceStatusChecked = lastComplianceStatusChecked;
return this;
}
@CustomType.Setter
public Builder latestAssignmentReport(@Nullable AssignmentReportResponse latestAssignmentReport) {
this.latestAssignmentReport = latestAssignmentReport;
return this;
}
@CustomType.Setter
public Builder latestReportId(String latestReportId) {
if (latestReportId == null) {
throw new MissingRequiredPropertyException("GuestConfigurationAssignmentPropertiesResponse", "latestReportId");
}
this.latestReportId = latestReportId;
return this;
}
@CustomType.Setter
public Builder parameterHash(String parameterHash) {
if (parameterHash == null) {
throw new MissingRequiredPropertyException("GuestConfigurationAssignmentPropertiesResponse", "parameterHash");
}
this.parameterHash = parameterHash;
return this;
}
@CustomType.Setter
public Builder provisioningState(String provisioningState) {
if (provisioningState == null) {
throw new MissingRequiredPropertyException("GuestConfigurationAssignmentPropertiesResponse", "provisioningState");
}
this.provisioningState = provisioningState;
return this;
}
@CustomType.Setter
public Builder resourceType(String resourceType) {
if (resourceType == null) {
throw new MissingRequiredPropertyException("GuestConfigurationAssignmentPropertiesResponse", "resourceType");
}
this.resourceType = resourceType;
return this;
}
@CustomType.Setter
public Builder targetResourceId(String targetResourceId) {
if (targetResourceId == null) {
throw new MissingRequiredPropertyException("GuestConfigurationAssignmentPropertiesResponse", "targetResourceId");
}
this.targetResourceId = targetResourceId;
return this;
}
@CustomType.Setter
public Builder vmssVMList(@Nullable List vmssVMList) {
this.vmssVMList = vmssVMList;
return this;
}
public Builder vmssVMList(VMSSVMInfoResponse... vmssVMList) {
return vmssVMList(List.of(vmssVMList));
}
public GuestConfigurationAssignmentPropertiesResponse build() {
final var _resultValue = new GuestConfigurationAssignmentPropertiesResponse();
_resultValue.assignmentHash = assignmentHash;
_resultValue.complianceStatus = complianceStatus;
_resultValue.context = context;
_resultValue.guestConfiguration = guestConfiguration;
_resultValue.lastComplianceStatusChecked = lastComplianceStatusChecked;
_resultValue.latestAssignmentReport = latestAssignmentReport;
_resultValue.latestReportId = latestReportId;
_resultValue.parameterHash = parameterHash;
_resultValue.provisioningState = provisioningState;
_resultValue.resourceType = resourceType;
_resultValue.targetResourceId = targetResourceId;
_resultValue.vmssVMList = vmssVMList;
return _resultValue;
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy