
driven-adapter.kms-reactive.kms-connection-properties.mustache Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of scaffold-clean-architecture Show documentation
Show all versions of scaffold-clean-architecture Show documentation
Gradle plugin to create a clean application in Java that already works, It follows our best practices!
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