public Builder toBuilder() { return builder().from(this); }
public GeoService build() { return new GeoService(name, active, ttl, nodes.build(), groups.build()); }
static void checkGeoService(GeoService service) { assertNotNull(service.getName(), "Name cannot be null " + service); assertTrue(service.getTTL() >= 0, "TTL cannot be negative " + service); assertTrue(service.getNodes().size() > 0, "Nodes must be assigned " + service); assertTrue(service.getGroups().size() > 0, "Groups must be assigned " + service); for (GeoRegionGroup group : service.getGroups()) GeoRegionGroupApiLiveTest.checkGeoRegionGroup(group); }
public Builder toBuilder() { return builder().from(this); }
static void checkGeoService(GeoService service) { assertNotNull(service.getName(), "Name cannot be null " + service); assertTrue(service.getTTL() >= 0, "TTL cannot be negative " + service); assertTrue(!service.getNodes().isEmpty(), "Nodes must be assigned " + service); assertTrue(!service.getGroups().isEmpty(), "Groups must be assigned " + service); for (GeoRegionGroup group : service.getGroups()) GeoRegionGroupApiLiveTest.checkGeoRegionGroup(group); }
public GeoService build() { return new GeoService(name, active, ttl, nodes.build(), groups.build()); }
public Builder toBuilder() { return builder().from(this); }
public GeoService build() { return new GeoService(name, active, ttl, nodes.build(), groups.build()); }
public Builder toBuilder() { return builder().from(this); }
public GeoService build() { return new GeoService(name, active, ttl, nodes.build(), groups.build()); }
public Builder toBuilder() { return builder().from(this); }
public GeoService build() { return new GeoService(name, active, ttl, nodes.build(), groups.build()); }
@Override public GeoService deserialize(JsonElement json, Type typeOfT, JsonDeserializationContext context) throws JsonParseException { CreepyGeoService creepyGeoService = context.deserialize(json, CreepyGeoService.class); GeoService.Builder builder = GeoService.builder(); builder.name(creepyGeoService.name); builder.active("Y".equals(creepyGeoService.active)); builder.ttl(creepyGeoService.ttl); builder.nodes(creepyGeoService.nodes); builder.groups(creepyGeoService.groups); return builder.build(); } }
@Override public GeoService deserialize(JsonElement json, Type typeOfT, JsonDeserializationContext context) throws JsonParseException { CreepyGeoService creepyGeoService = context.deserialize(json, CreepyGeoService.class); GeoService.Builder builder = GeoService.builder(); builder.name(creepyGeoService.name); builder.active("Y".equals(creepyGeoService.active)); builder.ttl(creepyGeoService.ttl); builder.nodes(creepyGeoService.nodes); builder.groups(creepyGeoService.groups); return builder.build(); } }
@Override public GeoService deserialize(JsonElement json, Type typeOfT, JsonDeserializationContext context) throws JsonParseException { CreepyGeoService creepyGeoService = context.deserialize(json, CreepyGeoService.class); GeoService.Builder builder = GeoService.builder(); builder.name(creepyGeoService.name); builder.active("Y".equals(creepyGeoService.active)); builder.ttl(creepyGeoService.ttl); builder.nodes(creepyGeoService.nodes); builder.groups(creepyGeoService.groups); return builder.build(); } }
@Override public GeoService deserialize(JsonElement json, Type typeOfT, JsonDeserializationContext context) throws JsonParseException { CreepyGeoService creepyGeoService = context.deserialize(json, CreepyGeoService.class); GeoService.Builder builder = GeoService.builder(); builder.name(creepyGeoService.name); builder.active("Y".equals(creepyGeoService.active)); builder.ttl(creepyGeoService.ttl); builder.nodes(creepyGeoService.nodes); builder.groups(creepyGeoService.groups); return builder.build(); } }
@Override public GeoService deserialize(JsonElement json, Type typeOfT, JsonDeserializationContext context) throws JsonParseException { CreepyGeoService creepyGeoService = context.deserialize(json, CreepyGeoService.class); GeoService.Builder builder = GeoService.builder(); builder.name(creepyGeoService.name); builder.active("Y".equals(creepyGeoService.active)); builder.ttl(creepyGeoService.ttl); builder.nodes(creepyGeoService.nodes); builder.groups(creepyGeoService.groups); return builder.build(); } }
public GeoService expected() { return GeoService .builder() .name("CCS") .active(true)