com.databricks.sdk.service.settings.NccEgressConfig Maven / Gradle / Ivy
// 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.Objects;
/**
* The network connectivity rules that apply to network traffic from your serverless compute
* resources.
*/
@Generated
public class NccEgressConfig {
/**
* The network connectivity rules that are applied by default without resource specific
* configurations. You can find the stable network information of your serverless compute
* resources here.
*/
@JsonProperty("default_rules")
private NccEgressDefaultRules defaultRules;
/**
* The network connectivity rules that configured for each destinations. These rules override
* default rules.
*/
@JsonProperty("target_rules")
private NccEgressTargetRules targetRules;
public NccEgressConfig setDefaultRules(NccEgressDefaultRules defaultRules) {
this.defaultRules = defaultRules;
return this;
}
public NccEgressDefaultRules getDefaultRules() {
return defaultRules;
}
public NccEgressConfig setTargetRules(NccEgressTargetRules targetRules) {
this.targetRules = targetRules;
return this;
}
public NccEgressTargetRules getTargetRules() {
return targetRules;
}
@Override
public boolean equals(Object o) {
if (this == o) return true;
if (o == null || getClass() != o.getClass()) return false;
NccEgressConfig that = (NccEgressConfig) o;
return Objects.equals(defaultRules, that.defaultRules)
&& Objects.equals(targetRules, that.targetRules);
}
@Override
public int hashCode() {
return Objects.hash(defaultRules, targetRules);
}
@Override
public String toString() {
return new ToStringer(NccEgressConfig.class)
.add("defaultRules", defaultRules)
.add("targetRules", targetRules)
.toString();
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy