[SDC] Onboarding 1710 rebase.
[sdc.git] / openecomp-be / backend / openecomp-sdc-vendor-software-product-manager / src / main / java / org / openecomp / sdc / vendorsoftwareproduct / errors / DeleteNicErrorBuilder.java
1 package org.openecomp.sdc.vendorsoftwareproduct.errors;
2
3 import org.openecomp.sdc.common.errors.ErrorCategory;
4 import org.openecomp.sdc.common.errors.ErrorCode;
5
6 public class DeleteNicErrorBuilder {
7     private static final String DELETE_NIC_NOT_ALLOWED_MSG =
8             "NIC cannot be deleted for VSPs onboarded with HEAT.";
9
10     public static ErrorCode getDeleteNicForHeatOnboardedVspErrorBuilder(){
11         ErrorCode.ErrorCodeBuilder builder = new ErrorCode.ErrorCodeBuilder();
12         builder.withId(VendorSoftwareProductErrorCodes.DELETE_NIC_NOT_ALLOWED);
13         builder.withCategory(ErrorCategory.APPLICATION);
14         builder.withMessage(String.format(DELETE_NIC_NOT_ALLOWED_MSG));
15         return builder.build();
16     }
17
18 }