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

driven-adapter.kms-reactive.kms-connection-properties.mustache Maven / Gradle / Ivy

Go to download

Gradle plugin to create a clean application in Java that already works, It follows our best practices!

There is a newer version: 3.20.10
Show newest version
package {{package}}.kms.config.model;

import org.springframework.context.annotation.Configuration;
import org.springframework.boot.context.properties.ConfigurationProperties;

import lombok.AllArgsConstructor;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;

{{#lombok}}
@Getter
@Setter
@NoArgsConstructor
@AllArgsConstructor
{{/lombok}}
@Configuration
@ConfigurationProperties(prefix = "adapters.aws.kms")
public class KmsConnectionProperties {

    String host;
    String region;
    String protocol;
    Integer port;
    String keyId;
{{^lombok}}
    public KmsConnectionProperties(String host, String region, String protocol, Integer port, String keyId ) {
    this.host = host;
    this.region = region;
    this.protocol = protocol;
    this.port = port;
    this.keyId = keyId;
    }
{{/lombok}}

    public String getEndpoint() {
        return String.format("%s://%s:%s", protocol, host, port);
    }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy