@Test public void testPatch() { Client toPatch = new Client(); toPatch.setClientName("oldName"); toPatch.setClientSecret("expectedSecret"); toPatch.setCertificate("shouldDisappear"); toPatch.setAccessTokenValiditySeconds(7200); toPatch.setRefreshTokenValiditySeconds(3600); PatchClient patcher = new PatchClient(); patcher.setClientName(Optional.of("expectedClientName")); patcher.setCertificate(Optional.empty()); patcher.setAccessTokenValiditySeconds(Optional.of(14400)); patcher.setRefreshTokenValiditySeconds(Optional.empty()); Client result = patcher.patch(toPatch, false); assertNotNull(result); assertEquals("Client name should have been replaced","expectedClientName",result.getClientName()); assertEquals("Client secret should have been kept","expectedSecret", result.getClientSecret()); assertNull("Certificate should have been erased",result.getCertificate()); assertEquals("Access token validity should have been replaced",14400,result.getAccessTokenValiditySeconds()); assertEquals("Refresh token validity should have been removed",0, result.getRefreshTokenValiditySeconds()); }
public Client patch(Client _toPatch, boolean forceNull) { Client toPatch = new Client(_toPatch); SetterUtils.safeSet(toPatch::setRedirectUris, this.getRedirectUris()); SetterUtils.safeSet(toPatch::setAuthorizedGrantTypes, this.getAuthorizedGrantTypes()); SetterUtils.safeSet(toPatch::setResponseTypes, this.getResponseTypes()); SetterUtils.safeSet(toPatch::setApplicationType, this.getApplicationType()); SetterUtils.safeSet(toPatch::setContacts,this.getContacts()); SetterUtils.safeSet(toPatch::setClientName, this.getClientName()); SetterUtils.safeSet(toPatch::setLogoUri,this.getLogoUri()); SetterUtils.safeSet(toPatch::setClientUri,this.getClientUri()); SetterUtils.safeSet(toPatch::setPolicyUri,this.getPolicyUri()); SetterUtils.safeSet(toPatch::setTosUri,this.getTosUri()); SetterUtils.safeSet(toPatch::setJwksUri,this.getJwksUri()); SetterUtils.safeSet(toPatch::setJwks,this.getJwks()); SetterUtils.safeSet(toPatch::setSectorIdentifierUri,this.getSectorIdentifierUri()); SetterUtils.safeSet(toPatch::setSubjectType,this.getSubjectType()); SetterUtils.safeSet(toPatch::setIdTokenSignedResponseAlg,this.getIdTokenSignedResponseAlg()); SetterUtils.safeSet(toPatch::setIdTokenEncryptedResponseAlg,this.getIdTokenSignedResponseAlg()); SetterUtils.safeSet(toPatch::setIdTokenEncryptedResponseEnc,this.getIdTokenEncryptedResponseEnc()); SetterUtils.safeSet(toPatch::setUserinfoSignedResponseAlg,this.getUserinfoSignedResponseAlg()); SetterUtils.safeSet(toPatch::setUserinfoEncryptedResponseAlg,this.getUserinfoEncryptedResponseAlg()); SetterUtils.safeSet(toPatch::setUserinfoEncryptedResponseEnc,this.getUserinfoEncryptedResponseEnc()); SetterUtils.safeSet(toPatch::setRequestObjectSigningAlg,this.getRequestObjectSigningAlg()); SetterUtils.safeSet(toPatch::setRequestObjectEncryptionAlg,this.getRequestObjectEncryptionAlg()); SetterUtils.safeSet(toPatch::setRequestObjectEncryptionEnc,this.getRequestObjectEncryptionEnc()); SetterUtils.safeSet(toPatch::setTokenEndpointAuthMethod,this.getTokenEndpointAuthMethod()); SetterUtils.safeSet(toPatch::setTokenEndpointAuthSigningAlg,this.getTokenEndpointAuthSigningAlg()); SetterUtils.safeSet(toPatch::setDefaultMaxAge,this.getDefaultMaxAge()); SetterUtils.safeSet(toPatch::setRequireAuthTime,this.getRequireAuthTime()); SetterUtils.safeSet(toPatch::setDefaultACRvalues,this.getDefaultACRvalues()); SetterUtils.safeSet(toPatch::setInitiateLoginUri,this.getInitiateLoginUri()); SetterUtils.safeSet(toPatch::setRequestUris,this.getRequestUris()); SetterUtils.safeSet(toPatch::setScopes, this.getScopes()); SetterUtils.safeSet(toPatch::setSoftwareId,this.getSoftwareId()); SetterUtils.safeSet(toPatch::setSoftwareVersion,this.getSoftwareVersion()); SetterUtils.safeSet(toPatch::setSoftwareStatement,this.getSoftwareStatement()); SetterUtils.safeSet(toPatch::setRegistrationAccessToken,this.getRegistrationAccessToken()); SetterUtils.safeSet(toPatch::setRegistrationClientUri,this.getRegistrationClientUri()); SetterUtils.safeSet(toPatch::setClientIdIssuedAt,this.getClientIdIssuedAt()); SetterUtils.safeSet(toPatch::setClientSecretExpiresAt,this.getClientSecretExpiresAt()); SetterUtils.safeSet(toPatch::setAutoApproveScopes, this.getAutoApproveScopes()); SetterUtils.safeSet(toPatch::setAccessTokenValiditySeconds, this.getAccessTokenValiditySeconds(), int.class); SetterUtils.safeSet(toPatch::setRefreshTokenValiditySeconds, this.getRefreshTokenValiditySeconds(), int.class); SetterUtils.safeSet(toPatch::setIdTokenValiditySeconds, this.getIdTokenValiditySeconds(), int.class); SetterUtils.safeSet(toPatch::setEnabled, this.getEnabled(), boolean.class); SetterUtils.safeSet(toPatch::setIdentities, this.getIdentities()); if (this.getCertificate() == null && forceNull) { toPatch.setCertificate(null); } else { SetterUtils.safeSet(toPatch::setCertificate, this.getCertificate()); } SetterUtils.safeSet(toPatch::setEnhanceScopesWithUserPermissions, this.getEnhanceScopesWithUserPermissions(), boolean.class); SetterUtils.safeSet(toPatch::setScopeApprovals, this.getScopeApprovals()); SetterUtils.safeSet(toPatch::setAccountSettings, this.getAccountSettings()); SetterUtils.safeSet(toPatch::setLoginSettings, this.getLoginSettings()); SetterUtils.safeSet(toPatch::setTokenCustomClaims, this.getTokenCustomClaims()); SetterUtils.safeSet(toPatch::setTemplate, this.getTemplate(), boolean.class); SetterUtils.safeSet(toPatch::setMetadata, this.getMetadata()); return toPatch; }
PatchClient { public Client patch(Client _toPatch, boolean forceNull) { Client toPatch = new Client(_toPatch); SetterUtils.safeSet(toPatch::setRedirectUris, this.getRedirectUris()); SetterUtils.safeSet(toPatch::setAuthorizedGrantTypes, this.getAuthorizedGrantTypes()); SetterUtils.safeSet(toPatch::setResponseTypes, this.getResponseTypes()); SetterUtils.safeSet(toPatch::setApplicationType, this.getApplicationType()); SetterUtils.safeSet(toPatch::setContacts,this.getContacts()); SetterUtils.safeSet(toPatch::setClientName, this.getClientName()); SetterUtils.safeSet(toPatch::setLogoUri,this.getLogoUri()); SetterUtils.safeSet(toPatch::setClientUri,this.getClientUri()); SetterUtils.safeSet(toPatch::setPolicyUri,this.getPolicyUri()); SetterUtils.safeSet(toPatch::setTosUri,this.getTosUri()); SetterUtils.safeSet(toPatch::setJwksUri,this.getJwksUri()); SetterUtils.safeSet(toPatch::setJwks,this.getJwks()); SetterUtils.safeSet(toPatch::setSectorIdentifierUri,this.getSectorIdentifierUri()); SetterUtils.safeSet(toPatch::setSubjectType,this.getSubjectType()); SetterUtils.safeSet(toPatch::setIdTokenSignedResponseAlg,this.getIdTokenSignedResponseAlg()); SetterUtils.safeSet(toPatch::setIdTokenEncryptedResponseAlg,this.getIdTokenSignedResponseAlg()); SetterUtils.safeSet(toPatch::setIdTokenEncryptedResponseEnc,this.getIdTokenEncryptedResponseEnc()); SetterUtils.safeSet(toPatch::setUserinfoSignedResponseAlg,this.getUserinfoSignedResponseAlg()); SetterUtils.safeSet(toPatch::setUserinfoEncryptedResponseAlg,this.getUserinfoEncryptedResponseAlg()); SetterUtils.safeSet(toPatch::setUserinfoEncryptedResponseEnc,this.getUserinfoEncryptedResponseEnc()); SetterUtils.safeSet(toPatch::setRequestObjectSigningAlg,this.getRequestObjectSigningAlg()); SetterUtils.safeSet(toPatch::setRequestObjectEncryptionAlg,this.getRequestObjectEncryptionAlg()); SetterUtils.safeSet(toPatch::setRequestObjectEncryptionEnc,this.getRequestObjectEncryptionEnc()); SetterUtils.safeSet(toPatch::setTokenEndpointAuthMethod,this.getTokenEndpointAuthMethod()); SetterUtils.safeSet(toPatch::setTokenEndpointAuthSigningAlg,this.getTokenEndpointAuthSigningAlg()); SetterUtils.safeSet(toPatch::setDefaultMaxAge,this.getDefaultMaxAge()); SetterUtils.safeSet(toPatch::setRequireAuthTime,this.getRequireAuthTime()); SetterUtils.safeSet(toPatch::setDefaultACRvalues,this.getDefaultACRvalues()); SetterUtils.safeSet(toPatch::setInitiateLoginUri,this.getInitiateLoginUri()); SetterUtils.safeSet(toPatch::setRequestUris,this.getRequestUris()); SetterUtils.safeSet(toPatch::setScopes, this.getScopes()); SetterUtils.safeSet(toPatch::setSoftwareId,this.getSoftwareId()); SetterUtils.safeSet(toPatch::setSoftwareVersion,this.getSoftwareVersion()); SetterUtils.safeSet(toPatch::setSoftwareStatement,this.getSoftwareStatement()); SetterUtils.safeSet(toPatch::setRegistrationAccessToken,this.getRegistrationAccessToken()); SetterUtils.safeSet(toPatch::setRegistrationClientUri,this.getRegistrationClientUri()); SetterUtils.safeSet(toPatch::setClientIdIssuedAt,this.getClientIdIssuedAt()); SetterUtils.safeSet(toPatch::setClientSecretExpiresAt,this.getClientSecretExpiresAt()); SetterUtils.safeSet(toPatch::setAutoApproveScopes, this.getAutoApproveScopes()); SetterUtils.safeSet(toPatch::setAccessTokenValiditySeconds, this.getAccessTokenValiditySeconds(), int.class); SetterUtils.safeSet(toPatch::setRefreshTokenValiditySeconds, this.getRefreshTokenValiditySeconds(), int.class); SetterUtils.safeSet(toPatch::setIdTokenValiditySeconds, this.getIdTokenValiditySeconds(), int.class); SetterUtils.safeSet(toPatch::setEnabled, this.getEnabled(), boolean.class); SetterUtils.safeSet(toPatch::setIdentities, this.getIdentities()); if (this.getCertificate() == null && forceNull) { toPatch.setCertificate(null); } else { SetterUtils.safeSet(toPatch::setCertificate, this.getCertificate()); } SetterUtils.safeSet(toPatch::setEnhanceScopesWithUserPermissions, this.getEnhanceScopesWithUserPermissions(), boolean.class); SetterUtils.safeSet(toPatch::setScopeApprovals, this.getScopeApprovals()); SetterUtils.safeSet(toPatch::setAccountSettings, this.getAccountSettings()); SetterUtils.safeSet(toPatch::setLoginSettings, this.getLoginSettings()); SetterUtils.safeSet(toPatch::setTokenCustomClaims, this.getTokenCustomClaims()); SetterUtils.safeSet(toPatch::setTemplate, this.getTemplate(), boolean.class); SetterUtils.safeSet(toPatch::setMetadata, this.getMetadata()); return toPatch; } }
PatchClient { public Client patch(Client _toPatch, boolean forceNull) { Client toPatch = new Client(_toPatch); SetterUtils.safeSet(toPatch::setRedirectUris, this.getRedirectUris()); SetterUtils.safeSet(toPatch::setAuthorizedGrantTypes, this.getAuthorizedGrantTypes()); SetterUtils.safeSet(toPatch::setResponseTypes, this.getResponseTypes()); SetterUtils.safeSet(toPatch::setApplicationType, this.getApplicationType()); SetterUtils.safeSet(toPatch::setContacts,this.getContacts()); SetterUtils.safeSet(toPatch::setClientName, this.getClientName()); SetterUtils.safeSet(toPatch::setLogoUri,this.getLogoUri()); SetterUtils.safeSet(toPatch::setClientUri,this.getClientUri()); SetterUtils.safeSet(toPatch::setPolicyUri,this.getPolicyUri()); SetterUtils.safeSet(toPatch::setTosUri,this.getTosUri()); SetterUtils.safeSet(toPatch::setJwksUri,this.getJwksUri()); SetterUtils.safeSet(toPatch::setJwks,this.getJwks()); SetterUtils.safeSet(toPatch::setSectorIdentifierUri,this.getSectorIdentifierUri()); SetterUtils.safeSet(toPatch::setSubjectType,this.getSubjectType()); SetterUtils.safeSet(toPatch::setIdTokenSignedResponseAlg,this.getIdTokenSignedResponseAlg()); SetterUtils.safeSet(toPatch::setIdTokenEncryptedResponseAlg,this.getIdTokenSignedResponseAlg()); SetterUtils.safeSet(toPatch::setIdTokenEncryptedResponseEnc,this.getIdTokenEncryptedResponseEnc()); SetterUtils.safeSet(toPatch::setUserinfoSignedResponseAlg,this.getUserinfoSignedResponseAlg()); SetterUtils.safeSet(toPatch::setUserinfoEncryptedResponseAlg,this.getUserinfoEncryptedResponseAlg()); SetterUtils.safeSet(toPatch::setUserinfoEncryptedResponseEnc,this.getUserinfoEncryptedResponseEnc()); SetterUtils.safeSet(toPatch::setRequestObjectSigningAlg,this.getRequestObjectSigningAlg()); SetterUtils.safeSet(toPatch::setRequestObjectEncryptionAlg,this.getRequestObjectEncryptionAlg()); SetterUtils.safeSet(toPatch::setRequestObjectEncryptionEnc,this.getRequestObjectEncryptionEnc()); SetterUtils.safeSet(toPatch::setTokenEndpointAuthMethod,this.getTokenEndpointAuthMethod()); SetterUtils.safeSet(toPatch::setTokenEndpointAuthSigningAlg,this.getTokenEndpointAuthSigningAlg()); SetterUtils.safeSet(toPatch::setDefaultMaxAge,this.getDefaultMaxAge()); SetterUtils.safeSet(toPatch::setRequireAuthTime,this.getRequireAuthTime()); SetterUtils.safeSet(toPatch::setDefaultACRvalues,this.getDefaultACRvalues()); SetterUtils.safeSet(toPatch::setInitiateLoginUri,this.getInitiateLoginUri()); SetterUtils.safeSet(toPatch::setRequestUris,this.getRequestUris()); SetterUtils.safeSet(toPatch::setScopes, this.getScopes()); SetterUtils.safeSet(toPatch::setSoftwareId,this.getSoftwareId()); SetterUtils.safeSet(toPatch::setSoftwareVersion,this.getSoftwareVersion()); SetterUtils.safeSet(toPatch::setSoftwareStatement,this.getSoftwareStatement()); SetterUtils.safeSet(toPatch::setRegistrationAccessToken,this.getRegistrationAccessToken()); SetterUtils.safeSet(toPatch::setRegistrationClientUri,this.getRegistrationClientUri()); SetterUtils.safeSet(toPatch::setClientIdIssuedAt,this.getClientIdIssuedAt()); SetterUtils.safeSet(toPatch::setClientSecretExpiresAt,this.getClientSecretExpiresAt()); SetterUtils.safeSet(toPatch::setAutoApproveScopes, this.getAutoApproveScopes()); SetterUtils.safeSet(toPatch::setAccessTokenValiditySeconds, this.getAccessTokenValiditySeconds(), int.class); SetterUtils.safeSet(toPatch::setRefreshTokenValiditySeconds, this.getRefreshTokenValiditySeconds(), int.class); SetterUtils.safeSet(toPatch::setIdTokenValiditySeconds, this.getIdTokenValiditySeconds(), int.class); SetterUtils.safeSet(toPatch::setEnabled, this.getEnabled(), boolean.class); SetterUtils.safeSet(toPatch::setIdentities, this.getIdentities()); if (this.getCertificate() == null && forceNull) { toPatch.setCertificate(null); } else { SetterUtils.safeSet(toPatch::setCertificate, this.getCertificate()); } SetterUtils.safeSet(toPatch::setEnhanceScopesWithUserPermissions, this.getEnhanceScopesWithUserPermissions(), boolean.class); SetterUtils.safeSet(toPatch::setScopeApprovals, this.getScopeApprovals()); SetterUtils.safeSet(toPatch::setAccountSettings, this.getAccountSettings()); SetterUtils.safeSet(toPatch::setLoginSettings, this.getLoginSettings()); SetterUtils.safeSet(toPatch::setTokenCustomClaims, this.getTokenCustomClaims()); SetterUtils.safeSet(toPatch::setTemplate, this.getTemplate(), boolean.class); SetterUtils.safeSet(toPatch::setMetadata, this.getMetadata()); return toPatch; }  }
PatchClient { public Client patch(Client _toPatch, boolean forceNull) { Client toPatch = new Client(_toPatch); SetterUtils.safeSet(toPatch::setRedirectUris, this.getRedirectUris()); SetterUtils.safeSet(toPatch::setAuthorizedGrantTypes, this.getAuthorizedGrantTypes()); SetterUtils.safeSet(toPatch::setResponseTypes, this.getResponseTypes()); SetterUtils.safeSet(toPatch::setApplicationType, this.getApplicationType()); SetterUtils.safeSet(toPatch::setContacts,this.getContacts()); SetterUtils.safeSet(toPatch::setClientName, this.getClientName()); SetterUtils.safeSet(toPatch::setLogoUri,this.getLogoUri()); SetterUtils.safeSet(toPatch::setClientUri,this.getClientUri()); SetterUtils.safeSet(toPatch::setPolicyUri,this.getPolicyUri()); SetterUtils.safeSet(toPatch::setTosUri,this.getTosUri()); SetterUtils.safeSet(toPatch::setJwksUri,this.getJwksUri()); SetterUtils.safeSet(toPatch::setJwks,this.getJwks()); SetterUtils.safeSet(toPatch::setSectorIdentifierUri,this.getSectorIdentifierUri()); SetterUtils.safeSet(toPatch::setSubjectType,this.getSubjectType()); SetterUtils.safeSet(toPatch::setIdTokenSignedResponseAlg,this.getIdTokenSignedResponseAlg()); SetterUtils.safeSet(toPatch::setIdTokenEncryptedResponseAlg,this.getIdTokenSignedResponseAlg()); SetterUtils.safeSet(toPatch::setIdTokenEncryptedResponseEnc,this.getIdTokenEncryptedResponseEnc()); SetterUtils.safeSet(toPatch::setUserinfoSignedResponseAlg,this.getUserinfoSignedResponseAlg()); SetterUtils.safeSet(toPatch::setUserinfoEncryptedResponseAlg,this.getUserinfoEncryptedResponseAlg()); SetterUtils.safeSet(toPatch::setUserinfoEncryptedResponseEnc,this.getUserinfoEncryptedResponseEnc()); SetterUtils.safeSet(toPatch::setRequestObjectSigningAlg,this.getRequestObjectSigningAlg()); SetterUtils.safeSet(toPatch::setRequestObjectEncryptionAlg,this.getRequestObjectEncryptionAlg()); SetterUtils.safeSet(toPatch::setRequestObjectEncryptionEnc,this.getRequestObjectEncryptionEnc()); SetterUtils.safeSet(toPatch::setTokenEndpointAuthMethod,this.getTokenEndpointAuthMethod()); SetterUtils.safeSet(toPatch::setTokenEndpointAuthSigningAlg,this.getTokenEndpointAuthSigningAlg()); SetterUtils.safeSet(toPatch::setDefaultMaxAge,this.getDefaultMaxAge()); SetterUtils.safeSet(toPatch::setRequireAuthTime,this.getRequireAuthTime()); SetterUtils.safeSet(toPatch::setDefaultACRvalues,this.getDefaultACRvalues()); SetterUtils.safeSet(toPatch::setInitiateLoginUri,this.getInitiateLoginUri()); SetterUtils.safeSet(toPatch::setRequestUris,this.getRequestUris()); SetterUtils.safeSet(toPatch::setScopes, this.getScopes()); SetterUtils.safeSet(toPatch::setSoftwareId,this.getSoftwareId()); SetterUtils.safeSet(toPatch::setSoftwareVersion,this.getSoftwareVersion()); SetterUtils.safeSet(toPatch::setSoftwareStatement,this.getSoftwareStatement()); SetterUtils.safeSet(toPatch::setRegistrationAccessToken,this.getRegistrationAccessToken()); SetterUtils.safeSet(toPatch::setRegistrationClientUri,this.getRegistrationClientUri()); SetterUtils.safeSet(toPatch::setClientIdIssuedAt,this.getClientIdIssuedAt()); SetterUtils.safeSet(toPatch::setClientSecretExpiresAt,this.getClientSecretExpiresAt()); SetterUtils.safeSet(toPatch::setAutoApproveScopes, this.getAutoApproveScopes()); SetterUtils.safeSet(toPatch::setAccessTokenValiditySeconds, this.getAccessTokenValiditySeconds(), int.class); SetterUtils.safeSet(toPatch::setRefreshTokenValiditySeconds, this.getRefreshTokenValiditySeconds(), int.class); SetterUtils.safeSet(toPatch::setIdTokenValiditySeconds, this.getIdTokenValiditySeconds(), int.class); SetterUtils.safeSet(toPatch::setEnabled, this.getEnabled(), boolean.class); SetterUtils.safeSet(toPatch::setIdentities, this.getIdentities()); if (this.getCertificate() == null && forceNull) { toPatch.setCertificate(null); } else { SetterUtils.safeSet(toPatch::setCertificate, this.getCertificate()); } SetterUtils.safeSet(toPatch::setEnhanceScopesWithUserPermissions, this.getEnhanceScopesWithUserPermissions(), boolean.class); SetterUtils.safeSet(toPatch::setScopeApprovals, this.getScopeApprovals()); SetterUtils.safeSet(toPatch::setAccountSettings, this.getAccountSettings()); SetterUtils.safeSet(toPatch::setLoginSettings, this.getLoginSettings()); SetterUtils.safeSet(toPatch::setTokenCustomClaims, this.getTokenCustomClaims()); SetterUtils.safeSet(toPatch::setTemplate, this.getTemplate(), boolean.class); SetterUtils.safeSet(toPatch::setMetadata, this.getMetadata()); return toPatch; }  Optional<List<String>> getRedirectUris(); void setRedirectUris(Optional<List<String>> redirectUris); Optional<List<String>> getAuthorizedGrantTypes(); void setAuthorizedGrantTypes(Optional<List<String>> authorizedGrantTypes); Optional<List<String>> getResponseTypes(); void setResponseTypes(Optional<List<String>> responseTypes); Optional<String> getApplicationType(); void setApplicationType(Optional<String> applicationType); Optional<List<String>> getContacts(); void setContacts(Optional<List<String>> contacts); Optional<String> getClientName(); void setClientName(Optional<String> clientName); Optional<String> getLogoUri(); void setLogoUri(Optional<String> logoUri); Optional<String> getClientUri(); void setClientUri(Optional<String> clientUri); Optional<String> getPolicyUri(); void setPolicyUri(Optional<String> policyUri); Optional<String> getTosUri(); void setTosUri(Optional<String> tosUri); Optional<String> getJwksUri(); void setJwksUri(Optional<String> jwksUri); Optional<JWKSet> getJwks(); void setJwks(Optional<JWKSet> jwks); Optional<String> getSectorIdentifierUri(); void setSectorIdentifierUri(Optional<String> sectorIdentifierUri); Optional<String> getSubjectType(); void setSubjectType(Optional<String> subjectType); Optional<String> getIdTokenSignedResponseAlg(); void setIdTokenSignedResponseAlg(Optional<String> idTokenSignedResponseAlg); Optional<String> getIdTokenEncryptedResponseAlg(); void setIdTokenEncryptedResponseAlg(Optional<String> idTokenEncryptedResponseAlg); Optional<String> getIdTokenEncryptedResponseEnc(); void setIdTokenEncryptedResponseEnc(Optional<String> idTokenEncryptedResponseEnc); Optional<String> getUserinfoSignedResponseAlg(); void setUserinfoSignedResponseAlg(Optional<String> userinfoSignedResponseAlg); Optional<String> getUserinfoEncryptedResponseAlg(); void setUserinfoEncryptedResponseAlg(Optional<String> userinfoEncryptedResponseAlg); Optional<String> getUserinfoEncryptedResponseEnc(); void setUserinfoEncryptedResponseEnc(Optional<String> userinfoEncryptedResponseEnc); Optional<String> getRequestObjectSigningAlg(); void setRequestObjectSigningAlg(Optional<String> requestObjectSigningAlg); Optional<String> getRequestObjectEncryptionAlg(); void setRequestObjectEncryptionAlg(Optional<String> requestObjectEncryptionAlg); Optional<String> getRequestObjectEncryptionEnc(); void setRequestObjectEncryptionEnc(Optional<String> requestObjectEncryptionEnc); Optional<String> getTokenEndpointAuthMethod(); void setTokenEndpointAuthMethod(Optional<String> tokenEndpointAuthMethod); Optional<String> getTokenEndpointAuthSigningAlg(); void setTokenEndpointAuthSigningAlg(Optional<String> tokenEndpointAuthSigningAlg); Optional<Integer> getDefaultMaxAge(); void setDefaultMaxAge(Optional<Integer> defaultMaxAge); Optional<Boolean> getRequireAuthTime(); void setRequireAuthTime(Optional<Boolean> requireAuthTime); Optional<List<String>> getDefaultACRvalues(); void setDefaultACRvalues(Optional<List<String>> defaultACRvalues); Optional<String> getInitiateLoginUri(); void setInitiateLoginUri(Optional<String> initiateLoginUri); Optional<List<String>> getRequestUris(); void setRequestUris(Optional<List<String>> requestUris); Optional<List<String>> getScopes(); void setScopes(Optional<List<String>> scopes); Optional<String> getSoftwareId(); void setSoftwareId(Optional<String> softwareId); Optional<String> getSoftwareVersion(); void setSoftwareVersion(Optional<String> softwareVersion); Optional<String> getSoftwareStatement(); void setSoftwareStatement(Optional<String> softwareStatement); Optional<String> getRegistrationAccessToken(); void setRegistrationAccessToken(Optional<String> registrationAccessToken); Optional<String> getRegistrationClientUri(); void setRegistrationClientUri(Optional<String> registrationClientUri); Optional<Date> getClientIdIssuedAt(); void setClientIdIssuedAt(Optional<Date> clientIdIssuedAt); Optional<Date> getClientSecretExpiresAt(); void setClientSecretExpiresAt(Optional<Date> clientSecretExpiresAt); Optional<List<String>> getAutoApproveScopes(); void setAutoApproveScopes(Optional<List<String>> autoApproveScopes); Optional<Integer> getAccessTokenValiditySeconds(); void setAccessTokenValiditySeconds(Optional<Integer> accessTokenValiditySeconds); Optional<Integer> getRefreshTokenValiditySeconds(); void setRefreshTokenValiditySeconds(Optional<Integer> refreshTokenValiditySeconds); Optional<Integer> getIdTokenValiditySeconds(); void setIdTokenValiditySeconds(Optional<Integer> idTokenValiditySeconds); Optional<Boolean> getEnabled(); void setEnabled(Optional<Boolean> enabled); Optional<Set<String>> getIdentities(); void setIdentities(Optional<Set<String>> identities); Optional<String> getCertificate(); void setCertificate(Optional<String> certificate); Optional<Boolean> getEnhanceScopesWithUserPermissions(); void setEnhanceScopesWithUserPermissions(Optional<Boolean> enhanceScopesWithUserPermissions); Optional<Map<String, Integer>> getScopeApprovals(); void setScopeApprovals(Optional<Map<String, Integer>> scopeApprovals); Optional<AccountSettings> getAccountSettings(); void setAccountSettings(Optional<AccountSettings> accountSettings); Optional<LoginSettings> getLoginSettings(); void setLoginSettings(Optional<LoginSettings> loginSettings); Optional<List<TokenClaim>> getTokenCustomClaims(); void setTokenCustomClaims(Optional<List<TokenClaim>> tokenCustomClaims); Optional<Boolean> getTemplate(); void setTemplate(Optional<Boolean> template); Optional<Map<String, Object>> getMetadata(); void setMetadata(Optional<Map<String, Object>> metadata); Client patch(Client _toPatch, boolean forceNull); }
PatchClient { public Client patch(Client _toPatch, boolean forceNull) { Client toPatch = new Client(_toPatch); SetterUtils.safeSet(toPatch::setRedirectUris, this.getRedirectUris()); SetterUtils.safeSet(toPatch::setAuthorizedGrantTypes, this.getAuthorizedGrantTypes()); SetterUtils.safeSet(toPatch::setResponseTypes, this.getResponseTypes()); SetterUtils.safeSet(toPatch::setApplicationType, this.getApplicationType()); SetterUtils.safeSet(toPatch::setContacts,this.getContacts()); SetterUtils.safeSet(toPatch::setClientName, this.getClientName()); SetterUtils.safeSet(toPatch::setLogoUri,this.getLogoUri()); SetterUtils.safeSet(toPatch::setClientUri,this.getClientUri()); SetterUtils.safeSet(toPatch::setPolicyUri,this.getPolicyUri()); SetterUtils.safeSet(toPatch::setTosUri,this.getTosUri()); SetterUtils.safeSet(toPatch::setJwksUri,this.getJwksUri()); SetterUtils.safeSet(toPatch::setJwks,this.getJwks()); SetterUtils.safeSet(toPatch::setSectorIdentifierUri,this.getSectorIdentifierUri()); SetterUtils.safeSet(toPatch::setSubjectType,this.getSubjectType()); SetterUtils.safeSet(toPatch::setIdTokenSignedResponseAlg,this.getIdTokenSignedResponseAlg()); SetterUtils.safeSet(toPatch::setIdTokenEncryptedResponseAlg,this.getIdTokenSignedResponseAlg()); SetterUtils.safeSet(toPatch::setIdTokenEncryptedResponseEnc,this.getIdTokenEncryptedResponseEnc()); SetterUtils.safeSet(toPatch::setUserinfoSignedResponseAlg,this.getUserinfoSignedResponseAlg()); SetterUtils.safeSet(toPatch::setUserinfoEncryptedResponseAlg,this.getUserinfoEncryptedResponseAlg()); SetterUtils.safeSet(toPatch::setUserinfoEncryptedResponseEnc,this.getUserinfoEncryptedResponseEnc()); SetterUtils.safeSet(toPatch::setRequestObjectSigningAlg,this.getRequestObjectSigningAlg()); SetterUtils.safeSet(toPatch::setRequestObjectEncryptionAlg,this.getRequestObjectEncryptionAlg()); SetterUtils.safeSet(toPatch::setRequestObjectEncryptionEnc,this.getRequestObjectEncryptionEnc()); SetterUtils.safeSet(toPatch::setTokenEndpointAuthMethod,this.getTokenEndpointAuthMethod()); SetterUtils.safeSet(toPatch::setTokenEndpointAuthSigningAlg,this.getTokenEndpointAuthSigningAlg()); SetterUtils.safeSet(toPatch::setDefaultMaxAge,this.getDefaultMaxAge()); SetterUtils.safeSet(toPatch::setRequireAuthTime,this.getRequireAuthTime()); SetterUtils.safeSet(toPatch::setDefaultACRvalues,this.getDefaultACRvalues()); SetterUtils.safeSet(toPatch::setInitiateLoginUri,this.getInitiateLoginUri()); SetterUtils.safeSet(toPatch::setRequestUris,this.getRequestUris()); SetterUtils.safeSet(toPatch::setScopes, this.getScopes()); SetterUtils.safeSet(toPatch::setSoftwareId,this.getSoftwareId()); SetterUtils.safeSet(toPatch::setSoftwareVersion,this.getSoftwareVersion()); SetterUtils.safeSet(toPatch::setSoftwareStatement,this.getSoftwareStatement()); SetterUtils.safeSet(toPatch::setRegistrationAccessToken,this.getRegistrationAccessToken()); SetterUtils.safeSet(toPatch::setRegistrationClientUri,this.getRegistrationClientUri()); SetterUtils.safeSet(toPatch::setClientIdIssuedAt,this.getClientIdIssuedAt()); SetterUtils.safeSet(toPatch::setClientSecretExpiresAt,this.getClientSecretExpiresAt()); SetterUtils.safeSet(toPatch::setAutoApproveScopes, this.getAutoApproveScopes()); SetterUtils.safeSet(toPatch::setAccessTokenValiditySeconds, this.getAccessTokenValiditySeconds(), int.class); SetterUtils.safeSet(toPatch::setRefreshTokenValiditySeconds, this.getRefreshTokenValiditySeconds(), int.class); SetterUtils.safeSet(toPatch::setIdTokenValiditySeconds, this.getIdTokenValiditySeconds(), int.class); SetterUtils.safeSet(toPatch::setEnabled, this.getEnabled(), boolean.class); SetterUtils.safeSet(toPatch::setIdentities, this.getIdentities()); if (this.getCertificate() == null && forceNull) { toPatch.setCertificate(null); } else { SetterUtils.safeSet(toPatch::setCertificate, this.getCertificate()); } SetterUtils.safeSet(toPatch::setEnhanceScopesWithUserPermissions, this.getEnhanceScopesWithUserPermissions(), boolean.class); SetterUtils.safeSet(toPatch::setScopeApprovals, this.getScopeApprovals()); SetterUtils.safeSet(toPatch::setAccountSettings, this.getAccountSettings()); SetterUtils.safeSet(toPatch::setLoginSettings, this.getLoginSettings()); SetterUtils.safeSet(toPatch::setTokenCustomClaims, this.getTokenCustomClaims()); SetterUtils.safeSet(toPatch::setTemplate, this.getTemplate(), boolean.class); SetterUtils.safeSet(toPatch::setMetadata, this.getMetadata()); return toPatch; }  Optional<List<String>> getRedirectUris(); void setRedirectUris(Optional<List<String>> redirectUris); Optional<List<String>> getAuthorizedGrantTypes(); void setAuthorizedGrantTypes(Optional<List<String>> authorizedGrantTypes); Optional<List<String>> getResponseTypes(); void setResponseTypes(Optional<List<String>> responseTypes); Optional<String> getApplicationType(); void setApplicationType(Optional<String> applicationType); Optional<List<String>> getContacts(); void setContacts(Optional<List<String>> contacts); Optional<String> getClientName(); void setClientName(Optional<String> clientName); Optional<String> getLogoUri(); void setLogoUri(Optional<String> logoUri); Optional<String> getClientUri(); void setClientUri(Optional<String> clientUri); Optional<String> getPolicyUri(); void setPolicyUri(Optional<String> policyUri); Optional<String> getTosUri(); void setTosUri(Optional<String> tosUri); Optional<String> getJwksUri(); void setJwksUri(Optional<String> jwksUri); Optional<JWKSet> getJwks(); void setJwks(Optional<JWKSet> jwks); Optional<String> getSectorIdentifierUri(); void setSectorIdentifierUri(Optional<String> sectorIdentifierUri); Optional<String> getSubjectType(); void setSubjectType(Optional<String> subjectType); Optional<String> getIdTokenSignedResponseAlg(); void setIdTokenSignedResponseAlg(Optional<String> idTokenSignedResponseAlg); Optional<String> getIdTokenEncryptedResponseAlg(); void setIdTokenEncryptedResponseAlg(Optional<String> idTokenEncryptedResponseAlg); Optional<String> getIdTokenEncryptedResponseEnc(); void setIdTokenEncryptedResponseEnc(Optional<String> idTokenEncryptedResponseEnc); Optional<String> getUserinfoSignedResponseAlg(); void setUserinfoSignedResponseAlg(Optional<String> userinfoSignedResponseAlg); Optional<String> getUserinfoEncryptedResponseAlg(); void setUserinfoEncryptedResponseAlg(Optional<String> userinfoEncryptedResponseAlg); Optional<String> getUserinfoEncryptedResponseEnc(); void setUserinfoEncryptedResponseEnc(Optional<String> userinfoEncryptedResponseEnc); Optional<String> getRequestObjectSigningAlg(); void setRequestObjectSigningAlg(Optional<String> requestObjectSigningAlg); Optional<String> getRequestObjectEncryptionAlg(); void setRequestObjectEncryptionAlg(Optional<String> requestObjectEncryptionAlg); Optional<String> getRequestObjectEncryptionEnc(); void setRequestObjectEncryptionEnc(Optional<String> requestObjectEncryptionEnc); Optional<String> getTokenEndpointAuthMethod(); void setTokenEndpointAuthMethod(Optional<String> tokenEndpointAuthMethod); Optional<String> getTokenEndpointAuthSigningAlg(); void setTokenEndpointAuthSigningAlg(Optional<String> tokenEndpointAuthSigningAlg); Optional<Integer> getDefaultMaxAge(); void setDefaultMaxAge(Optional<Integer> defaultMaxAge); Optional<Boolean> getRequireAuthTime(); void setRequireAuthTime(Optional<Boolean> requireAuthTime); Optional<List<String>> getDefaultACRvalues(); void setDefaultACRvalues(Optional<List<String>> defaultACRvalues); Optional<String> getInitiateLoginUri(); void setInitiateLoginUri(Optional<String> initiateLoginUri); Optional<List<String>> getRequestUris(); void setRequestUris(Optional<List<String>> requestUris); Optional<List<String>> getScopes(); void setScopes(Optional<List<String>> scopes); Optional<String> getSoftwareId(); void setSoftwareId(Optional<String> softwareId); Optional<String> getSoftwareVersion(); void setSoftwareVersion(Optional<String> softwareVersion); Optional<String> getSoftwareStatement(); void setSoftwareStatement(Optional<String> softwareStatement); Optional<String> getRegistrationAccessToken(); void setRegistrationAccessToken(Optional<String> registrationAccessToken); Optional<String> getRegistrationClientUri(); void setRegistrationClientUri(Optional<String> registrationClientUri); Optional<Date> getClientIdIssuedAt(); void setClientIdIssuedAt(Optional<Date> clientIdIssuedAt); Optional<Date> getClientSecretExpiresAt(); void setClientSecretExpiresAt(Optional<Date> clientSecretExpiresAt); Optional<List<String>> getAutoApproveScopes(); void setAutoApproveScopes(Optional<List<String>> autoApproveScopes); Optional<Integer> getAccessTokenValiditySeconds(); void setAccessTokenValiditySeconds(Optional<Integer> accessTokenValiditySeconds); Optional<Integer> getRefreshTokenValiditySeconds(); void setRefreshTokenValiditySeconds(Optional<Integer> refreshTokenValiditySeconds); Optional<Integer> getIdTokenValiditySeconds(); void setIdTokenValiditySeconds(Optional<Integer> idTokenValiditySeconds); Optional<Boolean> getEnabled(); void setEnabled(Optional<Boolean> enabled); Optional<Set<String>> getIdentities(); void setIdentities(Optional<Set<String>> identities); Optional<String> getCertificate(); void setCertificate(Optional<String> certificate); Optional<Boolean> getEnhanceScopesWithUserPermissions(); void setEnhanceScopesWithUserPermissions(Optional<Boolean> enhanceScopesWithUserPermissions); Optional<Map<String, Integer>> getScopeApprovals(); void setScopeApprovals(Optional<Map<String, Integer>> scopeApprovals); Optional<AccountSettings> getAccountSettings(); void setAccountSettings(Optional<AccountSettings> accountSettings); Optional<LoginSettings> getLoginSettings(); void setLoginSettings(Optional<LoginSettings> loginSettings); Optional<List<TokenClaim>> getTokenCustomClaims(); void setTokenCustomClaims(Optional<List<TokenClaim>> tokenCustomClaims); Optional<Boolean> getTemplate(); void setTemplate(Optional<Boolean> template); Optional<Map<String, Object>> getMetadata(); void setMetadata(Optional<Map<String, Object>> metadata); Client patch(Client _toPatch, boolean forceNull);  }