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

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

There is a newer version: 0.35.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;

/** Details required to configure a block list or allow list. */
@Generated
public class CreateIpAccessList {
  /** */
  @JsonProperty("ip_addresses")
  private Collection ipAddresses;

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

  /**
   * 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; public CreateIpAccessList setIpAddresses(Collection ipAddresses) { this.ipAddresses = ipAddresses; return this; } public Collection getIpAddresses() { return ipAddresses; } public CreateIpAccessList setLabel(String label) { this.label = label; return this; } public String getLabel() { return label; } public CreateIpAccessList setListType(ListType listType) { this.listType = listType; return this; } public ListType getListType() { return listType; } @Override public boolean equals(Object o) { if (this == o) return true; if (o == null || getClass() != o.getClass()) return false; CreateIpAccessList that = (CreateIpAccessList) o; return Objects.equals(ipAddresses, that.ipAddresses) && Objects.equals(label, that.label) && Objects.equals(listType, that.listType); } @Override public int hashCode() { return Objects.hash(ipAddresses, label, listType); } @Override public String toString() { return new ToStringer(CreateIpAccessList.class) .add("ipAddresses", ipAddresses) .add("label", label) .add("listType", listType) .toString(); } }





© 2015 - 2024 Weber Informatics LLC | Privacy Policy