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

io.digdag.spi.SecretRequest Maven / Gradle / Ivy

package io.digdag.spi;

import org.immutables.value.Value;

@Value.Immutable
@Value.Style(visibility = Value.Style.ImplementationVisibility.PACKAGE)
public interface SecretRequest
{
    SecretAccessContext context();

    String key();

    static SecretRequest of(SecretAccessContext context, String key)
    {
        return builder().context(context).key(key).build();
    }

    static Builder builder()
    {
        return ImmutableSecretRequest.builder();
    }

    interface Builder
    {
        Builder context(SecretAccessContext context);

        Builder key(String key);

        SecretRequest build();
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy