com.airbyte.api.models.shared.GoogleDrive Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of api Show documentation
Show all versions of api Show documentation
SDK enabling Java developers to easily integrate with the Airbyte API.
The newest version!
/*
* Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
*/
package com.airbyte.api.models.shared;
import com.airbyte.api.utils.Utils;
import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonInclude.Include;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.core.type.TypeReference;
import java.io.InputStream;
import java.lang.Deprecated;
import java.math.BigDecimal;
import java.math.BigInteger;
import java.util.Optional;
public class GoogleDrive {
@JsonInclude(Include.NON_ABSENT)
@JsonProperty("credentials")
private Optional extends GoogleDriveCredentials> credentials;
@JsonCreator
public GoogleDrive(
@JsonProperty("credentials") Optional extends GoogleDriveCredentials> credentials) {
Utils.checkNotNull(credentials, "credentials");
this.credentials = credentials;
}
public GoogleDrive() {
this(Optional.empty());
}
@SuppressWarnings("unchecked")
@JsonIgnore
public Optional credentials() {
return (Optional) credentials;
}
public final static Builder builder() {
return new Builder();
}
public GoogleDrive withCredentials(GoogleDriveCredentials credentials) {
Utils.checkNotNull(credentials, "credentials");
this.credentials = Optional.ofNullable(credentials);
return this;
}
public GoogleDrive withCredentials(Optional extends GoogleDriveCredentials> credentials) {
Utils.checkNotNull(credentials, "credentials");
this.credentials = credentials;
return this;
}
@Override
public boolean equals(java.lang.Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
GoogleDrive other = (GoogleDrive) o;
return
java.util.Objects.deepEquals(this.credentials, other.credentials);
}
@Override
public int hashCode() {
return java.util.Objects.hash(
credentials);
}
@Override
public String toString() {
return Utils.toString(GoogleDrive.class,
"credentials", credentials);
}
public final static class Builder {
private Optional extends GoogleDriveCredentials> credentials = Optional.empty();
private Builder() {
// force use of static builder() method
}
public Builder credentials(GoogleDriveCredentials credentials) {
Utils.checkNotNull(credentials, "credentials");
this.credentials = Optional.ofNullable(credentials);
return this;
}
public Builder credentials(Optional extends GoogleDriveCredentials> credentials) {
Utils.checkNotNull(credentials, "credentials");
this.credentials = credentials;
return this;
}
public GoogleDrive build() {
return new GoogleDrive(
credentials);
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy