package com.sequenceiq.cloudbreak.cloud.aws.view; import com.sequenceiq.cloudbreak.cloud.model.CloudCredential; public class AwsCredentialView { private CloudCredential cloudCredential; public AwsCredentialView(CloudCredential cloudCredential) { this.cloudCredential = cloudCredential; } public String getPublicKey() { return cloudCredential.getPublicKey(); } public String getName() { return cloudCredential.getName(); } public String getRoleArn() { return cloudCredential.getParameter("roleArn", String.class); } public String getAccessKey() { return cloudCredential.getParameter("accessKey", String.class); } public String getSecretKey() { return cloudCredential.getParameter("secretKey", String.class); } public Long getId() { return cloudCredential.getId(); } }