software.amazon.awscdk.FileSystemStore Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of cdk Show documentation
Show all versions of cdk Show documentation
AWS Cloud Development Kit Core Library
package software.amazon.awscdk;
/**
* Can be used to prepare and emit synthesis artifacts into an output directory.
*/
@javax.annotation.Generated(value = "jsii-pacmak/0.10.5 (build 46bc9b0)", date = "2019-05-06T20:49:40.946Z")
@software.amazon.jsii.Jsii(module = software.amazon.awscdk.$Module.class, fqn = "@aws-cdk/cdk.FileSystemStore")
public class FileSystemStore extends software.amazon.jsii.JsiiObject implements software.amazon.awscdk.ISessionStore {
protected FileSystemStore(final software.amazon.jsii.JsiiObject.InitializationMode mode) {
super(mode);
}
public FileSystemStore(final software.amazon.awscdk.FileSystemStoreOptions options) {
super(software.amazon.jsii.JsiiObject.InitializationMode.Jsii);
software.amazon.jsii.JsiiEngine.getInstance().createNewObject(this, new Object[] { java.util.Objects.requireNonNull(options, "options is required") });
}
@Override
public java.lang.Boolean exists(final java.lang.String name) {
return this.jsiiCall("exists", java.lang.Boolean.class, new Object[] { java.util.Objects.requireNonNull(name, "name is required") });
}
/**
* List all top-level files that were emitted to the store.
*/
@Override
public java.util.List list() {
return this.jsiiCall("list", java.util.List.class);
}
/**
* Do not allow further writes into the store.
*/
@Override
public void lock() {
this.jsiiCall("lock", Void.class);
}
/**
* Creates a directory and returns it's full path.
*/
@Override
public java.lang.String mkdir(final java.lang.String directoryName) {
return this.jsiiCall("mkdir", java.lang.String.class, new Object[] { java.util.Objects.requireNonNull(directoryName, "directoryName is required") });
}
/**
* Returns the list of files in a directory.
*/
@Override
public java.util.List readdir(final java.lang.String directoryName) {
return this.jsiiCall("readdir", java.util.List.class, new Object[] { java.util.Objects.requireNonNull(directoryName, "directoryName is required") });
}
/**
* Reads a file from the store.
*/
@Override
@javax.annotation.Nullable
public java.lang.Object readFile(final java.lang.String fileName) {
return this.jsiiCall("readFile", java.lang.Object.class, new Object[] { java.util.Objects.requireNonNull(fileName, "fileName is required") });
}
/**
* Reads a JSON object from the store.
*/
@Override
@javax.annotation.Nullable
public java.lang.Object readJson(final java.lang.String fileName) {
return this.jsiiCall("readJson", java.lang.Object.class, new Object[] { java.util.Objects.requireNonNull(fileName, "fileName is required") });
}
/**
* Writes a file into the store.
*/
@Override
public void writeFile(final java.lang.String fileName, @javax.annotation.Nullable final java.lang.Object data) {
this.jsiiCall("writeFile", Void.class, new Object[] { java.util.Objects.requireNonNull(fileName, "fileName is required"), data });
}
/**
* Writes a formatted JSON output file to the store.
*/
@Override
public void writeJson(final java.lang.String fileName, @javax.annotation.Nullable final java.lang.Object json) {
this.jsiiCall("writeJson", Void.class, new Object[] { java.util.Objects.requireNonNull(fileName, "fileName is required"), json });
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy