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

com.databricks.sdk.service.settings.IpAccessListInfo Maven / Gradle / Ivy

There is a newer version: 0.38.0
Show newest version
// Code generated from OpenAPI specs by Databricks SDK Generator. DO NOT EDIT.

package com.databricks.sdk.service.settings;

import com.databricks.sdk.support.Generated;
import com.databricks.sdk.support.ToStringer;
import com.fasterxml.jackson.annotation.JsonProperty;
import java.util.Collection;
import java.util.Objects;

/** Definition of an IP Access list */
@Generated
public class IpAccessListInfo {
  /** Total number of IP or CIDR values. */
  @JsonProperty("address_count")
  private Long addressCount;

  /** Creation timestamp in milliseconds. */
  @JsonProperty("created_at")
  private Long createdAt;

  /** User ID of the user who created this list. */
  @JsonProperty("created_by")
  private Long createdBy;

  /** Specifies whether this IP access list is enabled. */
  @JsonProperty("enabled")
  private Boolean enabled;

  /** */
  @JsonProperty("ip_addresses")
  private Collection ipAddresses;

  /** Label for the IP access list. This **cannot** be empty. */
  @JsonProperty("label")
  private String label;

  /** Universally unique identifier (UUID) of the IP access list. */
  @JsonProperty("list_id")
  private String listId;

  /**
   * Type of IP access list. Valid values are as follows and are case-sensitive:
   *
   * 

* `ALLOW`: An allow list. Include this IP or range. * `BLOCK`: A block list. Exclude this IP * or range. IP addresses in the block list are excluded even if they are included in an allow * list. */ @JsonProperty("list_type") private ListType listType; /** Update timestamp in milliseconds. */ @JsonProperty("updated_at") private Long updatedAt; /** User ID of the user who updated this list. */ @JsonProperty("updated_by") private Long updatedBy; public IpAccessListInfo setAddressCount(Long addressCount) { this.addressCount = addressCount; return this; } public Long getAddressCount() { return addressCount; } public IpAccessListInfo setCreatedAt(Long createdAt) { this.createdAt = createdAt; return this; } public Long getCreatedAt() { return createdAt; } public IpAccessListInfo setCreatedBy(Long createdBy) { this.createdBy = createdBy; return this; } public Long getCreatedBy() { return createdBy; } public IpAccessListInfo setEnabled(Boolean enabled) { this.enabled = enabled; return this; } public Boolean getEnabled() { return enabled; } public IpAccessListInfo setIpAddresses(Collection ipAddresses) { this.ipAddresses = ipAddresses; return this; } public Collection getIpAddresses() { return ipAddresses; } public IpAccessListInfo setLabel(String label) { this.label = label; return this; } public String getLabel() { return label; } public IpAccessListInfo setListId(String listId) { this.listId = listId; return this; } public String getListId() { return listId; } public IpAccessListInfo setListType(ListType listType) { this.listType = listType; return this; } public ListType getListType() { return listType; } public IpAccessListInfo setUpdatedAt(Long updatedAt) { this.updatedAt = updatedAt; return this; } public Long getUpdatedAt() { return updatedAt; } public IpAccessListInfo setUpdatedBy(Long updatedBy) { this.updatedBy = updatedBy; return this; } public Long getUpdatedBy() { return updatedBy; } @Override public boolean equals(Object o) { if (this == o) return true; if (o == null || getClass() != o.getClass()) return false; IpAccessListInfo that = (IpAccessListInfo) o; return Objects.equals(addressCount, that.addressCount) && Objects.equals(createdAt, that.createdAt) && Objects.equals(createdBy, that.createdBy) && Objects.equals(enabled, that.enabled) && Objects.equals(ipAddresses, that.ipAddresses) && Objects.equals(label, that.label) && Objects.equals(listId, that.listId) && Objects.equals(listType, that.listType) && Objects.equals(updatedAt, that.updatedAt) && Objects.equals(updatedBy, that.updatedBy); } @Override public int hashCode() { return Objects.hash( addressCount, createdAt, createdBy, enabled, ipAddresses, label, listId, listType, updatedAt, updatedBy); } @Override public String toString() { return new ToStringer(IpAccessListInfo.class) .add("addressCount", addressCount) .add("createdAt", createdAt) .add("createdBy", createdBy) .add("enabled", enabled) .add("ipAddresses", ipAddresses) .add("label", label) .add("listId", listId) .add("listType", listType) .add("updatedAt", updatedAt) .add("updatedBy", updatedBy) .toString(); } }





© 2015 - 2025 Weber Informatics LLC | Privacy Policy