Class LeadResponse.Builder
- java.lang.Object
-
- com.merge.api.resources.crm.types.LeadResponse.Builder
-
- All Implemented Interfaces:
LeadResponse._FinalStage,LeadResponse.ModelStage
- Enclosing class:
- LeadResponse
public static final class LeadResponse.Builder extends java.lang.Object implements LeadResponse.ModelStage, LeadResponse._FinalStage
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description LeadResponse._FinalStageaddAllErrors(java.util.List<ErrorValidationProblem> errors)LeadResponse._FinalStageaddAllWarnings(java.util.List<WarningValidationProblem> warnings)LeadResponse._FinalStageaddErrors(ErrorValidationProblem errors)LeadResponse._FinalStageaddWarnings(WarningValidationProblem warnings)LeadResponsebuild()LeadResponse._FinalStageerrors(java.util.List<ErrorValidationProblem> errors)LeadResponse.Builderfrom(LeadResponse other)LeadResponse._FinalStagelogs(java.util.List<DebugModeLog> logs)LeadResponse._FinalStagelogs(java.util.Optional<java.util.List<DebugModeLog>> logs)LeadResponse._FinalStagemodel(Lead model)LeadResponse._FinalStagewarnings(java.util.List<WarningValidationProblem> warnings)
-
-
-
Method Detail
-
from
public LeadResponse.Builder from(LeadResponse other)
- Specified by:
fromin interfaceLeadResponse.ModelStage
-
model
public LeadResponse._FinalStage model(Lead model)
- Specified by:
modelin interfaceLeadResponse.ModelStage
-
logs
public LeadResponse._FinalStage logs(java.util.List<DebugModeLog> logs)
- Specified by:
logsin interfaceLeadResponse._FinalStage
-
logs
public LeadResponse._FinalStage logs(java.util.Optional<java.util.List<DebugModeLog>> logs)
- Specified by:
logsin interfaceLeadResponse._FinalStage
-
addAllErrors
public LeadResponse._FinalStage addAllErrors(java.util.List<ErrorValidationProblem> errors)
- Specified by:
addAllErrorsin interfaceLeadResponse._FinalStage
-
addErrors
public LeadResponse._FinalStage addErrors(ErrorValidationProblem errors)
- Specified by:
addErrorsin interfaceLeadResponse._FinalStage
-
errors
public LeadResponse._FinalStage errors(java.util.List<ErrorValidationProblem> errors)
- Specified by:
errorsin interfaceLeadResponse._FinalStage
-
addAllWarnings
public LeadResponse._FinalStage addAllWarnings(java.util.List<WarningValidationProblem> warnings)
- Specified by:
addAllWarningsin interfaceLeadResponse._FinalStage
-
addWarnings
public LeadResponse._FinalStage addWarnings(WarningValidationProblem warnings)
- Specified by:
addWarningsin interfaceLeadResponse._FinalStage
-
warnings
public LeadResponse._FinalStage warnings(java.util.List<WarningValidationProblem> warnings)
- Specified by:
warningsin interfaceLeadResponse._FinalStage
-
build
public LeadResponse build()
- Specified by:
buildin interfaceLeadResponse._FinalStage
-
-