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

com.redis.riot.file.GcpOptions Maven / Gradle / Ivy

There is a newer version: 4.1.9
Show newest version
package com.redis.riot.file;

import java.io.File;
import java.util.Optional;

import com.google.cloud.spring.core.GcpScope;

import lombok.ToString;

@ToString(exclude = "encodedKey")
public class GcpOptions {

	public static final GcpScope DEFAULT_SCOPE = GcpScope.STORAGE_READ_ONLY;

	private File keyFile;
	private Optional projectId = Optional.empty();
	private String encodedKey;
	private GcpScope scope = DEFAULT_SCOPE;

	public GcpScope getScope() {
		return scope;
	}

	public void setScope(GcpScope scope) {
		this.scope = scope;
	}

	public File getKeyFile() {
		return keyFile;
	}

	public void setKeyFile(File file) {
		this.keyFile = file;
	}

	public Optional getProjectId() {
		return projectId;
	}

	public void setProjectId(String id) {
		this.projectId = Optional.ofNullable(id);
	}

	public String getEncodedKey() {
		return encodedKey;
	}

	public void setEncodedKey(String key) {
		this.encodedKey = key;
	}

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy