@Test public void testAsMap() { underTest.setBackupRetentionPeriod(3); underTest.setEngineVersion("1.2.3"); underTest.setMultiAZ("true"); underTest.setStorageType("gp2"); Map<String, Object> map = underTest.asMap(); assertEquals(3, ((Integer) map.get("backupRetentionPeriod")).intValue()); assertEquals("1.2.3", map.get("engineVersion")); assertEquals("true", map.get("multiAZ")); assertEquals("gp2", map.get("storageType")); }
@Override public Map<String, Object> asMap() { Map<String, Object> map = super.asMap(); putIfValueNotNull(map, "backupRetentionPeriod", backupRetentionPeriod); putIfValueNotNull(map, "engineVersion", engineVersion); putIfValueNotNull(map, MULTI_AZ, multiAZ); putIfValueNotNull(map, "storageType", storageType); return map; }
AwsDatabaseServerV4Parameters extends MappableBase { @Override public Map<String, Object> asMap() { Map<String, Object> map = super.asMap(); putIfValueNotNull(map, "backupRetentionPeriod", backupRetentionPeriod); putIfValueNotNull(map, "engineVersion", engineVersion); putIfValueNotNull(map, MULTI_AZ, multiAZ); putIfValueNotNull(map, "storageType", storageType); return map; } }
AwsDatabaseServerV4Parameters extends MappableBase { @Override public Map<String, Object> asMap() { Map<String, Object> map = super.asMap(); putIfValueNotNull(map, "backupRetentionPeriod", backupRetentionPeriod); putIfValueNotNull(map, "engineVersion", engineVersion); putIfValueNotNull(map, MULTI_AZ, multiAZ); putIfValueNotNull(map, "storageType", storageType); return map; }  }
AwsDatabaseServerV4Parameters extends MappableBase { @Override public Map<String, Object> asMap() { Map<String, Object> map = super.asMap(); putIfValueNotNull(map, "backupRetentionPeriod", backupRetentionPeriod); putIfValueNotNull(map, "engineVersion", engineVersion); putIfValueNotNull(map, MULTI_AZ, multiAZ); putIfValueNotNull(map, "storageType", storageType); return map; }  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 Map<String, Object> asMap() { Map<String, Object> map = super.asMap(); putIfValueNotNull(map, "backupRetentionPeriod", backupRetentionPeriod); putIfValueNotNull(map, "engineVersion", engineVersion); putIfValueNotNull(map, MULTI_AZ, multiAZ); putIfValueNotNull(map, "storageType", storageType); return map; }  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; }