@Override protected Account buildAccount(String accountName) { OracleAccount account = (OracleAccount) new OracleAccount().setName(accountName); account.setCompartmentId(compartmentId); account.setUserId(userId); account.setFingerprint(fingerprint); account.setSshPrivateKeyFilePath(sshPrivateKeyFilePath); account.setTenancyId(tenancyId); account.setRegion(region); return account; }
@Override protected Account buildAccount(String accountName) { OracleAccount account = (OracleAccount) new OracleAccount().setName(accountName); account.setCompartmentId(compartmentId); account.setUserId(userId); account.setFingerprint(fingerprint); account.setSshPrivateKeyFilePath(sshPrivateKeyFilePath); account.setPrivateKeyPassphrase(privateKeyPassphrase); account.setTenancyId(tenancyId); account.setRegion(region); return account; }
@Override protected Account editAccount(OracleAccount account) { account.setCompartmentId(isSet(compartmentId) ? compartmentId : account.getCompartmentId()); account.setUserId(isSet(userId) ? userId : account.getUserId()); account.setFingerprint(isSet(fingerprint) ? fingerprint : account.getFingerprint()); account.setSshPrivateKeyFilePath(isSet(sshPrivateKeyFilePath) ? sshPrivateKeyFilePath : account.getSshPrivateKeyFilePath()); account.setTenancyId(isSet(tenancyId) ? tenancyId : account.getTenancyId()); account.setRegion(isSet(region) ? region : account.getRegion()); return account; } }
@Override protected Account editAccount(OracleAccount account) { account.setCompartmentId(isSet(compartmentId) ? compartmentId : account.getCompartmentId()); account.setUserId(isSet(userId) ? userId : account.getUserId()); account.setFingerprint(isSet(fingerprint) ? fingerprint : account.getFingerprint()); account.setSshPrivateKeyFilePath(isSet(sshPrivateKeyFilePath) ? sshPrivateKeyFilePath : account.getSshPrivateKeyFilePath()); account.setPrivateKeyPassphrase(isSet(privateKeyPassphrase) ? privateKeyPassphrase : account.getPrivateKeyPassphrase()); account.setTenancyId(isSet(tenancyId) ? tenancyId : account.getTenancyId()); account.setRegion(isSet(region) ? region : account.getRegion()); return account; } }