com.databricks.sdk.service.provisioning.CreateCustomerManagedKeyRequest Maven / Gradle / Ivy
// Code generated from OpenAPI specs by Databricks SDK Generator. DO NOT EDIT.
package com.databricks.sdk.service.provisioning;
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;
@Generated
public class CreateCustomerManagedKeyRequest {
/** */
@JsonProperty("aws_key_info")
private CreateAwsKeyInfo awsKeyInfo;
/** */
@JsonProperty("gcp_key_info")
private CreateGcpKeyInfo gcpKeyInfo;
/** The cases that the key can be used for. */
@JsonProperty("use_cases")
private Collection useCases;
public CreateCustomerManagedKeyRequest setAwsKeyInfo(CreateAwsKeyInfo awsKeyInfo) {
this.awsKeyInfo = awsKeyInfo;
return this;
}
public CreateAwsKeyInfo getAwsKeyInfo() {
return awsKeyInfo;
}
public CreateCustomerManagedKeyRequest setGcpKeyInfo(CreateGcpKeyInfo gcpKeyInfo) {
this.gcpKeyInfo = gcpKeyInfo;
return this;
}
public CreateGcpKeyInfo getGcpKeyInfo() {
return gcpKeyInfo;
}
public CreateCustomerManagedKeyRequest setUseCases(Collection useCases) {
this.useCases = useCases;
return this;
}
public Collection getUseCases() {
return useCases;
}
@Override
public boolean equals(Object o) {
if (this == o) return true;
if (o == null || getClass() != o.getClass()) return false;
CreateCustomerManagedKeyRequest that = (CreateCustomerManagedKeyRequest) o;
return Objects.equals(awsKeyInfo, that.awsKeyInfo)
&& Objects.equals(gcpKeyInfo, that.gcpKeyInfo)
&& Objects.equals(useCases, that.useCases);
}
@Override
public int hashCode() {
return Objects.hash(awsKeyInfo, gcpKeyInfo, useCases);
}
@Override
public String toString() {
return new ToStringer(CreateCustomerManagedKeyRequest.class)
.add("awsKeyInfo", awsKeyInfo)
.add("gcpKeyInfo", gcpKeyInfo)
.add("useCases", useCases)
.toString();
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy