com.databricks.sdk.service.oauth2.GetServicePrincipalFederationPolicyRequest Maven / Gradle / Ivy
The newest version!
// Code generated from OpenAPI specs by Databricks SDK Generator. DO NOT EDIT.
package com.databricks.sdk.service.oauth2;
import com.databricks.sdk.support.Generated;
import com.databricks.sdk.support.ToStringer;
import com.fasterxml.jackson.annotation.JsonIgnore;
import java.util.Objects;
/** Get service principal federation policy */
@Generated
public class GetServicePrincipalFederationPolicyRequest {
/** */
@JsonIgnore private String policyId;
/** The service principal id for the federation policy. */
@JsonIgnore private Long servicePrincipalId;
public GetServicePrincipalFederationPolicyRequest setPolicyId(String policyId) {
this.policyId = policyId;
return this;
}
public String getPolicyId() {
return policyId;
}
public GetServicePrincipalFederationPolicyRequest setServicePrincipalId(Long servicePrincipalId) {
this.servicePrincipalId = servicePrincipalId;
return this;
}
public Long getServicePrincipalId() {
return servicePrincipalId;
}
@Override
public boolean equals(Object o) {
if (this == o) return true;
if (o == null || getClass() != o.getClass()) return false;
GetServicePrincipalFederationPolicyRequest that =
(GetServicePrincipalFederationPolicyRequest) o;
return Objects.equals(policyId, that.policyId)
&& Objects.equals(servicePrincipalId, that.servicePrincipalId);
}
@Override
public int hashCode() {
return Objects.hash(policyId, servicePrincipalId);
}
@Override
public String toString() {
return new ToStringer(GetServicePrincipalFederationPolicyRequest.class)
.add("policyId", policyId)
.add("servicePrincipalId", servicePrincipalId)
.toString();
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy