import java.util.List;
import java.util.Map;
import lombok.Data;
+import lombok.NoArgsConstructor;
import lombok.NonNull;
import org.onap.policy.common.parameters.BeanValidationResult;
import org.onap.policy.common.parameters.ValidationResult;
* @author Ram Krishna Verma (ram.krishna.verma@est.tech)
*/
@Data
+@NoArgsConstructor
public class PdpSubGroup {
private String pdpType;
private List<ToscaConceptIdentifier> supportedPolicyTypes;
private Map<String, String> properties;
private List<Pdp> pdpInstances;
- /**
- * Constructs the object.
- */
- public PdpSubGroup() {
- super();
- }
-
/**
* Constructs the object, making a deep copy from the source.
*
* @return the validation result
*/
public ValidationResult validatePapRest(boolean updateGroupFlow) {
- BeanValidationResult result = new BeanValidationResult("group", this);
+ var result = new BeanValidationResult("group", this);
result.validateNotNull("pdpType", pdpType);
// When doing PdpGroup Update operation, supported policy types and policies doesn't have to be validated.