Commit 13cb5183 authored by Komal Makkar's avatar Komal Makkar
Browse files

Removing Lombok

parent f11ec6d7
Pipeline #7217 failed with stage
in 1 minute and 54 seconds
......@@ -18,18 +18,13 @@ import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
@Data
@AllArgsConstructor
@NoArgsConstructor
public class HandshakeRequestData {
@NotEmpty
@NotNull
String validationCode;
@NotEmpty
@NotNull
String validationUrl;
private String validationCode;
private String validationUrl;
}
......@@ -13,35 +13,27 @@
// limitations under the License.
package org.opengroup.osdu.notification.provider.azure.models;
import lombok.*;
import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import java.util.Map;
@Getter
@NoArgsConstructor(access = AccessLevel.PRIVATE)
@RequiredArgsConstructor
@Data
@NoArgsConstructor
@AllArgsConstructor
public class NotificationData {
@NotEmpty
@NonNull
private String data;
@NotEmpty
@NonNull
private Map<String,String> attributes;
@NotEmpty
@NonNull
private String messageId;
@NotEmpty
@NotNull
String validationCode;
@NotEmpty
@NotNull
String validationUrl;
}
......@@ -14,39 +14,25 @@
package org.opengroup.osdu.notification.provider.azure.models;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.google.gson.JsonObject;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
@Data
@AllArgsConstructor
@NoArgsConstructor
public class NotificationRequest {
@NotNull
@NotEmpty
String id;
@NotNull
@NotEmpty
String eventType;
private String id;
private String eventType;
@NotNull
@NotEmpty
String subject;
private String subject;
@NotNull
@JsonProperty("data")
JsonObject data;
private JsonObject data;
@NotNull
@NotEmpty
String eventTime;
private String eventTime;
}
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment