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

com.vmware.avi.sdk.model.SeUpgradeParams Maven / Gradle / Ivy

Go to download

Avi SDK is a java API which creates a session with controller and perform CRUD operations.

There is a newer version: 31.1.1.RELEASE
Show newest version
/*
 * Copyright 2021 VMware, Inc.
 * SPDX-License-Identifier: Apache License 2.0
 */

package com.vmware.avi.sdk.model;

import java.util.*;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import com.fasterxml.jackson.annotation.JsonInclude;

/**
 * The SeUpgradeParams is a POJO class extends AviRestResource that used for creating
 * SeUpgradeParams.
 *
 * @version 1.0
 * @since 
 *
 */
@JsonIgnoreProperties(ignoreUnknown = true)
@JsonInclude(JsonInclude.Include.NON_NULL)
public class SeUpgradeParams extends AviRestResource  {
    @JsonProperty("disruptive")
    private Boolean disruptive = false;

    @JsonProperty("patch")
    private Boolean patch = false;

    @JsonProperty("patch_rollback")
    private Boolean patchRollback = false;

    @JsonProperty("rollback")
    private Boolean rollback = false;

    @JsonProperty("se_group_refs")
    private List seGroupRefs;

    @JsonProperty("suspend_on_failure")
    private Boolean suspendOnFailure = false;

    @JsonProperty("uuid")
    private String uuid;



    /**
     * This is the getter method this will return the attribute value.
     * This field is used to disable scale-in/scale out operations during upgrade operations.
     * Allowed in enterprise edition with any value, essentials, basic, enterprise with cloud services edition.
     * Default value when not specified in API or module is interpreted by Avi Controller as false.
     * @return disruptive
     */
    public Boolean getDisruptive() {
        return disruptive;
    }

    /**
     * This is the setter method to the attribute.
     * This field is used to disable scale-in/scale out operations during upgrade operations.
     * Allowed in enterprise edition with any value, essentials, basic, enterprise with cloud services edition.
     * Default value when not specified in API or module is interpreted by Avi Controller as false.
     * @param disruptive set the disruptive.
     */
    public void setDisruptive(Boolean  disruptive) {
        this.disruptive = disruptive;
    }

    /**
     * This is the getter method this will return the attribute value.
     * Upgrade system with patch upgrade.
     * Field introduced in 17.2.2.
     * Allowed in enterprise edition with any value, essentials, basic, enterprise with cloud services edition.
     * Default value when not specified in API or module is interpreted by Avi Controller as false.
     * @return patch
     */
    public Boolean getPatch() {
        return patch;
    }

    /**
     * This is the setter method to the attribute.
     * Upgrade system with patch upgrade.
     * Field introduced in 17.2.2.
     * Allowed in enterprise edition with any value, essentials, basic, enterprise with cloud services edition.
     * Default value when not specified in API or module is interpreted by Avi Controller as false.
     * @param patch set the patch.
     */
    public void setPatch(Boolean  patch) {
        this.patch = patch;
    }

    /**
     * This is the getter method this will return the attribute value.
     * Rollback system with patch upgrade.
     * Allowed in enterprise edition with any value, essentials, basic, enterprise with cloud services edition.
     * Default value when not specified in API or module is interpreted by Avi Controller as false.
     * @return patchRollback
     */
    public Boolean getPatchRollback() {
        return patchRollback;
    }

    /**
     * This is the setter method to the attribute.
     * Rollback system with patch upgrade.
     * Allowed in enterprise edition with any value, essentials, basic, enterprise with cloud services edition.
     * Default value when not specified in API or module is interpreted by Avi Controller as false.
     * @param patchRollback set the patchRollback.
     */
    public void setPatchRollback(Boolean  patchRollback) {
        this.patchRollback = patchRollback;
    }

    /**
     * This is the getter method this will return the attribute value.
     * It is used in rollback operations.
     * Allowed in enterprise edition with any value, essentials, basic, enterprise with cloud services edition.
     * Default value when not specified in API or module is interpreted by Avi Controller as false.
     * @return rollback
     */
    public Boolean getRollback() {
        return rollback;
    }

    /**
     * This is the setter method to the attribute.
     * It is used in rollback operations.
     * Allowed in enterprise edition with any value, essentials, basic, enterprise with cloud services edition.
     * Default value when not specified in API or module is interpreted by Avi Controller as false.
     * @param rollback set the rollback.
     */
    public void setRollback(Boolean  rollback) {
        this.rollback = rollback;
    }
    /**
     * This is the getter method this will return the attribute value.
     * It is a reference to an object of type serviceenginegroup.
     * Field introduced in 17.2.2.
     * Allowed in enterprise edition with any value, essentials, basic, enterprise with cloud services edition.
     * Default value when not specified in API or module is interpreted by Avi Controller as null.
     * @return seGroupRefs
     */
    public List getSeGroupRefs() {
        return seGroupRefs;
    }

