@Override public Boolean shouldUnwrapProperty(AnnotatedMember member) { JsonUnwrapped ann = member.getAnnotation(JsonUnwrapped.class); // if not enabled, just means annotation is not enabled; not necessarily // that unwrapping should not be done (relevant when using chained introspectors) return (ann != null && ann.enabled()) ? Boolean.TRUE : null; }
/** * Represents OpsGenie service response for get user request. * * @see com.ifountain.opsgenie.client.IUserOpsGenieClient#getUser(GetUserRequest) */ public class GetUserResponse extends BaseResponse { @JsonUnwrapped private User user; /** * Details of user * * @see User */ public User getUser() { return user; } /** * Sets details of user * * @see User */ public void setUser(User user) { this.user = user; } }
/** * Represents OpsGenie service response for who is on call request. * * @see com.ifountain.opsgenie.client.IScheduleOpsGenieClient#whoIsOnCall(WhoIsOnCallRequest) */ public class WhoIsOnCallResponse extends BaseResponse { @JsonUnwrapped private WhoIsOnCall whoIsOnCall; /** * Details of schedule on call * * @see com.ifountain.opsgenie.client.model.beans.WhoIsOnCall */ public WhoIsOnCall getWhoIsOnCall() { return whoIsOnCall; } /** * Sets details of schedule on call * * @see com.ifountain.opsgenie.client.model.beans.WhoIsOnCall */ public void setWhoIsOnCall(WhoIsOnCall whoIsOnCall) { this.whoIsOnCall = whoIsOnCall; } }
private UUID id; @JsonUnwrapped private final Attributes extensions = new Attributes();
@Override public Boolean shouldUnwrapProperty(AnnotatedMember member) { JsonUnwrapped ann = member.getAnnotation(JsonUnwrapped.class); // if not enabled, just means annotation is not enabled; not necessarily // that unwrapping should not be done (relevant when using chained introspectors) return (ann != null && ann.enabled()) ? Boolean.TRUE : null; }
/** * Represents OpsGenie service response for get heartbeat request. * * @see com.ifountain.opsgenie.client.IOpsGenieClient#getHeartbeat(com.ifountain.opsgenie.client.model.customer.GetHeartbeatRequest) */ public class GetHeartbeatResponse extends BaseResponse { @JsonUnwrapped private Heartbeat heartbeat; /** * Heartbeat object * * @see Heartbeat */ public Heartbeat getHeartbeat() { return heartbeat; } /** * Sets heartbeat object * * @see Heartbeat */ public void setHeartbeat(Heartbeat heartbeat) { this.heartbeat = heartbeat; } }
@Override public Boolean shouldUnwrapProperty(AnnotatedMember member) { JsonUnwrapped ann = member.getAnnotation(JsonUnwrapped.class); // if not enabled, just means annotation is not enabled; not necessarily // that unwrapping should not be done (relevant when using chained introspectors) return (ann != null && ann.enabled()) ? Boolean.TRUE : null; }
/** * Represents OpsGenie service response for get account request. * * @see com.ifountain.opsgenie.client.IAccountOpsGenieClient#getAccount(GetAccountInfoRequest) */ public class GetAccountInfoResponse extends BaseResponse { @JsonUnwrapped private Account account; /** * Details of account * * @see Account */ public Account getAccount() { return account; } /** * Sets details of account * * @see Account */ public void setAccount(Account account) { this.account = account; } }
@Override public Boolean shouldUnwrapProperty(AnnotatedMember member) { JsonUnwrapped ann = member.getAnnotation(JsonUnwrapped.class); // if not enabled, just means annotation is not enabled; not necessarily // that unwrapping should not be done (relevant when using chained introspectors) return (ann != null && ann.enabled()) ? Boolean.TRUE : null; }
@JsonUnwrapped private ScheduleOverride scheduleOverride;
for (VariableElement fieldDeclaration : fieldElements) { JsonUnwrapped unwrapped = fieldDeclaration.getAnnotation(JsonUnwrapped.class); if (unwrapped != null && unwrapped.enabled()) { TypeMirror typeMirror = fieldDeclaration.asType(); if (!(typeMirror instanceof DeclaredType)) { if (unwrapped != null && unwrapped.enabled()) { DecoratedTypeElement element; TypeMirror typeMirror = propertyDeclaration.asType();
/** * Represents OpsGenie service response for get TeamRoutingRules request. * * @author Mehmet Mustafa Demir * @see com.ifountain.opsgenie.client.ITeamOpsGenieClient#getTeamRoutingRule(GetTeamRoutingRuleRequest) */ public class GetTeamRoutingRuleResponse extends BaseResponse { @JsonUnwrapped private TeamRoutingRule rule; /** * Details of TeamRoutingRule * * @see TeamRoutingRule */ public TeamRoutingRule getRule() { return rule; } /** * Sets details of TeamRoutingRule * * @see TeamRoutingRule */ public void setRule(TeamRoutingRule rule) { this.rule = rule; } }
for (VariableElement fieldDeclaration : fieldElements) { JsonUnwrapped unwrapped = fieldDeclaration.getAnnotation(JsonUnwrapped.class); if (unwrapped != null && unwrapped.enabled()) { TypeMirror typeMirror = fieldDeclaration.asType(); if (!(typeMirror instanceof DeclaredType)) { if (unwrapped != null && unwrapped.enabled()) { DecoratedTypeElement element; TypeMirror typeMirror = propertyDeclaration.asType();
/** * Represents OpsGenie service response for get team request. * * @author Sezgin Kucukkaraaslan * @see com.ifountain.opsgenie.client.ITeamOpsGenieClient#getTeam(GetTeamRequest) */ public class GetTeamResponse extends BaseResponse { @JsonUnwrapped private Team team; /** * Details of team * * @see com.ifountain.opsgenie.client.model.beans.Team */ public Team getTeam() { return team; } /** * Sets details of team * * @see com.ifountain.opsgenie.client.model.beans.Team */ public void setTeam(Team team) { this.team = team; } }
/** * Represents OpsGenie service response for get contact request. * * @author Mehmet Mustafa Demir * @see com.ifountain.opsgenie.client.IContactOpsGenieClient#getContact(GetContactRequest) */ public class GetContactResponse extends BaseResponse { @JsonUnwrapped private Contact contact; /** * Details of contact * * @see Contact */ public Contact getContact() { return contact; } /** * Sets details of contact * * @see Contact */ public void setContact(Contact contact) { this.contact = contact; } }
/** * Represents OpsGenie service response for get notificationRule request. * * @author Mehmet Mustafa Demir * @see com.ifountain.opsgenie.client.INotificationRuleOpsGenieClient#getNotificationRule(GetNotificationRuleRequest) */ public class GetNotificationRuleResponse extends BaseResponse { @JsonUnwrapped private NotificationRule notificationRule; /** * Details of notificationRule * * @see NotificationRule */ public NotificationRule getNotificationRule() { return notificationRule; } /** * Sets details of notificationRule * * @see NotificationRule */ public void setNotificationRule(NotificationRule notificationRule) { this.notificationRule = notificationRule; } }
/** * Represents OpsGenie service response for flat who is on call request. * * @see com.ifountain.opsgenie.client.IScheduleOpsGenieClient#flatWhoIsOnCall(FlatWhoIsOnCallRequest) */ public class FlatWhoIsOnCallResponse extends BaseResponse { @JsonUnwrapped private FlatWhoIsOnCall whoIsOnCall; /** * Details of schedule flat on call * * @see com.ifountain.opsgenie.client.model.beans.FlatWhoIsOnCall */ public FlatWhoIsOnCall getWhoIsOnCall() { return whoIsOnCall; } /** * Sets details of schedule flat on call * * @see com.ifountain.opsgenie.client.model.beans.FlatWhoIsOnCall */ public void setWhoIsOnCall(FlatWhoIsOnCall whoIsOnCall) { this.whoIsOnCall = whoIsOnCall; } }
@JsonUnwrapped private Forwarding forwarding;
/** * Represents OpsGenie service response for get escalation request. * * @author Sezgin Kucukkaraaslan * @see com.ifountain.opsgenie.client.IEscalationOpsGenieClient#getEscalation(GetEscalationRequest) */ public class GetEscalationResponse extends BaseResponse { @JsonUnwrapped private Escalation escalation; /** * Details of escalation * * @see com.ifountain.opsgenie.client.model.beans.Escalation */ public Escalation getEscalation() { return escalation; } /** * Sets details of escalation * * @see com.ifountain.opsgenie.client.model.beans.Escalation */ public void setEscalation(Escalation escalation) { this.escalation = escalation; } }
@JsonUnwrapped private Schedule schedule;