public T links(Link... in) { return links(ImmutableSet.copyOf(in)); }
public T links(Link... in) { return links(ImmutableSet.copyOf(in)); }
public T links(Link... in) { return links(in == null ? null : ImmutableSet.copyOf(in)); }
.id("52415800-8b69-11e0-9b19-734f335aa7b3") .name("null") .links( Link.create( Relation.SELF,
@Override @SelectJson("images") @Consumes(MediaType.APPLICATION_JSON) public Set<Resource> expected() { return ImmutableSet .of(Resource .builder() .id("52415800-8b69-11e0-9b19-734f6f006e54") .name("CentOS 5.2") .links( Link.create( Relation.SELF, URI.create("http://servers.api.openstack.org/v1.1/1234/images/52415800-8b69-11e0-9b19-734f6f006e54")), Link.create( Relation.BOOKMARK, URI.create("http://servers.api.openstack.org/1234/images/52415800-8b69-11e0-9b19-734f6f006e54"))) .build(), Resource .builder() .id("52415800-8b69-11e0-9b19-734f5736d2a2") .name("My Server Backup") .links( Link.create( Relation.SELF, URI.create("http://servers.api.openstack.org/v1.1/1234/images/52415800-8b69-11e0-9b19-734f5736d2a2")), Link.create( Relation.BOOKMARK, URI.create("http://servers.api.openstack.org/1234/images/52415800-8b69-11e0-9b19-734f5736d2a2"))) .build()); }
@Override @SelectJson("flavors") @Consumes(MediaType.APPLICATION_JSON) public Set<Resource> expected() { return ImmutableSet .of(Resource .builder() .id("52415800-8b69-11e0-9b19-734f1195ff37") .name("256 MB Server") .links( Link.create( Relation.SELF, URI.create("http://servers.api.openstack.org/v1.1/1234/flavors/52415800-8b69-11e0-9b19-734f1195ff37")), Link.create( Relation.BOOKMARK, URI.create("http://servers.api.openstack.org/1234/flavors/52415800-8b69-11e0-9b19-734f1195ff37"))) .build(), Resource .builder() .id("52415800-8b69-11e0-9b19-734f216543fd") .name("512 MB Server") .links( Link.create( Relation.SELF, URI.create("http://servers.api.openstack.org/v1.1/1234/flavors/52415800-8b69-11e0-9b19-734f216543fd")), Link.create( Relation.BOOKMARK, URI.create("http://servers.api.openstack.org/1234/flavors/52415800-8b69-11e0-9b19-734f216543fd"))) .build()); }
@Override @SelectJson("servers") @Consumes(MediaType.APPLICATION_JSON) public Set<Resource> expected() { return ImmutableSet .of(Resource .builder() .id("52415800-8b69-11e0-9b19-734f6af67565") .name("sample-server") .links( Link.create( Relation.SELF, URI.create("http://servers.api.openstack.org/v1.1/1234/servers/52415800-8b69-11e0-9b19-734f6af67565")), Link.create( Relation.BOOKMARK, URI.create("http://servers.api.openstack.org/1234/servers/52415800-8b69-11e0-9b19-734f6af67565"))) .build(), Resource .builder() .id("52415800-8b69-11e0-9b19-734f1f1350e5") .name("sample-server2") .links( Link.create( Relation.SELF, URI.create("http://servers.api.openstack.org/v1.1/1234/servers/52415800-8b69-11e0-9b19-734f1f1350e5")), Link.create( Relation.BOOKMARK, URI.create("http://servers.api.openstack.org/1234/servers/52415800-8b69-11e0-9b19-734f1f1350e5"))) .build()); }
public T links(Link... in) { return links(in == null ? null : ImmutableSet.copyOf(in)); }
public T links(Link... in) { return links(ImmutableSet.copyOf(in)); }
public T links(Link... in) { return links(in == null ? null : ImmutableSet.copyOf(in)); }
public T links(Link... in) { return links(in == null ? null : ImmutableSet.copyOf(in)); }
public T fromResource(Resource in) { return this .id(in.getId()) .name(in.getName()) .links(in.getLinks()); } }
public T fromResource(Resource in) { return this .id(in.getId()) .name(in.getName()) .links(in.getLinks()); } }
public T fromResource(Resource in) { return this .id(in.getId()) .name(in.getName()) .links(in.getLinks()); } }
public T fromResource(Resource in) { return this .id(in.getId()) .name(in.getName()) .links(in.getLinks()); } }
public T fromResource(Resource in) { return this .id(in.getId()) .name(in.getName()) .links(in.getLinks()); } }
public T fromResource(Resource in) { return this .id(in.getId()) .name(in.getName()) .links(in.getLinks()); } }
public T fromResource(Resource in) { return this .id(in.getId()) .name(in.getName()) .links(in.getLinks()); } }