
com.pulumi.azurenative.azurestack.outputs.CompatibilityResponse 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.azurestack.outputs;
import com.pulumi.core.annotations.CustomType;
import java.lang.Boolean;
import java.lang.String;
import java.util.List;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;
@CustomType
public final class CompatibilityResponse {
/**
* @return Full error message if any compatibility issues are found
*
*/
private @Nullable String description;
/**
* @return Tells if product is compatible with current device
*
*/
private @Nullable Boolean isCompatible;
/**
* @return List of all issues found
*
*/
private @Nullable List issues;
/**
* @return Short error message if any compatibility issues are found
*
*/
private @Nullable String message;
private CompatibilityResponse() {}
/**
* @return Full error message if any compatibility issues are found
*
*/
public Optional description() {
return Optional.ofNullable(this.description);
}
/**
* @return Tells if product is compatible with current device
*
*/
public Optional isCompatible() {
return Optional.ofNullable(this.isCompatible);
}
/**
* @return List of all issues found
*
*/
public List issues() {
return this.issues == null ? List.of() : this.issues;
}
/**
* @return Short error message if any compatibility issues are found
*
*/
public Optional message() {
return Optional.ofNullable(this.message);
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(CompatibilityResponse defaults) {
return new Builder(defaults);
}
@CustomType.Builder
public static final class Builder {
private @Nullable String description;
private @Nullable Boolean isCompatible;
private @Nullable List issues;
private @Nullable String message;
public Builder() {}
public Builder(CompatibilityResponse defaults) {
Objects.requireNonNull(defaults);
this.description = defaults.description;
this.isCompatible = defaults.isCompatible;
this.issues = defaults.issues;
this.message = defaults.message;
}
@CustomType.Setter
public Builder description(@Nullable String description) {
this.description = description;
return this;
}
@CustomType.Setter
public Builder isCompatible(@Nullable Boolean isCompatible) {
this.isCompatible = isCompatible;
return this;
}
@CustomType.Setter
public Builder issues(@Nullable List issues) {
this.issues = issues;
return this;
}
public Builder issues(String... issues) {
return issues(List.of(issues));
}
@CustomType.Setter
public Builder message(@Nullable String message) {
this.message = message;
return this;
}
public CompatibilityResponse build() {
final var _resultValue = new CompatibilityResponse();
_resultValue.description = description;
_resultValue.isCompatible = isCompatible;
_resultValue.issues = issues;
_resultValue.message = message;
return _resultValue;
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy