public static class ProcessCredentialsProvider.Builder extends Object
ProcessCredentialsProvider
. See ProcessCredentialsProvider.builder()
creation.Modifier and Type | Method and Description |
---|---|
ProcessCredentialsProvider |
build() |
void |
setCredentialExpirationBuffer(int value,
TimeUnit unit)
Configure the amount of time between when the credentials expire and when the credentials should start to be
refreshed.
|
void |
setStaticAccountId(String staticAccountId)
Configure a static account id for this credentials provider.
|
ProcessCredentialsProvider.Builder |
withCommand(List<String> commands) |
ProcessCredentialsProvider.Builder |
withCommand(String command)
Deprecated.
The recommended approach is to specify the command as a list of Strings, using
withCommand(List) instead, which makes it easier to programmatically add parameters to commands
without needing to escape those parameters to protect against command injection. |
ProcessCredentialsProvider.Builder |
withCredentialExpirationBuffer(int value,
TimeUnit unit) |
ProcessCredentialsProvider.Builder |
withProcessOutputLimit(long outputByteLimit) |
ProcessCredentialsProvider.Builder |
withStaticAccountId(String staticAccountId) |
@Deprecated public ProcessCredentialsProvider.Builder withCommand(String command)
withCommand(List)
instead, which makes it easier to programmatically add parameters to commands
without needing to escape those parameters to protect against command injection.ProcessBuilder
for details on how this command is used.public ProcessCredentialsProvider.Builder withCommand(List<String> commands)
setCommand(List)
public void setCredentialExpirationBuffer(int value, TimeUnit unit)
public ProcessCredentialsProvider.Builder withCredentialExpirationBuffer(int value, TimeUnit unit)
public ProcessCredentialsProvider.Builder withProcessOutputLimit(long outputByteLimit)
setProcessOutputLimit(long)
public void setStaticAccountId(String staticAccountId)
public ProcessCredentialsProvider.Builder withStaticAccountId(String staticAccountId)
setStaticAccountId(String)
public ProcessCredentialsProvider build()