com.azure.resourcemanager.appplatform.models.BuildResultProperties Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of azure-resourcemanager-appplatform Show documentation
Show all versions of azure-resourcemanager-appplatform Show documentation
This package contains Microsoft Azure App Platform Management SDK. For documentation on how to use this package, please see https://aka.ms/azsdk/java/mgmt
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
// Code generated by Microsoft (R) AutoRest Code Generator.
package com.azure.resourcemanager.appplatform.models;
import com.azure.core.annotation.Fluent;
import com.fasterxml.jackson.annotation.JsonProperty;
import java.util.List;
/**
* Build result resource properties payload.
*/
@Fluent
public final class BuildResultProperties {
/*
* The name of this build result
*/
@JsonProperty(value = "name")
private String name;
/*
* Provisioning state of the KPack build result
*/
@JsonProperty(value = "provisioningState", access = JsonProperty.Access.WRITE_ONLY)
private BuildResultProvisioningState provisioningState;
/*
* Error when build is failed.
*/
@JsonProperty(value = "error")
private Error error;
/*
* The build pod name which can be used to get the build log streaming.
*/
@JsonProperty(value = "buildPodName")
private String buildPodName;
/*
* All of the build stage (init-container and container) resources in build pod.
*/
@JsonProperty(value = "buildStages", access = JsonProperty.Access.WRITE_ONLY)
private List buildStages;
/*
* The container registry image of this build result.
*/
@JsonProperty(value = "image", access = JsonProperty.Access.WRITE_ONLY)
private String image;
/**
* Creates an instance of BuildResultProperties class.
*/
public BuildResultProperties() {
}
/**
* Get the name property: The name of this build result.
*
* @return the name value.
*/
public String name() {
return this.name;
}
/**
* Set the name property: The name of this build result.
*
* @param name the name value to set.
* @return the BuildResultProperties object itself.
*/
public BuildResultProperties withName(String name) {
this.name = name;
return this;
}
/**
* Get the provisioningState property: Provisioning state of the KPack build result.
*
* @return the provisioningState value.
*/
public BuildResultProvisioningState provisioningState() {
return this.provisioningState;
}
/**
* Get the error property: Error when build is failed.
*
* @return the error value.
*/
public Error error() {
return this.error;
}
/**
* Set the error property: Error when build is failed.
*
* @param error the error value to set.
* @return the BuildResultProperties object itself.
*/
public BuildResultProperties withError(Error error) {
this.error = error;
return this;
}
/**
* Get the buildPodName property: The build pod name which can be used to get the build log streaming.
*
* @return the buildPodName value.
*/
public String buildPodName() {
return this.buildPodName;
}
/**
* Set the buildPodName property: The build pod name which can be used to get the build log streaming.
*
* @param buildPodName the buildPodName value to set.
* @return the BuildResultProperties object itself.
*/
public BuildResultProperties withBuildPodName(String buildPodName) {
this.buildPodName = buildPodName;
return this;
}
/**
* Get the buildStages property: All of the build stage (init-container and container) resources in build pod.
*
* @return the buildStages value.
*/
public List buildStages() {
return this.buildStages;
}
/**
* Get the image property: The container registry image of this build result.
*
* @return the image value.
*/
public String image() {
return this.image;
}
/**
* Validates the instance.
*
* @throws IllegalArgumentException thrown if the instance is not valid.
*/
public void validate() {
if (error() != null) {
error().validate();
}
if (buildStages() != null) {
buildStages().forEach(e -> e.validate());
}
}
}