    /**
     * This is the setter method. this will set the seGroupRefs
     * It is a reference to an object of type serviceenginegroup.
     * Field introduced in 17.2.2.
     * Allowed in enterprise edition with any value, essentials, basic, enterprise with cloud services edition.
     * Default value when not specified in API or module is interpreted by Avi Controller as null.
     * @return seGroupRefs
     */
    public void setSeGroupRefs(List  seGroupRefs) {
        this.seGroupRefs = seGroupRefs;
    }

    /**
     * This is the setter method this will set the seGroupRefs
     * It is a reference to an object of type serviceenginegroup.
     * Field introduced in 17.2.2.
     * Allowed in enterprise edition with any value, essentials, basic, enterprise with cloud services edition.
     * Default value when not specified in API or module is interpreted by Avi Controller as null.
     * @return seGroupRefs
     */
    public SeUpgradeParams addSeGroupRefsItem(String seGroupRefsItem) {
      if (this.seGroupRefs == null) {
        this.seGroupRefs = new ArrayList();
      }
      this.seGroupRefs.add(seGroupRefsItem);
      return this;
    }

    /**
     * This is the getter method this will return the attribute value.
     * When set to true, if there is any failure during the se upgrade, upgrade will be suspended for this se group and manual intervention would be
     * needed to resume the upgrade.
     * Field introduced in 17.1.4.
     * Allowed in enterprise edition with any value, essentials, basic, enterprise with cloud services edition.
     * Default value when not specified in API or module is interpreted by Avi Controller as false.
     * @return suspendOnFailure
     */
    public Boolean getSuspendOnFailure() {
        return suspendOnFailure;
    }

    /**
     * This is the setter method to the attribute.
     * When set to true, if there is any failure during the se upgrade, upgrade will be suspended for this se group and manual intervention would be
     * needed to resume the upgrade.
     * Field introduced in 17.1.4.
     * Allowed in enterprise edition with any value, essentials, basic, enterprise with cloud services edition.
     * Default value when not specified in API or module is interpreted by Avi Controller as false.
     * @param suspendOnFailure set the suspendOnFailure.
     */
    public void setSuspendOnFailure(Boolean  suspendOnFailure) {
        this.suspendOnFailure = suspendOnFailure;
    }

    /**
     * This is the getter method this will return the attribute value.
     * Allowed in enterprise edition with any value, essentials, basic, enterprise with cloud services edition.
     * Default value when not specified in API or module is interpreted by Avi Controller as null.
     * @return uuid
     */
    public String getUuid() {
        return uuid;
    }

    /**
     * This is the setter method to the attribute.
     * Allowed in enterprise edition with any value, essentials, basic, enterprise with cloud services edition.
     * Default value when not specified in API or module is interpreted by Avi Controller as null.
     * @param uuid set the uuid.
     */
    public void setUuid(String  uuid) {
        this.uuid = uuid;
    }


    @Override
    public boolean equals(java.lang.Object o) {
      if (this == o) {
          return true;
      }
      if (o == null || getClass() != o.getClass()) {
          return false;
      }
      SeUpgradeParams objSeUpgradeParams = (SeUpgradeParams) o;
      return   Objects.equals(this.uuid, objSeUpgradeParams.uuid)&&
  Objects.equals(this.disruptive, objSeUpgradeParams.disruptive)&&
  Objects.equals(this.rollback, objSeUpgradeParams.rollback)&&
  Objects.equals(this.suspendOnFailure, objSeUpgradeParams.suspendOnFailure)&&
  Objects.equals(this.patch, objSeUpgradeParams.patch)&&
  Objects.equals(this.seGroupRefs, objSeUpgradeParams.seGroupRefs)&&
  Objects.equals(this.patchRollback, objSeUpgradeParams.patchRollback);
    }

    @Override
    public String toString() {
      StringBuilder sb = new StringBuilder();
      sb.append("class SeUpgradeParams {\n");
                  sb.append("    disruptive: ").append(toIndentedString(disruptive)).append("\n");
                        sb.append("    patch: ").append(toIndentedString(patch)).append("\n");
                        sb.append("    patchRollback: ").append(toIndentedString(patchRollback)).append("\n");
                        sb.append("    rollback: ").append(toIndentedString(rollback)).append("\n");
                        sb.append("    seGroupRefs: ").append(toIndentedString(seGroupRefs)).append("\n");
                        sb.append("    suspendOnFailure: ").append(toIndentedString(suspendOnFailure)).append("\n");
                        sb.append("    uuid: ").append(toIndentedString(uuid)).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