com.pulumi.azurenative.app.outputs.GetBuildResult 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.app.outputs;
import com.pulumi.azurenative.app.outputs.BuildConfigurationResponse;
import com.pulumi.azurenative.app.outputs.ContainerRegistryWithCustomImageResponse;
import com.pulumi.azurenative.app.outputs.SystemDataResponse;
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 GetBuildResult {
/**
* @return Status of the build once it has been provisioned.
*
*/
private String buildStatus;
/**
* @return Configuration of the build.
*
*/
private @Nullable BuildConfigurationResponse configuration;
/**
* @return Container registry that the final image will be uploaded to.
*
*/
private @Nullable ContainerRegistryWithCustomImageResponse destinationContainerRegistry;
/**
* @return Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}
*
*/
private String id;
/**
* @return Endpoint from which the build logs can be streamed.
*
*/
private String logStreamEndpoint;
/**
* @return The name of the resource
*
*/
private String name;
/**
* @return Build provisioning state.
*
*/
private String provisioningState;
/**
* @return Azure Resource Manager metadata containing createdBy and modifiedBy information.
*
*/
private SystemDataResponse systemData;
/**
* @return Endpoint to use to retrieve an authentication token for log streaming and uploading source code.
*
*/
private String tokenEndpoint;
/**
* @return The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
*
*/
private String type;
/**
* @return Endpoint to which the source code should be uploaded.
*
*/
private String uploadEndpoint;
private GetBuildResult() {}
/**
* @return Status of the build once it has been provisioned.
*
*/
public String buildStatus() {
return this.buildStatus;
}
/**
* @return Configuration of the build.
*
*/
public Optional configuration() {
return Optional.ofNullable(this.configuration);
}
/**
* @return Container registry that the final image will be uploaded to.
*
*/
public Optional destinationContainerRegistry() {
return Optional.ofNullable(this.destinationContainerRegistry);
}
/**
* @return Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}
*
*/
public String id() {
return this.id;
}
/**
* @return Endpoint from which the build logs can be streamed.
*
*/
public String logStreamEndpoint() {
return this.logStreamEndpoint;
}
/**
* @return The name of the resource
*
*/
public String name() {
return this.name;
}
/**
* @return Build provisioning state.
*
*/
public String provisioningState() {
return this.provisioningState;
}
/**
* @return Azure Resource Manager metadata containing createdBy and modifiedBy information.
*
*/
public SystemDataResponse systemData() {
return this.systemData;
}
/**
* @return Endpoint to use to retrieve an authentication token for log streaming and uploading source code.
*
*/
public String tokenEndpoint() {
return this.tokenEndpoint;
}
/**
* @return The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
*
*/
public String type() {
return this.type;
}
/**
* @return Endpoint to which the source code should be uploaded.
*
*/
public String uploadEndpoint() {
return this.uploadEndpoint;
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(GetBuildResult defaults) {
return new Builder(defaults);
}
@CustomType.Builder
public static final class Builder {
private String buildStatus;
private @Nullable BuildConfigurationResponse configuration;
private @Nullable ContainerRegistryWithCustomImageResponse destinationContainerRegistry;
private String id;
private String logStreamEndpoint;
private String name;
private String provisioningState;
private SystemDataResponse systemData;
private String tokenEndpoint;
private String type;
private String uploadEndpoint;
public Builder() {}
public Builder(GetBuildResult defaults) {
Objects.requireNonNull(defaults);
this.buildStatus = defaults.buildStatus;
this.configuration = defaults.configuration;
this.destinationContainerRegistry = defaults.destinationContainerRegistry;
this.id = defaults.id;
this.logStreamEndpoint = defaults.logStreamEndpoint;
this.name = defaults.name;
this.provisioningState = defaults.provisioningState;
this.systemData = defaults.systemData;
this.tokenEndpoint = defaults.tokenEndpoint;
this.type = defaults.type;
this.uploadEndpoint = defaults.uploadEndpoint;
}
@CustomType.Setter
public Builder buildStatus(String buildStatus) {
if (buildStatus == null) {
throw new MissingRequiredPropertyException("GetBuildResult", "buildStatus");
}
this.buildStatus = buildStatus;
return this;
}
@CustomType.Setter
public Builder configuration(@Nullable BuildConfigurationResponse configuration) {
this.configuration = configuration;
return this;
}
@CustomType.Setter
public Builder destinationContainerRegistry(@Nullable ContainerRegistryWithCustomImageResponse destinationContainerRegistry) {
this.destinationContainerRegistry = destinationContainerRegistry;
return this;
}
@CustomType.Setter
public Builder id(String id) {
if (id == null) {
throw new MissingRequiredPropertyException("GetBuildResult", "id");
}
this.id = id;
return this;
}
@CustomType.Setter
public Builder logStreamEndpoint(String logStreamEndpoint) {
if (logStreamEndpoint == null) {
throw new MissingRequiredPropertyException("GetBuildResult", "logStreamEndpoint");
}
this.logStreamEndpoint = logStreamEndpoint;
return this;
}
@CustomType.Setter
public Builder name(String name) {
if (name == null) {
throw new MissingRequiredPropertyException("GetBuildResult", "name");
}
this.name = name;
return this;
}
@CustomType.Setter
public Builder provisioningState(String provisioningState) {
if (provisioningState == null) {
throw new MissingRequiredPropertyException("GetBuildResult", "provisioningState");
}
this.provisioningState = provisioningState;
return this;
}
@CustomType.Setter
public Builder systemData(SystemDataResponse systemData) {
if (systemData == null) {
throw new MissingRequiredPropertyException("GetBuildResult", "systemData");
}
this.systemData = systemData;
return this;
}
@CustomType.Setter
public Builder tokenEndpoint(String tokenEndpoint) {
if (tokenEndpoint == null) {
throw new MissingRequiredPropertyException("GetBuildResult", "tokenEndpoint");
}
this.tokenEndpoint = tokenEndpoint;
return this;
}
@CustomType.Setter
public Builder type(String type) {
if (type == null) {
throw new MissingRequiredPropertyException("GetBuildResult", "type");
}
this.type = type;
return this;
}
@CustomType.Setter
public Builder uploadEndpoint(String uploadEndpoint) {
if (uploadEndpoint == null) {
throw new MissingRequiredPropertyException("GetBuildResult", "uploadEndpoint");
}
this.uploadEndpoint = uploadEndpoint;
return this;
}
public GetBuildResult build() {
final var _resultValue = new GetBuildResult();
_resultValue.buildStatus = buildStatus;
_resultValue.configuration = configuration;
_resultValue.destinationContainerRegistry = destinationContainerRegistry;
_resultValue.id = id;
_resultValue.logStreamEndpoint = logStreamEndpoint;
_resultValue.name = name;
_resultValue.provisioningState = provisioningState;
_resultValue.systemData = systemData;
_resultValue.tokenEndpoint = tokenEndpoint;
_resultValue.type = type;
_resultValue.uploadEndpoint = uploadEndpoint;
return _resultValue;
}
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy