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