awsCredential.setPublicInAccount(true);
awsCredential.setRoleArn("rolearn");
awsCredential.setPublicKey(PUBLIC_KEY);
return awsCredential;
case GCC:
GccCredential gccCredential = new GccCredential();
gccCredential.setId(1L);
gccCredential.setOwner(owner);
gccCredential.setAccount(account);
gccCredential.setCloudPlatform(platform);
gccCredential.setPublicInAccount(true);
gccCredential.setPublicKey(PUBLIC_KEY);
return gccCredential;
default:
return null;
}
}