Example usage for com.amazonaws.services.codepipeline.model EncryptionKey getId

List of usage examples for com.amazonaws.services.codepipeline.model EncryptionKey getId

Introduction

In this page you can find the example usage for com.amazonaws.services.codepipeline.model EncryptionKey getId.

Prototype


public String getId() 

Source Link

Document

The ID used to identify the key.

Usage

From source file:jetbrains.buildServer.codepipeline.CodePipelineBuildListener.java

License:Apache License

@NotNull
private static SSEAwsKeyManagementParams getSSEAwsKeyManagementParams(@Nullable EncryptionKey encryptionKey) {
    return encryptionKey == null || encryptionKey.getId() == null || encryptionKey.getType() == null
            || !EncryptionKeyType.KMS.toString().equals(encryptionKey.getType())
                    ? new SSEAwsKeyManagementParams()
                    : new SSEAwsKeyManagementParams(encryptionKey.getId());
}