com.aliyun.sdk.service.bpstudio20210931.models.GetApplicationResponseBody Maven / Gradle / Ivy
Show all versions of alibabacloud-bpstudio20210931 Show documentation
// This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.bpstudio20210931.models;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.pop.models.*;
/**
* {@link GetApplicationResponseBody} extends {@link TeaModel}
*
* GetApplicationResponseBody
*/
public class GetApplicationResponseBody extends TeaModel {
@com.aliyun.core.annotation.NameInMap("Code")
private String code;
@com.aliyun.core.annotation.NameInMap("Data")
private Data data;
@com.aliyun.core.annotation.NameInMap("Message")
private String message;
@com.aliyun.core.annotation.NameInMap("RequestId")
private String requestId;
private GetApplicationResponseBody(Builder builder) {
this.code = builder.code;
this.data = builder.data;
this.message = builder.message;
this.requestId = builder.requestId;
}
public static Builder builder() {
return new Builder();
}
public static GetApplicationResponseBody create() {
return builder().build();
}
/**
* @return code
*/
public String getCode() {
return this.code;
}
/**
* @return data
*/
public Data getData() {
return this.data;
}
/**
* @return message
*/
public String getMessage() {
return this.message;
}
/**
* @return requestId
*/
public String getRequestId() {
return this.requestId;
}
public static final class Builder {
private String code;
private Data data;
private String message;
private String requestId;
/**
* The response code.
*/
public Builder code(String code) {
this.code = code;
return this;
}
/**
* The details of the application.
*/
public Builder data(Data data) {
this.data = data;
return this;
}
/**
* Reason for the request failure
*/
public Builder message(String message) {
this.message = message;
return this;
}
/**
* Request ID
*/
public Builder requestId(String requestId) {
this.requestId = requestId;
return this;
}
public GetApplicationResponseBody build() {
return new GetApplicationResponseBody(this);
}
}
public static class Checklist extends TeaModel {
@com.aliyun.core.annotation.NameInMap("Lifecycle")
private String lifecycle;
@com.aliyun.core.annotation.NameInMap("Region")
private String region;
@com.aliyun.core.annotation.NameInMap("Remark")
private String remark;
@com.aliyun.core.annotation.NameInMap("ResourceCode")
private String resourceCode;
@com.aliyun.core.annotation.NameInMap("ResourceName")
private String resourceName;
@com.aliyun.core.annotation.NameInMap("Result")
private String result;
@com.aliyun.core.annotation.NameInMap("Specification")
private String specification;
private Checklist(Builder builder) {
this.lifecycle = builder.lifecycle;
this.region = builder.region;
this.remark = builder.remark;
this.resourceCode = builder.resourceCode;
this.resourceName = builder.resourceName;
this.result = builder.result;
this.specification = builder.specification;
}
public static Builder builder() {
return new Builder();
}
public static Checklist create() {
return builder().build();
}
/**
* @return lifecycle
*/
public String getLifecycle() {
return this.lifecycle;
}
/**
* @return region
*/
public String getRegion() {
return this.region;
}
/**
* @return remark
*/
public String getRemark() {
return this.remark;
}
/**
* @return resourceCode
*/
public String getResourceCode() {
return this.resourceCode;
}
/**
* @return resourceName
*/
public String getResourceName() {
return this.resourceName;
}
/**
* @return result
*/
public String getResult() {
return this.result;
}
/**
* @return specification
*/
public String getSpecification() {
return this.specification;
}
public static final class Builder {
private String lifecycle;
private String region;
private String remark;
private String resourceCode;
private String resourceName;
private String result;
private String specification;
/**
* The resource tag.
*/
public Builder lifecycle(String lifecycle) {
this.lifecycle = lifecycle;
return this;
}
/**
* The region in which the instance resides.
*/
public Builder region(String region) {
this.region = region;
return this;
}
/**
* The message returned for verification.
*/
public Builder remark(String remark) {
this.remark = remark;
return this;
}
/**
* The service code.
*/
public Builder resourceCode(String resourceCode) {
this.resourceCode = resourceCode;
return this;
}
/**
* The name of the instance.
*/
public Builder resourceName(String resourceName) {
this.resourceName = resourceName;
return this;
}
/**
* The verification result.
*/
public Builder result(String result) {
this.result = result;
return this;
}
/**
* The resource specifications.
*/
public Builder specification(String specification) {
this.specification = specification;
return this;
}
public Checklist build() {
return new Checklist(this);
}
}
}
public static class PriceList extends TeaModel {
@com.aliyun.core.annotation.NameInMap("ChargeType")
private String chargeType;
@com.aliyun.core.annotation.NameInMap("Count")
private Integer count;
@com.aliyun.core.annotation.NameInMap("InstanceName")
private String instanceName;
@com.aliyun.core.annotation.NameInMap("Lifecycle")
private String lifecycle;
@com.aliyun.core.annotation.NameInMap("OnePrice")
private Double onePrice;
@com.aliyun.core.annotation.NameInMap("OriginalPrice")
private Double originalPrice;
@com.aliyun.core.annotation.NameInMap("Period")
private Integer period;
@com.aliyun.core.annotation.NameInMap("Price")
private Double price;
@com.aliyun.core.annotation.NameInMap("PriceUnit")
private String priceUnit;
@com.aliyun.core.annotation.NameInMap("Region")
private String region;
@com.aliyun.core.annotation.NameInMap("Remark")
private String remark;
@com.aliyun.core.annotation.NameInMap("ResourceCode")
private String resourceCode;
@com.aliyun.core.annotation.NameInMap("Specification")
private String specification;
@com.aliyun.core.annotation.NameInMap("type")
private String type;
private PriceList(Builder builder) {
this.chargeType = builder.chargeType;
this.count = builder.count;
this.instanceName = builder.instanceName;
this.lifecycle = builder.lifecycle;
this.onePrice = builder.onePrice;
this.originalPrice = builder.originalPrice;
this.period = builder.period;
this.price = builder.price;
this.priceUnit = builder.priceUnit;
this.region = builder.region;
this.remark = builder.remark;
this.resourceCode = builder.resourceCode;
this.specification = builder.specification;
this.type = builder.type;
}
public static Builder builder() {
return new Builder();
}
public static PriceList create() {
return builder().build();
}
/**
* @return chargeType
*/
public String getChargeType() {
return this.chargeType;
}
/**
* @return count
*/
public Integer getCount() {
return this.count;
}
/**
* @return instanceName
*/
public String getInstanceName() {
return this.instanceName;
}
/**
* @return lifecycle
*/
public String getLifecycle() {
return this.lifecycle;
}
/**
* @return onePrice
*/
public Double getOnePrice() {
return this.onePrice;
}
/**
* @return originalPrice
*/
public Double getOriginalPrice() {
return this.originalPrice;
}
/**
* @return period
*/
public Integer getPeriod() {
return this.period;
}
/**
* @return price
*/
public Double getPrice() {
return this.price;
}
/**
* @return priceUnit
*/
public String getPriceUnit() {
return this.priceUnit;
}
/**
* @return region
*/
public String getRegion() {
return this.region;
}
/**
* @return remark
*/
public String getRemark() {
return this.remark;
}
/**
* @return resourceCode
*/
public String getResourceCode() {
return this.resourceCode;
}
/**
* @return specification
*/
public String getSpecification() {
return this.specification;
}
/**
* @return type
*/
public String getType() {
return this.type;
}
public static final class Builder {
private String chargeType;
private Integer count;
private String instanceName;
private String lifecycle;
private Double onePrice;
private Double originalPrice;
private Integer period;
private Double price;
private String priceUnit;
private String region;
private String remark;
private String resourceCode;
private String specification;
private String type;
/**
* The billing method.
*/
public Builder chargeType(String chargeType) {
this.chargeType = chargeType;
return this;
}
/**
* The quantity.
*/
public Builder count(Integer count) {
this.count = count;
return this;
}
/**
* The name of the instance.
*/
public Builder instanceName(String instanceName) {
this.instanceName = instanceName;
return this;
}
/**
* Resource Fill Labels.
*/
public Builder lifecycle(String lifecycle) {
this.lifecycle = lifecycle;
return this;
}
/**
* The unit price of the instance.
*/
public Builder onePrice(Double onePrice) {
this.onePrice = onePrice;
return this;
}
/**
* The original price of the instance.
*/
public Builder originalPrice(Double originalPrice) {
this.originalPrice = originalPrice;
return this;
}
/**
* The service duration.
*/
public Builder period(Integer period) {
this.period = period;
return this;
}
/**
* The total price.
*/
public Builder price(Double price) {
this.price = price;
return this;
}
/**
* Unit: USD per hour
*/
public Builder priceUnit(String priceUnit) {
this.priceUnit = priceUnit;
return this;
}
/**
* The region in which the instance resides.
*/
public Builder region(String region) {
this.region = region;
return this;
}
/**
* The error message that is returned when a price query fails.
*/
public Builder remark(String remark) {
this.remark = remark;
return this;
}
/**
* Product code
*/
public Builder resourceCode(String resourceCode) {
this.resourceCode = resourceCode;
return this;
}
/**
* The instance type. This parameter indicates the information about the instance type. For example, 192.168.0.0/16 may be returned for a Virtual Private Cloud (VPC) instance, ecs.g5.large may be returned for an Elastic Compute Service (ECS) instance, and slb.s1.small may be returned for a Server Load Balancer (SLB) instance. If the resource does not have a specific type, an empty value is returned.
*/
public Builder specification(String specification) {
this.specification = specification;
return this;
}
/**
* The creation mode. Valid values:\
*
* 1: creates a new instance.\
* 2: imports an instance.
*/
public Builder type(String type) {
this.type = type;
return this;
}
public PriceList build() {
return new PriceList(this);
}
}
}
public static class ResourceList extends TeaModel {
@com.aliyun.core.annotation.NameInMap("ChargeType")
private String chargeType;
@com.aliyun.core.annotation.NameInMap("Lifecycle")
private String lifecycle;
@com.aliyun.core.annotation.NameInMap("NodeLabel")
private String nodeLabel;
@com.aliyun.core.annotation.NameInMap("Remark")
private String remark;
@com.aliyun.core.annotation.NameInMap("ResourceCode")
private String resourceCode;
@com.aliyun.core.annotation.NameInMap("ResourceId")
private String resourceId;
@com.aliyun.core.annotation.NameInMap("ResourceName")
private String resourceName;
@com.aliyun.core.annotation.NameInMap("ResourceType")
private String resourceType;
@com.aliyun.core.annotation.NameInMap("Status")
private String status;
private ResourceList(Builder builder) {
this.chargeType = builder.chargeType;
this.lifecycle = builder.lifecycle;
this.nodeLabel = builder.nodeLabel;
this.remark = builder.remark;
this.resourceCode = builder.resourceCode;
this.resourceId = builder.resourceId;
this.resourceName = builder.resourceName;
this.resourceType = builder.resourceType;
this.status = builder.status;
}
public static Builder builder() {
return new Builder();
}
public static ResourceList create() {
return builder().build();
}
/**
* @return chargeType
*/
public String getChargeType() {
return this.chargeType;
}
/**
* @return lifecycle
*/
public String getLifecycle() {
return this.lifecycle;
}
/**
* @return nodeLabel
*/
public String getNodeLabel() {
return this.nodeLabel;
}
/**
* @return remark
*/
public String getRemark() {
return this.remark;
}
/**
* @return resourceCode
*/
public String getResourceCode() {
return this.resourceCode;
}
/**
* @return resourceId
*/
public String getResourceId() {
return this.resourceId;
}
/**
* @return resourceName
*/
public String getResourceName() {
return this.resourceName;
}
/**
* @return resourceType
*/
public String getResourceType() {
return this.resourceType;
}
/**
* @return status
*/
public String getStatus() {
return this.status;
}
public static final class Builder {
private String chargeType;
private String lifecycle;
private String nodeLabel;
private String remark;
private String resourceCode;
private String resourceId;
private String resourceName;
private String resourceType;
private String status;
/**
* The billing method.
*/
public Builder chargeType(String chargeType) {
this.chargeType = chargeType;
return this;
}
/**
* The resource tag.
*/
public Builder lifecycle(String lifecycle) {
this.lifecycle = lifecycle;
return this;
}
/**
* NodeLabel.
*/
public Builder nodeLabel(String nodeLabel) {
this.nodeLabel = nodeLabel;
return this;
}
/**
* The deployment result.
*/
public Builder remark(String remark) {
this.remark = remark;
return this;
}
/**
* The service code.
*/
public Builder resourceCode(String resourceCode) {
this.resourceCode = resourceCode;
return this;
}
/**
* The instance ID.
*/
public Builder resourceId(String resourceId) {
this.resourceId = resourceId;
return this;
}
/**
* The name of the instance.
*/
public Builder resourceName(String resourceName) {
this.resourceName = resourceName;
return this;
}
/**
* The type of the resource.
*/
public Builder resourceType(String resourceType) {
this.resourceType = resourceType;
return this;
}
/**
* The resource deployment result.
*/
public Builder status(String status) {
this.status = status;
return this;
}
public ResourceList build() {
return new ResourceList(this);
}
}
}
public static class Data extends TeaModel {
@com.aliyun.core.annotation.NameInMap("ApplicationId")
private String applicationId;
@com.aliyun.core.annotation.NameInMap("Checklist")
private java.util.List < Checklist> checklist;
@com.aliyun.core.annotation.NameInMap("CreateTime")
private String createTime;
@com.aliyun.core.annotation.NameInMap("DeployPercent")
private Double deployPercent;
@com.aliyun.core.annotation.NameInMap("Description")
private String description;
@com.aliyun.core.annotation.NameInMap("Error")
private String error;
@com.aliyun.core.annotation.NameInMap("ImageURL")
private String imageURL;
@com.aliyun.core.annotation.NameInMap("Name")
private String name;
@com.aliyun.core.annotation.NameInMap("PriceList")
private java.util.List < PriceList> priceList;
@com.aliyun.core.annotation.NameInMap("ResourceGroupId")
private String resourceGroupId;
@com.aliyun.core.annotation.NameInMap("ResourceList")
private java.util.List < ResourceList> resourceList;
@com.aliyun.core.annotation.NameInMap("Status")
private String status;
@com.aliyun.core.annotation.NameInMap("TemplateId")
private String templateId;
private Data(Builder builder) {
this.applicationId = builder.applicationId;
this.checklist = builder.checklist;
this.createTime = builder.createTime;
this.deployPercent = builder.deployPercent;
this.description = builder.description;
this.error = builder.error;
this.imageURL = builder.imageURL;
this.name = builder.name;
this.priceList = builder.priceList;
this.resourceGroupId = builder.resourceGroupId;
this.resourceList = builder.resourceList;
this.status = builder.status;
this.templateId = builder.templateId;
}
public static Builder builder() {
return new Builder();
}
public static Data create() {
return builder().build();
}
/**
* @return applicationId
*/
public String getApplicationId() {
return this.applicationId;
}
/**
* @return checklist
*/
public java.util.List < Checklist> getChecklist() {
return this.checklist;
}
/**
* @return createTime
*/
public String getCreateTime() {
return this.createTime;
}
/**
* @return deployPercent
*/
public Double getDeployPercent() {
return this.deployPercent;
}
/**
* @return description
*/
public String getDescription() {
return this.description;
}
/**
* @return error
*/
public String getError() {
return this.error;
}
/**
* @return imageURL
*/
public String getImageURL() {
return this.imageURL;
}
/**
* @return name
*/
public String getName() {
return this.name;
}
/**
* @return priceList
*/
public java.util.List < PriceList> getPriceList() {
return this.priceList;
}
/**
* @return resourceGroupId
*/
public String getResourceGroupId() {
return this.resourceGroupId;
}
/**
* @return resourceList
*/
public java.util.List < ResourceList> getResourceList() {
return this.resourceList;
}
/**
* @return status
*/
public String getStatus() {
return this.status;
}
/**
* @return templateId
*/
public String getTemplateId() {
return this.templateId;
}
public static final class Builder {
private String applicationId;
private java.util.List < Checklist> checklist;
private String createTime;
private Double deployPercent;
private String description;
private String error;
private String imageURL;
private String name;
private java.util.List < PriceList> priceList;
private String resourceGroupId;
private java.util.List < ResourceList> resourceList;
private String status;
private String templateId;
/**
* App ID
*/
public Builder applicationId(String applicationId) {
this.applicationId = applicationId;
return this;
}
/**
* The resource tag.
*/
public Builder checklist(java.util.List < Checklist> checklist) {
this.checklist = checklist;
return this;
}
/**
* The time when the app was created
*/
public Builder createTime(String createTime) {
this.createTime = createTime;
return this;
}
/**
* DeployPercent.
*/
public Builder deployPercent(Double deployPercent) {
this.deployPercent = deployPercent;
return this;
}
/**
* Application description
*/
public Builder description(String description) {
this.description = description;
return this;
}
/**
* The resource type.
*/
public Builder error(String error) {
this.error = error;
return this;
}
/**
* The URL of the image in the database.
*/
public Builder imageURL(String imageURL) {
this.imageURL = imageURL;
return this;
}
/**
* App name
*/
public Builder name(String name) {
this.name = name;
return this;
}
/**
* The billing results.
*/
public Builder priceList(java.util.List < PriceList> priceList) {
this.priceList = priceList;
return this;
}
/**
* The ID of the resource group to which the app belongs
*/
public Builder resourceGroupId(String resourceGroupId) {
this.resourceGroupId = resourceGroupId;
return this;
}
/**
* The resource specification.
*/
public Builder resourceList(java.util.List < ResourceList> resourceList) {
this.resourceList = resourceList;
return this;
}
/**
* Verification passed
*/
public Builder status(String status) {
this.status = status;
return this;
}
/**
* The ID of the template associated with the application
*/
public Builder templateId(String templateId) {
this.templateId = templateId;
return this;
}
public Data build() {
return new Data(this);
}
}
}
}