com.pulumi.azurenative.testbase.outputs.OsPropertiesResponse 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.testbase.outputs;
import com.pulumi.azurenative.testbase.outputs.ReleasePropertiesResponse;
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 OsPropertiesResponse {
/**
* @return The name of the custom image resource.
*
*/
private String customImageDisplayName;
/**
* @return Specify the referenced Test Base Custom Image Id if available.
*
*/
private @Nullable String customImageId;
/**
* @return The name of the OS.
*
*/
private @Nullable String osName;
/**
* @return The properties of the OS release.
*
*/
private @Nullable ReleasePropertiesResponse releaseProperties;
private OsPropertiesResponse() {}
/**
* @return The name of the custom image resource.
*
*/
public String customImageDisplayName() {
return this.customImageDisplayName;
}
/**
* @return Specify the referenced Test Base Custom Image Id if available.
*
*/
public Optional customImageId() {
return Optional.ofNullable(this.customImageId);
}
/**
* @return The name of the OS.
*
*/
public Optional osName() {
return Optional.ofNullable(this.osName);
}
/**
* @return The properties of the OS release.
*
*/
public Optional releaseProperties() {
return Optional.ofNullable(this.releaseProperties);
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(OsPropertiesResponse defaults) {
return new Builder(defaults);
}
@CustomType.Builder
public static final class Builder {
private String customImageDisplayName;
private @Nullable String customImageId;
private @Nullable String osName;
private @Nullable ReleasePropertiesResponse releaseProperties;
public Builder() {}
public Builder(OsPropertiesResponse defaults) {
Objects.requireNonNull(defaults);
this.customImageDisplayName = defaults.customImageDisplayName;
this.customImageId = defaults.customImageId;
this.osName = defaults.osName;
this.releaseProperties = defaults.releaseProperties;
}
@CustomType.Setter
public Builder customImageDisplayName(String customImageDisplayName) {
if (customImageDisplayName == null) {
throw new MissingRequiredPropertyException("OsPropertiesResponse", "customImageDisplayName");
}
this.customImageDisplayName = customImageDisplayName;
return this;
}
@CustomType.Setter
public Builder customImageId(@Nullable String customImageId) {
this.customImageId = customImageId;
return this;
}
@CustomType.Setter
public Builder osName(@Nullable String osName) {
this.osName = osName;
return this;
}
@CustomType.Setter
public Builder releaseProperties(@Nullable ReleasePropertiesResponse releaseProperties) {
this.releaseProperties = releaseProperties;
return this;
}
public OsPropertiesResponse build() {
final var _resultValue = new OsPropertiesResponse();
_resultValue.customImageDisplayName = customImageDisplayName;
_resultValue.customImageId = customImageId;
_resultValue.osName = osName;
_resultValue.releaseProperties = releaseProperties;
return _resultValue;
}
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy