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

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

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

    @JsonProperty("free_ip_count")
    private Integer freeIpCount;

    @JsonProperty("total_ip_count")
    private Integer totalIpCount;

    @JsonProperty("type")
    private String type = "STATIC_IPS_FOR_VIP_AND_SE";


    /**
     * This is the getter method this will return the attribute value.
     * Allocated ips.
     * Field introduced in 20.1.3.
     * Allowed in enterprise edition with any value, enterprise with cloud services edition.
     * Default value when not specified in API or module is interpreted by Avi Controller as null.
     * @return allocatedIps
     */
    public List getAllocatedIps() {
        return allocatedIps;
    }

    /**
     * This is the setter method. this will set the allocatedIps
     * Allocated ips.
     * Field introduced in 20.1.3.
     * Allowed in enterprise edition with any value, enterprise with cloud services edition.
     * Default value when not specified in API or module is interpreted by Avi Controller as null.
     * @return allocatedIps
     */
    public void setAllocatedIps(List  allocatedIps) {
        this.allocatedIps = allocatedIps;
    }

    /**
     * This is the setter method this will set the allocatedIps
     * Allocated ips.
     * Field introduced in 20.1.3.
     * Allowed in enterprise edition with any value, enterprise with cloud services edition.
     * Default value when not specified in API or module is interpreted by Avi Controller as null.
     * @return allocatedIps
     */
    public StaticIpRangeRuntime addAllocatedIpsItem(StaticIpAllocInfo allocatedIpsItem) {
      if (this.allocatedIps == null) {
        this.allocatedIps = new ArrayList();
      }
      this.allocatedIps.add(allocatedIpsItem);
      return this;
    }

    /**
     * This is the getter method this will return the attribute value.
     * Free ip count.
     * Field introduced in 20.1.3.
     * Allowed in enterprise edition with any value, enterprise with cloud services edition.
     * Default value when not specified in API or module is interpreted by Avi Controller as null.
     * @return freeIpCount
     */
    public Integer getFreeIpCount() {
        return freeIpCount;
    }

    /**
     * This is the setter method to the attribute.
     * Free ip count.
     * Field introduced in 20.1.3.
     * Allowed in enterprise edition with any value, enterprise with cloud services edition.
     * Default value when not specified in API or module is interpreted by Avi Controller as null.
     * @param freeIpCount set the freeIpCount.
     */
    public void setFreeIpCount(Integer  freeIpCount) {
        this.freeIpCount = freeIpCount;
    }

    /**
     * This is the getter method this will return the attribute value.
     * Total ip count.
     * Field introduced in 20.1.3.
     * Allowed in enterprise edition with any value, enterprise with cloud services edition.
     * Default value when not specified in API or module is interpreted by Avi Controller as null.
     * @return totalIpCount
     */
    public Integer getTotalIpCount() {
        return totalIpCount;
    }

    /**
     * This is the setter method to the attribute.
     * Total ip count.
     * Field introduced in 20.1.3.
     * Allowed in enterprise edition with any value, enterprise with cloud services edition.
     * Default value when not specified in API or module is interpreted by Avi Controller as null.
     * @param totalIpCount set the totalIpCount.
     */
    public void setTotalIpCount(Integer  totalIpCount) {
        this.totalIpCount = totalIpCount;
    }

    /**
     * This is the getter method this will return the attribute value.
     * Object type (vip only, service engine only, or both) which is using this ip group.
     * Enum options - STATIC_IPS_FOR_SE, STATIC_IPS_FOR_VIP, STATIC_IPS_FOR_VIP_AND_SE.
     * Field introduced in 20.1.3.
     * Allowed in enterprise edition with any value, enterprise with cloud services edition.
     * Default value when not specified in API or module is interpreted by Avi Controller as "STATIC_IPS_FOR_VIP_AND_SE".
     * @return type
     */
    public String getType() {
        return type;
    }

    /**
     * This is the setter method to the attribute.
     * Object type (vip only, service engine only, or both) which is using this ip group.
     * Enum options - STATIC_IPS_FOR_SE, STATIC_IPS_FOR_VIP, STATIC_IPS_FOR_VIP_AND_SE.
     * Field introduced in 20.1.3.
     * Allowed in enterprise edition with any value, enterprise with cloud services edition.
     * Default value when not specified in API or module is interpreted by Avi Controller as "STATIC_IPS_FOR_VIP_AND_SE".
     * @param type set the type.
     */
    public void setType(String  type) {
        this.type = type;
    }


    @Override
    public boolean equals(java.lang.Object o) {
      if (this == o) {
          return true;
      }
      if (o == null || getClass() != o.getClass()) {
          return false;
      }
      StaticIpRangeRuntime objStaticIpRangeRuntime = (StaticIpRangeRuntime) o;
      return   Objects.equals(this.type, objStaticIpRangeRuntime.type)&&
  Objects.equals(this.allocatedIps, objStaticIpRangeRuntime.allocatedIps)&&
  Objects.equals(this.totalIpCount, objStaticIpRangeRuntime.totalIpCount)&&
  Objects.equals(this.freeIpCount, objStaticIpRangeRuntime.freeIpCount);
    }

    @Override
    public String toString() {
      StringBuilder sb = new StringBuilder();
      sb.append("class StaticIpRangeRuntime {\n");
                  sb.append("    allocatedIps: ").append(toIndentedString(allocatedIps)).append("\n");
                        sb.append("    freeIpCount: ").append(toIndentedString(freeIpCount)).append("\n");
                        sb.append("    totalIpCount: ").append(toIndentedString(totalIpCount)).append("\n");
                        sb.append("    type: ").append(toIndentedString(type)).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