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

com.huaweicloud.sdk.geip.v3.model.DisassociateInstanceRequest Maven / Gradle / Ivy

There is a newer version: 3.1.114
Show newest version
package com.huaweicloud.sdk.geip.v3.model;

import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonProperty;

import java.util.Objects;

/**
 * Request Object
 */
public class DisassociateInstanceRequest {

    @JsonInclude(JsonInclude.Include.NON_NULL)
    @JsonProperty(value = "is_reserve_gcb")

    private Boolean isReserveGcb;

    @JsonInclude(JsonInclude.Include.NON_NULL)
    @JsonProperty(value = "global_eip_id")

    private String globalEipId;

    public DisassociateInstanceRequest withIsReserveGcb(Boolean isReserveGcb) {
        this.isReserveGcb = isReserveGcb;
        return this;
    }

    /**
     * 解绑实例后是否保留GCB,false表示解绑实例后会同时删除GCB
     * @return isReserveGcb
     */
    public Boolean getIsReserveGcb() {
        return isReserveGcb;
    }

    public void setIsReserveGcb(Boolean isReserveGcb) {
        this.isReserveGcb = isReserveGcb;
    }

    public DisassociateInstanceRequest withGlobalEipId(String globalEipId) {
        this.globalEipId = globalEipId;
        return this;
    }

    /**
     * Get globalEipId
     * @return globalEipId
     */
    public String getGlobalEipId() {
        return globalEipId;
    }

    public void setGlobalEipId(String globalEipId) {
        this.globalEipId = globalEipId;
    }

    @Override
    public boolean equals(java.lang.Object obj) {
        if (this == obj) {
            return true;
        }
        if (obj == null || getClass() != obj.getClass()) {
            return false;
        }
        DisassociateInstanceRequest that = (DisassociateInstanceRequest) obj;
        return Objects.equals(this.isReserveGcb, that.isReserveGcb)
            && Objects.equals(this.globalEipId, that.globalEipId);
    }

    @Override
    public int hashCode() {
        return Objects.hash(isReserveGcb, globalEipId);
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append("class DisassociateInstanceRequest {\n");
        sb.append("    isReserveGcb: ").append(toIndentedString(isReserveGcb)).append("\n");
        sb.append("    globalEipId: ").append(toIndentedString(globalEipId)).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 - 2024 Weber Informatics LLC | Privacy Policy