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

com.vmware.avi.sdk.model.DataNetworkConfig 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 DataNetworkConfig is a POJO class extends AviRestResource that used for creating
 * DataNetworkConfig.
 *
 * @version 1.0
 * @since 
 *
 */
@JsonIgnoreProperties(ignoreUnknown = true)
@JsonInclude(JsonInclude.Include.NON_NULL)
public class DataNetworkConfig  {
    @JsonProperty("tier1_segment_config")
    private NsxtTier1SegmentConfig tier1SegmentConfig;

    @JsonProperty("transport_zone")
    private String transportZone;

    @JsonProperty("tz_type")
    private String tzType;

    @JsonProperty("vlan_segments")
    private List vlanSegments;



    /**
     * This is the getter method this will return the attribute value.
     * Nsxt tier1 segment configuration for avi service engine data path.
     * This should be set only when transport zone is of type overlay.
     * Field introduced in 20.1.5.
     * Allowed in enterprise edition with any value, basic 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 tier1SegmentConfig
     */
    public NsxtTier1SegmentConfig getTier1SegmentConfig() {
        return tier1SegmentConfig;
    }

    /**
     * This is the setter method to the attribute.
     * Nsxt tier1 segment configuration for avi service engine data path.
     * This should be set only when transport zone is of type overlay.
     * Field introduced in 20.1.5.
     * Allowed in enterprise edition with any value, basic 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 tier1SegmentConfig set the tier1SegmentConfig.
     */
    public void setTier1SegmentConfig(NsxtTier1SegmentConfig tier1SegmentConfig) {
        this.tier1SegmentConfig = tier1SegmentConfig;
    }

    /**
     * This is the getter method this will return the attribute value.
     * Data transport zone path for avi service engines.
     * Example- /infra/sites/default/enforcement-points/default/transport-zones/xxx-xxx-xxxx.
     * Field introduced in 20.1.5.
     * Allowed in enterprise edition with any value, basic 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 transportZone
     */
    public String getTransportZone() {
        return transportZone;
    }

    /**
     * This is the setter method to the attribute.
     * Data transport zone path for avi service engines.
     * Example- /infra/sites/default/enforcement-points/default/transport-zones/xxx-xxx-xxxx.
     * Field introduced in 20.1.5.
     * Allowed in enterprise edition with any value, basic 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 transportZone set the transportZone.
     */
    public void setTransportZone(String  transportZone) {
        this.transportZone = transportZone;
    }

    /**
     * This is the getter method this will return the attribute value.
     * Data transport zone type overlay or vlan.
     * Enum options - OVERLAY, VLAN.
     * Field introduced in 20.1.5.
     * Allowed in enterprise edition with any value, basic 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 tzType
     */
    public String getTzType() {
        return tzType;
    }

    /**
     * This is the setter method to the attribute.
     * Data transport zone type overlay or vlan.
     * Enum options - OVERLAY, VLAN.
     * Field introduced in 20.1.5.
     * Allowed in enterprise edition with any value, basic 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 tzType set the tzType.
     */
    public void setTzType(String  tzType) {
        this.tzType = tzType;
    }
    /**
     * This is the getter method this will return the attribute value.
     * Data vlan segments path to use for avi service engines.
     * Example- /infra/segments/vlanls.
     * This should be set only when transport zone is of type vlan.
     * Field introduced in 20.1.5.
     * 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 vlanSegments
     */
    public List getVlanSegments() {
        return vlanSegments;
    }

    /**
     * This is the setter method. this will set the vlanSegments
     * Data vlan segments path to use for avi service engines.
     * Example- /infra/segments/vlanls.
     * This should be set only when transport zone is of type vlan.
     * Field introduced in 20.1.5.
     * 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 vlanSegments
     */
    public void setVlanSegments(List  vlanSegments) {
        this.vlanSegments = vlanSegments;
    }

    /**
     * This is the setter method this will set the vlanSegments
     * Data vlan segments path to use for avi service engines.
     * Example- /infra/segments/vlanls.
     * This should be set only when transport zone is of type vlan.
     * Field introduced in 20.1.5.
     * 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 vlanSegments
     */
    public DataNetworkConfig addVlanSegmentsItem(String vlanSegmentsItem) {
      if (this.vlanSegments == null) {
        this.vlanSegments = new ArrayList();
      }
      this.vlanSegments.add(vlanSegmentsItem);
      return this;
    }


    @Override
    public boolean equals(java.lang.Object o) {
      if (this == o) {
          return true;
      }
      if (o == null || getClass() != o.getClass()) {
          return false;
      }
      DataNetworkConfig objDataNetworkConfig = (DataNetworkConfig) o;
      return   Objects.equals(this.tzType, objDataNetworkConfig.tzType)&&
  Objects.equals(this.transportZone, objDataNetworkConfig.transportZone)&&
  Objects.equals(this.vlanSegments, objDataNetworkConfig.vlanSegments)&&
  Objects.equals(this.tier1SegmentConfig, objDataNetworkConfig.tier1SegmentConfig);
    }

    @Override
    public String toString() {
      StringBuilder sb = new StringBuilder();
      sb.append("class DataNetworkConfig {\n");
                  sb.append("    tier1SegmentConfig: ").append(toIndentedString(tier1SegmentConfig)).append("\n");
                        sb.append("    transportZone: ").append(toIndentedString(transportZone)).append("\n");
                        sb.append("    tzType: ").append(toIndentedString(tzType)).append("\n");
                        sb.append("    vlanSegments: ").append(toIndentedString(vlanSegments)).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