- java.lang.Object
-
- org.github.gestalt.config.builder.SourceBuilder<S3ConfigSourceBuilder,S3ConfigSource>
-
- org.github.gestalt.config.aws.s3.S3ConfigSourceBuilder
-
public final class S3ConfigSourceBuilder extends org.github.gestalt.config.builder.SourceBuilder<S3ConfigSourceBuilder,S3ConfigSource>
ConfigSourceBuilder for the S3 Config Source.Create a S3ConfigSource to load a config from S3.
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description org.github.gestalt.config.source.ConfigSourcePackagebuild()static S3ConfigSourceBuilderbuilder()Static function to create the builder.java.lang.StringgetBucketName()Get the s3 bucket name.java.lang.StringgetKeyName()Get the s3 key name.software.amazon.awssdk.services.s3.S3ClientgetS3()Get the S3 client.S3ConfigSourceBuildersetBucketName(java.lang.String bucketName)Set the s3 bucket name.S3ConfigSourceBuildersetKeyName(java.lang.String keyName)Set the s3 key name.S3ConfigSourceBuildersetS3(software.amazon.awssdk.services.s3.S3Client s3)Set the S3 client.
-
-
-
Method Detail
-
builder
public static S3ConfigSourceBuilder builder()
Static function to create the builder.- Returns:
- the builder
-
getS3
public software.amazon.awssdk.services.s3.S3Client getS3()
Get the S3 client.- Returns:
- the S3 client
-
setS3
public S3ConfigSourceBuilder setS3(software.amazon.awssdk.services.s3.S3Client s3)
Set the S3 client.- Parameters:
s3- the S3 client- Returns:
- builder
-
getKeyName
public java.lang.String getKeyName()
Get the s3 key name.- Returns:
- the s3 key name
-
setKeyName
public S3ConfigSourceBuilder setKeyName(java.lang.String keyName)
Set the s3 key name.- Parameters:
keyName- the s3 key name- Returns:
- builder
-
getBucketName
public java.lang.String getBucketName()
Get the s3 bucket name.- Returns:
- the s3 bucket name
-
setBucketName
public S3ConfigSourceBuilder setBucketName(java.lang.String bucketName)
Set the s3 bucket name.- Parameters:
bucketName- the s3 bucket name- Returns:
- builder
-
build
public org.github.gestalt.config.source.ConfigSourcePackage build() throws org.github.gestalt.config.exceptions.GestaltException- Specified by:
buildin classorg.github.gestalt.config.builder.SourceBuilder<S3ConfigSourceBuilder,S3ConfigSource>- Throws:
org.github.gestalt.config.exceptions.GestaltException
-
-