com.pulumi.azurenative.batch.outputs.GetApplicationResult 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.batch.outputs;
import com.pulumi.core.annotations.CustomType;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.Boolean;
import java.lang.String;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;
@CustomType
public final class GetApplicationResult {
/**
* @return A value indicating whether packages within the application may be overwritten using the same version string.
*
*/
private @Nullable Boolean allowUpdates;
/**
* @return The package to use if a client requests the application but does not specify a version. This property can only be set to the name of an existing package.
*
*/
private @Nullable String defaultVersion;
/**
* @return The display name for the application.
*
*/
private @Nullable String displayName;
/**
* @return The ETag of the resource, used for concurrency statements.
*
*/
private String etag;
/**
* @return The ID of the resource.
*
*/
private String id;
/**
* @return The name of the resource.
*
*/
private String name;
/**
* @return The type of the resource.
*
*/
private String type;
private GetApplicationResult() {}
/**
* @return A value indicating whether packages within the application may be overwritten using the same version string.
*
*/
public Optional allowUpdates() {
return Optional.ofNullable(this.allowUpdates);
}
/**
* @return The package to use if a client requests the application but does not specify a version. This property can only be set to the name of an existing package.
*
*/
public Optional defaultVersion() {
return Optional.ofNullable(this.defaultVersion);
}
/**
* @return The display name for the application.
*
*/
public Optional displayName() {
return Optional.ofNullable(this.displayName);
}
/**
* @return The ETag of the resource, used for concurrency statements.
*
*/
public String etag() {
return this.etag;
}
/**
* @return The ID of the resource.
*
*/
public String id() {
return this.id;
}
/**
* @return The name of the resource.
*
*/
public String name() {
return this.name;
}
/**
* @return The type of the resource.
*
*/
public String type() {
return this.type;
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(GetApplicationResult defaults) {
return new Builder(defaults);
}
@CustomType.Builder
public static final class Builder {
private @Nullable Boolean allowUpdates;
private @Nullable String defaultVersion;
private @Nullable String displayName;
private String etag;
private String id;
private String name;
private String type;
public Builder() {}
public Builder(GetApplicationResult defaults) {
Objects.requireNonNull(defaults);
this.allowUpdates = defaults.allowUpdates;
this.defaultVersion = defaults.defaultVersion;
this.displayName = defaults.displayName;
this.etag = defaults.etag;
this.id = defaults.id;
this.name = defaults.name;
this.type = defaults.type;
}
@CustomType.Setter
public Builder allowUpdates(@Nullable Boolean allowUpdates) {
this.allowUpdates = allowUpdates;
return this;
}
@CustomType.Setter
public Builder defaultVersion(@Nullable String defaultVersion) {
this.defaultVersion = defaultVersion;
return this;
}
@CustomType.Setter
public Builder displayName(@Nullable String displayName) {
this.displayName = displayName;
return this;
}
@CustomType.Setter
public Builder etag(String etag) {
if (etag == null) {
throw new MissingRequiredPropertyException("GetApplicationResult", "etag");
}
this.etag = etag;
return this;
}
@CustomType.Setter
public Builder id(String id) {
if (id == null) {
throw new MissingRequiredPropertyException("GetApplicationResult", "id");
}
this.id = id;
return this;
}
@CustomType.Setter
public Builder name(String name) {
if (name == null) {
throw new MissingRequiredPropertyException("GetApplicationResult", "name");
}
this.name = name;
return this;
}
@CustomType.Setter
public Builder type(String type) {
if (type == null) {
throw new MissingRequiredPropertyException("GetApplicationResult", "type");
}
this.type = type;
return this;
}
public GetApplicationResult build() {
final var _resultValue = new GetApplicationResult();
_resultValue.allowUpdates = allowUpdates;
_resultValue.defaultVersion = defaultVersion;
_resultValue.displayName = displayName;
_resultValue.etag = etag;
_resultValue.id = id;
_resultValue.name = name;
_resultValue.type = type;
return _resultValue;
}
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy