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

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

Go to download

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

The 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 GslbObjectInfo is a POJO class extends AviRestResource that used for creating
 * GslbObjectInfo.
 *
 * @version 1.0
 * @since 
 *
 */
@JsonIgnoreProperties(ignoreUnknown = true)
@JsonInclude(JsonInclude.Include.NON_NULL)
public class GslbObjectInfo  {
    @JsonProperty("obj")
    private GslbObj obj;

    @JsonProperty("object_uuid")
    private String objectUuid;

    @JsonProperty("pb_name")
    private String pbName;

    @JsonProperty("state")
    private String state;



    /**
     * This is the getter method this will return the attribute value.
     * Indicates the object uuid.
     * Field introduced in 18.1.5, 18.2.1.
     * 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 obj
     */
    public GslbObj getObj() {
        return obj;
    }

    /**
     * This is the setter method to the attribute.
     * Indicates the object uuid.
     * Field introduced in 18.1.5, 18.2.1.
     * 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 obj set the obj.
     */
    public void setObj(GslbObj obj) {
        this.obj = obj;
    }

    /**
     * This is the getter method this will return the attribute value.
     * Indicates the object uuid.
     * Field introduced in 17.1.1.
     * 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 objectUuid
     */
    public String getObjectUuid() {
        return objectUuid;
    }

    /**
     * This is the setter method to the attribute.
     * Indicates the object uuid.
     * Field introduced in 17.1.1.
     * 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 objectUuid set the objectUuid.
     */
    public void setObjectUuid(String  objectUuid) {
        this.objectUuid = objectUuid;
    }

    /**
     * This is the getter method this will return the attribute value.
     * Indicates the object type gslb, gslbservice or gslbgeodbprofile.
     * Field introduced in 17.1.1.
     * 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 pbName
     */
    public String getPbName() {
        return pbName;
    }

    /**
     * This is the setter method to the attribute.
     * Indicates the object type gslb, gslbservice or gslbgeodbprofile.
     * Field introduced in 17.1.1.
     * 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 pbName set the pbName.
     */
    public void setPbName(String  pbName) {
        this.pbName = pbName;
    }

    /**
     * This is the getter method this will return the attribute value.
     * Indicates the state of the object unchanged or changed.
     * This is used in vs-mgr to push just the uuid or uuid + protobuf to the se-agent.
     * Enum options - GSLB_OBJECT_CHANGED, GSLB_OBJECT_UNCHANGED, GSLB_OBJECT_DELETE.
     * Field introduced in 17.1.1.
     * 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 state
     */
    public String getState() {
        return state;
    }

    /**
     * This is the setter method to the attribute.
     * Indicates the state of the object unchanged or changed.
     * This is used in vs-mgr to push just the uuid or uuid + protobuf to the se-agent.
     * Enum options - GSLB_OBJECT_CHANGED, GSLB_OBJECT_UNCHANGED, GSLB_OBJECT_DELETE.
     * Field introduced in 17.1.1.
     * 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 state set the state.
     */
    public void setState(String  state) {
        this.state = state;
    }


    @Override
    public boolean equals(java.lang.Object o) {
      if (this == o) {
          return true;
      }
      if (o == null || getClass() != o.getClass()) {
          return false;
      }
      GslbObjectInfo objGslbObjectInfo = (GslbObjectInfo) o;
      return   Objects.equals(this.state, objGslbObjectInfo.state)&&
  Objects.equals(this.pbName, objGslbObjectInfo.pbName)&&
  Objects.equals(this.objectUuid, objGslbObjectInfo.objectUuid)&&
  Objects.equals(this.obj, objGslbObjectInfo.obj);
    }

    @Override
    public String toString() {
      StringBuilder sb = new StringBuilder();
      sb.append("class GslbObjectInfo {\n");
                  sb.append("    obj: ").append(toIndentedString(obj)).append("\n");
                        sb.append("    objectUuid: ").append(toIndentedString(objectUuid)).append("\n");
                        sb.append("    pbName: ").append(toIndentedString(pbName)).append("\n");
                        sb.append("    state: ").append(toIndentedString(state)).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