return customerAgentInfoBuilder.build();
/** * <p> * Details about discovered agents, including agent status and health. * </p> * This is a convenience that creates an instance of the {@link CustomerAgentInfo.Builder} avoiding the need to * create one manually via {@link CustomerAgentInfo#builder()}. * * When the {@link Consumer} completes, {@link CustomerAgentInfo.Builder#build()} is called immediately and its * result is passed to {@link #agentSummary(CustomerAgentInfo)}. * * @param agentSummary * a consumer that will call methods on {@link CustomerAgentInfo.Builder} * @return Returns a reference to this object so that method calls can be chained together. * @see #agentSummary(CustomerAgentInfo) */ default Builder agentSummary(Consumer<CustomerAgentInfo.Builder> agentSummary) { return agentSummary(CustomerAgentInfo.builder().applyMutation(agentSummary).build()); }
/** * <p> * Details about discovered agents, including agent status and health. * </p> * This is a convenience that creates an instance of the {@link CustomerAgentInfo.Builder} avoiding the need to * create one manually via {@link CustomerAgentInfo#builder()}. * * When the {@link Consumer} completes, {@link CustomerAgentInfo.Builder#build()} is called immediately and its * result is passed to {@link #agentSummary(CustomerAgentInfo)}. * * @param agentSummary * a consumer that will call methods on {@link CustomerAgentInfo.Builder} * @return Returns a reference to this object so that method calls can be chained together. * @see #agentSummary(CustomerAgentInfo) */ default Builder agentSummary(Consumer<CustomerAgentInfo.Builder> agentSummary) { return agentSummary(CustomerAgentInfo.builder().applyMutation(agentSummary).build()); }
/** * <p> * Details about discovered agents, including agent status and health. * </p> * This is a convenience that creates an instance of the {@link CustomerAgentInfo.Builder} avoiding the need to * create one manually via {@link CustomerAgentInfo#builder()}. * * When the {@link Consumer} completes, {@link CustomerAgentInfo.Builder#build()} is called immediately and its * result is passed to {@link #agentSummary(CustomerAgentInfo)}. * * @param agentSummary * a consumer that will call methods on {@link CustomerAgentInfo.Builder} * @return Returns a reference to this object so that method calls can be chained together. * @see #agentSummary(CustomerAgentInfo) */ default Builder agentSummary(Consumer<CustomerAgentInfo.Builder> agentSummary) { return agentSummary(CustomerAgentInfo.builder().applyMutation(agentSummary).build()); }