All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.huaweicloud.sdk.bcs.v2.model.DeleteBlockchainRequest Maven / Gradle / Ivy

package com.huaweicloud.sdk.bcs.v2.model;





import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonValue;
import java.util.function.Consumer;
import java.util.Objects;

/**
 * Request Object
 */
public class DeleteBlockchainRequest  {



    @JsonInclude(JsonInclude.Include.NON_NULL)
    @JsonProperty(value="blockchain_id")
    
    private String blockchainId;


    @JsonInclude(JsonInclude.Include.NON_NULL)
    @JsonProperty(value="is_delete_storage")
    
    private Boolean isDeleteStorage;


    @JsonInclude(JsonInclude.Include.NON_NULL)
    @JsonProperty(value="is_delete_obs")
    
    private Boolean isDeleteObs;


    @JsonInclude(JsonInclude.Include.NON_NULL)
    @JsonProperty(value="is_delete_resource")
    
    private Boolean isDeleteResource;

    public DeleteBlockchainRequest withBlockchainId(String blockchainId) {
        this.blockchainId = blockchainId;
        return this;
    }

    


    /**
     * bcs 服务id
     * @return blockchainId
     */
    public String getBlockchainId() {
        return blockchainId;
    }

    public void setBlockchainId(String blockchainId) {
        this.blockchainId = blockchainId;
    }

    

    public DeleteBlockchainRequest withIsDeleteStorage(Boolean isDeleteStorage) {
        this.isDeleteStorage = isDeleteStorage;
        return this;
    }

    


    /**
     * [是否删除存储,IEF模式下不用填写](tag:online)[是否删除存储](tag:hcs)
     * @return isDeleteStorage
     */
    public Boolean getIsDeleteStorage() {
        return isDeleteStorage;
    }

    public void setIsDeleteStorage(Boolean isDeleteStorage) {
        this.isDeleteStorage = isDeleteStorage;
    }

    

    public DeleteBlockchainRequest withIsDeleteObs(Boolean isDeleteObs) {
        this.isDeleteObs = isDeleteObs;
        return this;
    }

    


    /**
     * [是否删除obs,IEF模式下不用填写](tag:online)[是否删除obs](tag:hcs)
     * @return isDeleteObs
     */
    public Boolean getIsDeleteObs() {
        return isDeleteObs;
    }

    public void setIsDeleteObs(Boolean isDeleteObs) {
        this.isDeleteObs = isDeleteObs;
    }

    

    public DeleteBlockchainRequest withIsDeleteResource(Boolean isDeleteResource) {
        this.isDeleteResource = isDeleteResource;
        return this;
    }

    


    /**
     * 是否删除底层CCE资源
     * @return isDeleteResource
     */
    public Boolean getIsDeleteResource() {
        return isDeleteResource;
    }

    public void setIsDeleteResource(Boolean isDeleteResource) {
        this.isDeleteResource = isDeleteResource;
    }

    

    @Override
    public boolean equals(java.lang.Object o) {
        if (this == o) {
            return true;
        }
        if (o == null || getClass() != o.getClass()) {
            return false;
        }
        DeleteBlockchainRequest deleteBlockchainRequest = (DeleteBlockchainRequest) o;
        return Objects.equals(this.blockchainId, deleteBlockchainRequest.blockchainId) &&
            Objects.equals(this.isDeleteStorage, deleteBlockchainRequest.isDeleteStorage) &&
            Objects.equals(this.isDeleteObs, deleteBlockchainRequest.isDeleteObs) &&
            Objects.equals(this.isDeleteResource, deleteBlockchainRequest.isDeleteResource);
    }
    @Override
    public int hashCode() {
        return Objects.hash(blockchainId, isDeleteStorage, isDeleteObs, isDeleteResource);
    }
    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append("class DeleteBlockchainRequest {\n");
        sb.append("    blockchainId: ").append(toIndentedString(blockchainId)).append("\n");
        sb.append("    isDeleteStorage: ").append(toIndentedString(isDeleteStorage)).append("\n");
        sb.append("    isDeleteObs: ").append(toIndentedString(isDeleteObs)).append("\n");
        sb.append("    isDeleteResource: ").append(toIndentedString(isDeleteResource)).append("\n");
        sb.append("}");
        return sb.toString();
    }
    /**
     * Convert the given object to string with each line indented by 4 spaces
     * (except the first line).
     */
    private String toIndentedString(java.lang.Object o) {
        if (o == null) {
            return "null";
        }
        return o.toString().replace("\n", "\n    ");
    }
    
}





© 2015 - 2025 Weber Informatics LLC | Privacy Policy