public ServiceSpecBuilder( ServiceSpecFluent<?> fluent , ServiceSpec instance ){ this.fluent = fluent; fluent.withCreateExternalLoadBalancer(instance.getCreateExternalLoadBalancer()); fluent.withPortalIP(instance.getPortalIP()); fluent.withPorts(instance.getPorts()); fluent.withPublicIPs(instance.getPublicIPs()); fluent.withSelector(instance.getSelector()); fluent.withSessionAffinity(instance.getSessionAffinity()); fluent.withType(instance.getType()); } public ServiceSpecBuilder( ServiceSpec instance ){
public ServiceSpecBuilder( ServiceSpec instance ){ this.fluent = this; this.withCreateExternalLoadBalancer(instance.getCreateExternalLoadBalancer()); this.withPortalIP(instance.getPortalIP()); this.withPorts(instance.getPorts()); this.withPublicIPs(instance.getPublicIPs()); this.withSelector(instance.getSelector()); this.withSessionAffinity(instance.getSessionAffinity()); this.withType(instance.getType()); }