Package com.vmware.nsx_policy.model
Class BatchResponse.Builder
- java.lang.Object
-
- com.vmware.nsx_policy.model.BatchResponse.Builder
-
- Enclosing class:
- BatchResponse
public static final class BatchResponse.Builder extends java.lang.Object
Builder class forBatchResponse
.
-
-
Constructor Summary
Constructors Constructor Description Builder()
Constructor with parameters for the required properties ofBatchResponse
.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description BatchResponse
build()
BatchResponse.Builder
setHasErrors(java.lang.Boolean hasErrors)
Indicates if any of the APIs failedBatchResponse.Builder
setResults(java.util.List<BatchResponseItem> results)
Bulk list resultsBatchResponse.Builder
setRolledBack(java.lang.Boolean rolledBack)
Optional flag indicating that all items were rolled back even if succeeded initially
-
-
-
Constructor Detail
-
Builder
public Builder()
Constructor with parameters for the required properties ofBatchResponse
.
-
-
Method Detail
-
setHasErrors
public BatchResponse.Builder setHasErrors(java.lang.Boolean hasErrors)
Indicates if any of the APIs failed- Parameters:
hasErrors
- New value for the property.
-
setResults
public BatchResponse.Builder setResults(java.util.List<BatchResponseItem> results)
Bulk list results- Parameters:
results
- New value for the property.
-
setRolledBack
public BatchResponse.Builder setRolledBack(java.lang.Boolean rolledBack)
Optional flag indicating that all items were rolled back even if succeeded initially- Parameters:
rolledBack
- New value for the property.
-
build
public BatchResponse build()
-
-