@Override protected AbstractCanaryAccount buildAccount(Canary canary, String accountName) { AwsCanaryAccount account = (AwsCanaryAccount)new AwsCanaryAccount().setName(accountName); account.setBucket(bucket); account.setRegion(region); account.setRootFolder(isSet(rootFolder) ? rootFolder : account.getRootFolder()); account.setProfileName(profileName); account.setEndpoint(endpoint); account.setAccessKeyId(accessKeyId); account.setSecretAccessKey(secretAccessKey); AwsCanaryServiceIntegration awsCanaryServiceIntegration = (AwsCanaryServiceIntegration)CanaryUtils.getServiceIntegrationByClass(canary, AwsCanaryServiceIntegration.class); if (awsCanaryServiceIntegration.isS3Enabled()) { account.getSupportedTypes().add(AbstractCanaryServiceIntegration.SupportedTypes.CONFIGURATION_STORE); account.getSupportedTypes().add(AbstractCanaryServiceIntegration.SupportedTypes.OBJECT_STORE); } return account; }
@Override protected AbstractCanaryAccount buildAccount(Canary canary, String accountName) { AwsCanaryAccount account = (AwsCanaryAccount)new AwsCanaryAccount().setName(accountName); account.setBucket(bucket); account.setRegion(region); account.setRootFolder(isSet(rootFolder) ? rootFolder : account.getRootFolder()); account.setProfileName(profileName); account.setEndpoint(endpoint); account.setAccessKeyId(accessKeyId); account.setSecretAccessKey(secretAccessKey); AwsCanaryServiceIntegration awsCanaryServiceIntegration = (AwsCanaryServiceIntegration)CanaryUtils.getServiceIntegrationByClass(canary, AwsCanaryServiceIntegration.class); if (awsCanaryServiceIntegration.isS3Enabled()) { account.getSupportedTypes().add(AbstractCanaryServiceIntegration.SupportedTypes.CONFIGURATION_STORE); account.getSupportedTypes().add(AbstractCanaryServiceIntegration.SupportedTypes.OBJECT_STORE); } return account; }
@Override protected AbstractCanaryAccount editAccount(AwsCanaryAccount account) { account.setBucket(isSet(bucket) ? bucket : account.getBucket()); account.setRegion(isSet(region) ? region : account.getRegion()); account.setRootFolder(isSet(rootFolder) ? rootFolder : account.getRootFolder()); account.setProfileName(isSet(profileName) ? profileName : account.getProfileName()); account.setEndpoint(isSet(endpoint) ? endpoint : account.getEndpoint()); account.setAccessKeyId(isSet(accessKeyId) ? accessKeyId : account.getAccessKeyId()); account.setSecretAccessKey(isSet(secretAccessKey) ? secretAccessKey : account.getSecretAccessKey()); return account; } }
@Override protected AbstractCanaryAccount editAccount(AwsCanaryAccount account) { account.setBucket(isSet(bucket) ? bucket : account.getBucket()); account.setRegion(isSet(region) ? region : account.getRegion()); account.setRootFolder(isSet(rootFolder) ? rootFolder : account.getRootFolder()); account.setProfileName(isSet(profileName) ? profileName : account.getProfileName()); account.setEndpoint(isSet(endpoint) ? endpoint : account.getEndpoint()); account.setAccessKeyId(isSet(accessKeyId) ? accessKeyId : account.getAccessKeyId()); account.setSecretAccessKey(isSet(secretAccessKey) ? secretAccessKey : account.getSecretAccessKey()); return account; } }