@@ -2070,9 +2070,9 @@ public static void main(String[] args) throws Exception {
20702070 }
20712071
20722072 try {
2073- System .out .println ("getPreferenceOnScopeAccount () result:" );
2073+ System .out .println ("getPreferencesOnScopeAccount () result:" );
20742074
2075- // begin-get_preference_on_scope_account
2075+ // begin-get_preferences_on_scope_account
20762076
20772077 GetPreferencesOnScopeAccountOptions getPreferenceOption = new GetPreferencesOnScopeAccountOptions .Builder ()
20782078 .service (service )
@@ -2086,7 +2086,29 @@ public static void main(String[] args) throws Exception {
20862086
20872087 System .out .println (preference );
20882088
2089- // end-get_preference_on_scope_account
2089+ // end-get_preferences_on_scope_account
2090+
2091+ } catch (ServiceResponseException e ) {
2092+ logger .error (String .format ("Service returned status code %s: %s\n Error details: %s" ,
2093+ e .getStatusCode (), e .getMessage (), e .getDebuggingInfo ()), e );
2094+ }
2095+
2096+ try {
2097+ System .out .println ("getAllPreferencesOnScopeAccount() result:" );
2098+
2099+ // begin-get_all_preferences_on_scope_account
2100+
2101+ GetAllPreferencesOnScopeAccountOptions getPreferenceOption = new GetAllPreferencesOnScopeAccountOptions .Builder ()
2102+ .accountId (accountId )
2103+ .iamId (iamId )
2104+ .build ();
2105+
2106+ Response <IdentityPreferencesResponse > response = identityservice .getAllPreferencesOnScopeAccount (getPreferenceOption ).execute ();
2107+ IdentityPreferencesResponse preference = response .getResult ();
2108+
2109+ System .out .println (preference );
2110+
2111+ // end-get_all_preferences_on_scope_account
20902112
20912113 } catch (ServiceResponseException e ) {
20922114 logger .error (String .format ("Service returned status code %s: %s\n Error details: %s" ,
@@ -2096,7 +2118,7 @@ public static void main(String[] args) throws Exception {
20962118 try {
20972119 System .out .println ("deletePreferencesOnScopeAccount() result:" );
20982120
2099- // begin-delete_preference_on_scope_account
2121+ // begin-delete_preferences_on_scope_account
21002122
21012123 DeletePreferencesOnScopeAccountOptions deletePreferenceOption = new DeletePreferencesOnScopeAccountOptions .Builder ()
21022124 .service (service )
@@ -2107,7 +2129,7 @@ public static void main(String[] args) throws Exception {
21072129
21082130 identityservice .deletePreferencesOnScopeAccount (deletePreferenceOption ).execute ();
21092131
2110- // end-delete_preference_on_scope_account
2132+ // end-delete_preferences_on_scope_account
21112133
21122134 } catch (ServiceResponseException e ) {
21132135 logger .error (String .format ("Service returned status code %s: %s\n Error details: %s" ,
0 commit comments