@@ -83,7 +83,8 @@ public class AwsCredentials extends ExternalAccountCredentials {
8383 // Check that one and only one of supplier or credential source are provided.
8484 if (builder .awsSecurityCredentialsSupplier != null && builder .credentialSource != null ) {
8585 throw new IllegalArgumentException (
86- "AwsCredentials cannot have both an awsSecurityCredentialsSupplier and a credentialSource." );
86+ "AwsCredentials cannot have both an awsSecurityCredentialsSupplier and a"
87+ + " credentialSource." );
8788 }
8889 if (builder .awsSecurityCredentialsSupplier == null && builder .credentialSource == null ) {
8990 throw new IllegalArgumentException (
@@ -203,8 +204,7 @@ AwsSecurityCredentialsSupplier getAwsSecurityCredentialsSupplier() {
203204 return this .awsSecurityCredentialsSupplier ;
204205 }
205206
206- @ Nullable
207- public String getRegionalCredentialVerificationUrlOverride () {
207+ public @ Nullable String getRegionalCredentialVerificationUrlOverride () {
208208 return this .regionalCredentialVerificationUrlOverride ;
209209 }
210210
@@ -239,7 +239,7 @@ public static class Builder extends ExternalAccountCredentials.Builder {
239239
240240 private AwsSecurityCredentialsSupplier awsSecurityCredentialsSupplier ;
241241
242- private String regionalCredentialVerificationUrlOverride ;
242+ private @ Nullable String regionalCredentialVerificationUrlOverride ;
243243
244244 Builder () {}
245245
@@ -277,13 +277,13 @@ public Builder setAwsSecurityCredentialsSupplier(
277277 */
278278 @ CanIgnoreReturnValue
279279 public Builder setRegionalCredentialVerificationUrlOverride (
280- String regionalCredentialVerificationUrlOverride ) {
280+ @ Nullable String regionalCredentialVerificationUrlOverride ) {
281281 this .regionalCredentialVerificationUrlOverride = regionalCredentialVerificationUrlOverride ;
282282 return this ;
283283 }
284284
285285 @ CanIgnoreReturnValue
286- public Builder setHttpTransportFactory (HttpTransportFactory transportFactory ) {
286+ public Builder setHttpTransportFactory (@ Nullable HttpTransportFactory transportFactory ) {
287287 super .setHttpTransportFactory (transportFactory );
288288 return this ;
289289 }
@@ -319,55 +319,56 @@ public Builder setCredentialSource(AwsCredentialSource credentialSource) {
319319 }
320320
321321 @ CanIgnoreReturnValue
322- public Builder setServiceAccountImpersonationUrl (String serviceAccountImpersonationUrl ) {
322+ public Builder setServiceAccountImpersonationUrl (
323+ @ Nullable String serviceAccountImpersonationUrl ) {
323324 super .setServiceAccountImpersonationUrl (serviceAccountImpersonationUrl );
324325 return this ;
325326 }
326327
327328 @ CanIgnoreReturnValue
328- public Builder setTokenInfoUrl (String tokenInfoUrl ) {
329+ public Builder setTokenInfoUrl (@ Nullable String tokenInfoUrl ) {
329330 super .setTokenInfoUrl (tokenInfoUrl );
330331 return this ;
331332 }
332333
333334 @ CanIgnoreReturnValue
334- public Builder setQuotaProjectId (String quotaProjectId ) {
335+ public Builder setQuotaProjectId (@ Nullable String quotaProjectId ) {
335336 super .setQuotaProjectId (quotaProjectId );
336337 return this ;
337338 }
338339
339340 @ CanIgnoreReturnValue
340- public Builder setClientId (String clientId ) {
341+ public Builder setClientId (@ Nullable String clientId ) {
341342 super .setClientId (clientId );
342343 return this ;
343344 }
344345
345346 @ CanIgnoreReturnValue
346- public Builder setClientSecret (String clientSecret ) {
347+ public Builder setClientSecret (@ Nullable String clientSecret ) {
347348 super .setClientSecret (clientSecret );
348349 return this ;
349350 }
350351
351352 @ CanIgnoreReturnValue
352- public Builder setScopes (Collection <String > scopes ) {
353+ public Builder setScopes (@ Nullable Collection <String > scopes ) {
353354 super .setScopes (scopes );
354355 return this ;
355356 }
356357
357358 @ CanIgnoreReturnValue
358- public Builder setWorkforcePoolUserProject (String workforcePoolUserProject ) {
359+ public Builder setWorkforcePoolUserProject (@ Nullable String workforcePoolUserProject ) {
359360 super .setWorkforcePoolUserProject (workforcePoolUserProject );
360361 return this ;
361362 }
362363
363364 @ CanIgnoreReturnValue
364- public Builder setServiceAccountImpersonationOptions (Map <String , Object > optionsMap ) {
365+ public Builder setServiceAccountImpersonationOptions (@ Nullable Map <String , Object > optionsMap ) {
365366 super .setServiceAccountImpersonationOptions (optionsMap );
366367 return this ;
367368 }
368369
369370 @ CanIgnoreReturnValue
370- public Builder setUniverseDomain (String universeDomain ) {
371+ public Builder setUniverseDomain (@ Nullable String universeDomain ) {
371372 super .setUniverseDomain (universeDomain );
372373 return this ;
373374 }
0 commit comments