@Test public void testParse() { Map<String, Object> parameters = Map.of("backupRetentionPeriod", 3, "engineVersion", "1.2.3", "multiAZ", "true", "storageType", "gp2"); underTest.parse(parameters); assertEquals(3, underTest.getBackupRetentionPeriod().intValue()); assertEquals("1.2.3", underTest.getEngineVersion()); assertEquals("true", underTest.getMultiAZ()); assertEquals("gp2", underTest.getStorageType()); }
@Override public void parse(Map<String, Object> parameters) { backupRetentionPeriod = getInt(parameters, "backupRetentionPeriod"); engineVersion = getParameterOrNull(parameters, "engineVersion"); multiAZ = getParameterOrNull(parameters, MULTI_AZ); storageType = getParameterOrNull(parameters, "storageType"); }
AwsDatabaseServerV4Parameters extends MappableBase { @Override public void parse(Map<String, Object> parameters) { backupRetentionPeriod = getInt(parameters, "backupRetentionPeriod"); engineVersion = getParameterOrNull(parameters, "engineVersion"); multiAZ = getParameterOrNull(parameters, MULTI_AZ); storageType = getParameterOrNull(parameters, "storageType"); } }
AwsDatabaseServerV4Parameters extends MappableBase { @Override public void parse(Map<String, Object> parameters) { backupRetentionPeriod = getInt(parameters, "backupRetentionPeriod"); engineVersion = getParameterOrNull(parameters, "engineVersion"); multiAZ = getParameterOrNull(parameters, MULTI_AZ); storageType = getParameterOrNull(parameters, "storageType"); }  }
AwsDatabaseServerV4Parameters extends MappableBase { @Override public void parse(Map<String, Object> parameters) { backupRetentionPeriod = getInt(parameters, "backupRetentionPeriod"); engineVersion = getParameterOrNull(parameters, "engineVersion"); multiAZ = getParameterOrNull(parameters, MULTI_AZ); storageType = getParameterOrNull(parameters, "storageType"); }  Integer getBackupRetentionPeriod(); void setBackupRetentionPeriod(Integer backupRetentionPeriod); String getEngineVersion(); void setEngineVersion(String engineVersion); String getMultiAZ(); void setMultiAZ(String multiAZ); String getStorageType(); void setStorageType(String storageType); @Override Map<String, Object> asMap(); @Override @JsonIgnore @ApiModelProperty(hidden = true) CloudPlatform getCloudPlatform(); @Override void parse(Map<String, Object> parameters); }
AwsDatabaseServerV4Parameters extends MappableBase { @Override public void parse(Map<String, Object> parameters) { backupRetentionPeriod = getInt(parameters, "backupRetentionPeriod"); engineVersion = getParameterOrNull(parameters, "engineVersion"); multiAZ = getParameterOrNull(parameters, MULTI_AZ); storageType = getParameterOrNull(parameters, "storageType"); }  Integer getBackupRetentionPeriod(); void setBackupRetentionPeriod(Integer backupRetentionPeriod); String getEngineVersion(); void setEngineVersion(String engineVersion); String getMultiAZ(); void setMultiAZ(String multiAZ); String getStorageType(); void setStorageType(String storageType); @Override Map<String, Object> asMap(); @Override @JsonIgnore @ApiModelProperty(hidden = true) CloudPlatform getCloudPlatform(); @Override void parse(Map<String, Object> parameters); static final String MULTI_AZ; }