Skip to content

Commit

Permalink
LPD-50006 Autogenerated Code (buildRest)
Browse files Browse the repository at this point in the history
  • Loading branch information
smottal committed Feb 26, 2025
1 parent 275b6e7 commit 14e3d61
Show file tree
Hide file tree
Showing 25 changed files with 1,134 additions and 447 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ public void setExternalReferenceCode(
}

@GraphQLField(description = "The account's external reference code.")
@JsonProperty(access = JsonProperty.Access.READ_ONLY)
@JsonProperty(access = JsonProperty.Access.READ_WRITE)
protected String externalReferenceCode;

@JsonIgnore
Expand Down Expand Up @@ -166,7 +166,7 @@ public void setName(UnsafeSupplier<String, Exception> nameUnsafeSupplier) {
}

@GraphQLField(description = "The account's name.")
@JsonProperty(access = JsonProperty.Access.READ_ONLY)
@JsonProperty(access = JsonProperty.Access.READ_WRITE)
protected String name;

@JsonIgnore
Expand Down Expand Up @@ -214,6 +214,45 @@ public void setRoleBriefs(
@JsonIgnore
private Supplier<RoleBrief[]> _roleBriefsSupplier;

@Schema(description = "The account's type.")
public String getType() {
if (_typeSupplier != null) {
type = _typeSupplier.get();

_typeSupplier = null;
}

return type;
}

public void setType(String type) {
this.type = type;

_typeSupplier = null;
}

@JsonIgnore
public void setType(UnsafeSupplier<String, Exception> typeUnsafeSupplier) {
_typeSupplier = () -> {
try {
return typeUnsafeSupplier.get();
}
catch (RuntimeException runtimeException) {
throw runtimeException;
}
catch (Exception exception) {
throw new RuntimeException(exception);
}
};
}

@GraphQLField(description = "The account's type.")
@JsonProperty(access = JsonProperty.Access.READ_WRITE)
protected String type;

@JsonIgnore
private Supplier<String> _typeSupplier;

@Override
public boolean equals(Object object) {
if (this == object) {
Expand Down Expand Up @@ -307,6 +346,22 @@ public String toString() {
sb.append("]");
}

String type = getType();

if (type != null) {
if (sb.length() > 1) {
sb.append(", ");
}

sb.append("\"type\": ");

sb.append("\"");

sb.append(_escape(type));

sb.append("\"");
}

sb.append("}");

return sb.toString();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ public void setAccountBriefs(
@GraphQLField(
description = "The list of accounts associated with this account group."
)
@JsonProperty(access = JsonProperty.Access.READ_ONLY)
@JsonProperty(access = JsonProperty.Access.READ_WRITE)
protected AccountBrief[] accountBriefs;

@JsonIgnore
Expand Down Expand Up @@ -184,7 +184,7 @@ public void setCreator(
}

@GraphQLField(description = "The user who created the account group.")
@JsonProperty(access = JsonProperty.Access.READ_ONLY)
@JsonProperty(access = JsonProperty.Access.READ_WRITE)
protected Creator creator;

@JsonIgnore
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -137,6 +137,88 @@ public void setContentType(
@JsonIgnore
private Supplier<String> _contentTypeSupplier;

@Schema(description = "The user's email address.")
public String getEmailAddress() {
if (_emailAddressSupplier != null) {
emailAddress = _emailAddressSupplier.get();

_emailAddressSupplier = null;
}

return emailAddress;
}

public void setEmailAddress(String emailAddress) {
this.emailAddress = emailAddress;

_emailAddressSupplier = null;
}

@JsonIgnore
public void setEmailAddress(
UnsafeSupplier<String, Exception> emailAddressUnsafeSupplier) {

_emailAddressSupplier = () -> {
try {
return emailAddressUnsafeSupplier.get();
}
catch (RuntimeException runtimeException) {
throw runtimeException;
}
catch (Exception exception) {
throw new RuntimeException(exception);
}
};
}

@GraphQLField(description = "The user's email address.")
@JsonProperty(access = JsonProperty.Access.READ_WRITE)
protected String emailAddress;

@JsonIgnore
private Supplier<String> _emailAddressSupplier;

@Schema(description = "The user's external reference code.")
public String getExternalReferenceCode() {
if (_externalReferenceCodeSupplier != null) {
externalReferenceCode = _externalReferenceCodeSupplier.get();

_externalReferenceCodeSupplier = null;
}

return externalReferenceCode;
}

public void setExternalReferenceCode(String externalReferenceCode) {
this.externalReferenceCode = externalReferenceCode;

_externalReferenceCodeSupplier = null;
}

@JsonIgnore
public void setExternalReferenceCode(
UnsafeSupplier<String, Exception> externalReferenceCodeUnsafeSupplier) {

_externalReferenceCodeSupplier = () -> {
try {
return externalReferenceCodeUnsafeSupplier.get();
}
catch (RuntimeException runtimeException) {
throw runtimeException;
}
catch (Exception exception) {
throw new RuntimeException(exception);
}
};
}

@GraphQLField(description = "The user's external reference code.")
@JsonProperty(access = JsonProperty.Access.READ_WRITE)
protected String externalReferenceCode;

@JsonIgnore
private Supplier<String> _externalReferenceCodeSupplier;

@Schema(description = "The user's surname (last name).")
public String getFamilyName() {
if (_familyNameSupplier != null) {
Expand Down Expand Up @@ -172,7 +254,7 @@ public void setFamilyName(
}

@GraphQLField(description = "The user's surname (last name).")
@JsonProperty(access = JsonProperty.Access.READ_ONLY)
@JsonProperty(access = JsonProperty.Access.READ_WRITE)
protected String familyName;

@JsonIgnore
Expand Down Expand Up @@ -213,7 +295,7 @@ public void setGivenName(
}

@GraphQLField(description = "The user's first name.")
@JsonProperty(access = JsonProperty.Access.READ_ONLY)
@JsonProperty(access = JsonProperty.Access.READ_WRITE)
protected String givenName;

@JsonIgnore
Expand Down Expand Up @@ -379,6 +461,47 @@ public void setProfileURL(
@JsonIgnore
private Supplier<String> _profileURLSupplier;

@Schema(description = "The user's screen name.")
public String getScreenName() {
if (_screenNameSupplier != null) {
screenName = _screenNameSupplier.get();

_screenNameSupplier = null;
}

return screenName;
}

public void setScreenName(String screenName) {
this.screenName = screenName;

_screenNameSupplier = null;
}

@JsonIgnore
public void setScreenName(
UnsafeSupplier<String, Exception> screenNameUnsafeSupplier) {

_screenNameSupplier = () -> {
try {
return screenNameUnsafeSupplier.get();
}
catch (RuntimeException runtimeException) {
throw runtimeException;
}
catch (Exception exception) {
throw new RuntimeException(exception);
}
};
}

@GraphQLField(description = "The user's screen name.")
@JsonProperty(access = JsonProperty.Access.READ_WRITE)
protected String screenName;

@JsonIgnore
private Supplier<String> _screenNameSupplier;

@Override
public boolean equals(Object object) {
if (this == object) {
Expand Down Expand Up @@ -438,6 +561,38 @@ public String toString() {
sb.append("\"");
}

String emailAddress = getEmailAddress();

if (emailAddress != null) {
if (sb.length() > 1) {
sb.append(", ");
}

sb.append("\"emailAddress\": ");

sb.append("\"");

sb.append(_escape(emailAddress));

sb.append("\"");
}

String externalReferenceCode = getExternalReferenceCode();

if (externalReferenceCode != null) {
if (sb.length() > 1) {
sb.append(", ");
}

sb.append("\"externalReferenceCode\": ");

sb.append("\"");

sb.append(_escape(externalReferenceCode));

sb.append("\"");
}

String familyName = getFamilyName();

if (familyName != null) {
Expand Down Expand Up @@ -530,6 +685,22 @@ public String toString() {
sb.append("\"");
}

String screenName = getScreenName();

if (screenName != null) {
if (sb.length() > 1) {
sb.append(", ");
}

sb.append("\"screenName\": ");

sb.append("\"");

sb.append(_escape(screenName));

sb.append("\"");
}

sb.append("}");

return sb.toString();
Expand Down
Loading

0 comments on commit 14e3d61

Please sign in to comment.