question: private void validateIamRoles ( List < IamRole > iamRoles ) { Assert . notNull ( iamRoles , "At least 1 IAM roles must be specified" ) ; Assert . isTrue ( iamRoles . size ( ) > 0 , "At least 1 IAM roles must be specified" ) ; for ( IamRole iamRole : iamRoles ) { Assert . notNull ( iamRole , "IAM role must be specified" ) ; Assert . hasText ( iamRole . getIamRoleName ( ) , "IAM role name must be specified" ) ; } }
target:  Asserts that the given IAM roles are valid as a user input. The IAM roles are valid if not null, not empty, and each element's name is not null and not blank.